DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Member Functions | Private Attributes | List of all members
spams::Tree_Seq< T > Class Template Reference

#include <project.h>

Detailed Description

template<typename T>
class spams::Tree_Seq< T >

Definition at line 111 of file project.h.

Public Member Functions

void create_tree (const int N_variables, int *own_variables, int *N_own_variables, T *lambda, mwSize *groups_ir, mwSize *groups_jc, const int N_groups, const int root_node=0)
 
dual_norm_inf (const Vector< T > &input)
 
int perform_dfs (const int current_node, const int pointer)
 
int perform_order (const int current_node, const int pointer)
 
void proj (Vector< T > &input, const bool l1=false, const T fact=1.0)
 
void proj_weighted_linf (Vector< T > &input, const Vector< T > &weights, const T fact=1.0)
 
void proj_zero (Vector< T > &input, const T fact=1.0)
 
void sub_grad (const Vector< T > &input, Vector< T > &output, const bool linf)
 
 Tree_Seq ()
 
val_norm (const T *pr_alpha, const int current_node, const bool l1=false)
 
val_norm2 (const T *pr_alpha, const int current_node, T &tmp, const bool l1=false)
 
val_zero (const T *pr_alpha, const int current_node)
 
val_zero2 (const T *pr_alpha, const int current_node, bool &tmp)
 
 ~Tree_Seq ()
 

Private Attributes

mwSize_groups_ir
 
mwSize_groups_jc
 
T * _lambda
 
int _N_groups
 
int _N_variables
 
int * _order
 
int * _order_dfs
 
int * _pr_own_variables
 
int * _pr_variables
 
int * _size_own_variables
 
int * _size_variables
 
T * _thrs
 
T * _variables
 
T * _work
 

Constructor & Destructor Documentation

template<typename T >
spams::Tree_Seq< T >::Tree_Seq ( )
template<typename T >
spams::Tree_Seq< T >::~Tree_Seq ( )

Member Function Documentation

template<typename T >
void spams::Tree_Seq< T >::create_tree ( const int  N_variables,
int *  own_variables,
int *  N_own_variables,
T *  lambda,
mwSize groups_ir,
mwSize groups_jc,
const int  N_groups,
const int  root_node = 0 
)
inline
template<typename T >
T spams::Tree_Seq< T >::dual_norm_inf ( const Vector< T > &  input)
inline
template<typename T >
int spams::Tree_Seq< T >::perform_dfs ( const int  current_node,
const int  pointer 
)
inline

Definition at line 220 of file project.h.

References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, and spams::Tree_Seq< T >::_order_dfs.

Referenced by spams::Tree_Seq< T >::create_tree().

+ Here is the caller graph for this function:

template<typename T >
int spams::Tree_Seq< T >::perform_order ( const int  current_node,
const int  pointer 
)
inline
template<typename T >
void spams::Tree_Seq< T >::proj ( Vector< T > &  input,
const bool  l1 = false,
const T  fact = 1.0 
)
inline
template<typename T >
void spams::Tree_Seq< T >::proj_weighted_linf ( Vector< T > &  input,
const Vector< T > &  weights,
const T  fact = 1.0 
)
inline
template<typename T >
void spams::Tree_Seq< T >::proj_zero ( Vector< T > &  input,
const T  fact = 1.0 
)
inline
template<typename T >
void spams::Tree_Seq< T >::sub_grad ( const Vector< T > &  input,
Vector< T > &  output,
const bool  linf 
)
inline
template<typename T >
T spams::Tree_Seq< T >::val_norm ( const T *  pr_alpha,
const int  current_node,
const bool  l1 = false 
)
inline

Definition at line 231 of file project.h.

References spams::Tree_Seq< T >::val_norm2().

+ Here is the call graph for this function:

template<typename T >
T spams::Tree_Seq< T >::val_norm2 ( const T *  pr_alpha,
const int  current_node,
T &  tmp,
const bool  l1 = false 
)
inline
template<typename T >
T spams::Tree_Seq< T >::val_zero ( const T *  pr_alpha,
const int  current_node 
)
inline

Definition at line 274 of file project.h.

References spams::Tree_Seq< T >::val_zero2().

+ Here is the call graph for this function:

template<typename T >
T spams::Tree_Seq< T >::val_zero2 ( const T *  pr_alpha,
const int  current_node,
bool &  tmp 
)
inline

Member Data Documentation

template<typename T>
mwSize* spams::Tree_Seq< T >::_groups_ir
private
template<typename T>
mwSize* spams::Tree_Seq< T >::_groups_jc
private
template<typename T>
T* spams::Tree_Seq< T >::_lambda
private
template<typename T>
int spams::Tree_Seq< T >::_N_groups
private
template<typename T>
int spams::Tree_Seq< T >::_N_variables
private
template<typename T>
int* spams::Tree_Seq< T >::_order
private
template<typename T>
int* spams::Tree_Seq< T >::_order_dfs
private
template<typename T>
int* spams::Tree_Seq< T >::_pr_own_variables
private
template<typename T>
int* spams::Tree_Seq< T >::_pr_variables
private
template<typename T>
int* spams::Tree_Seq< T >::_size_own_variables
private
template<typename T>
int* spams::Tree_Seq< T >::_size_variables
private
template<typename T>
T* spams::Tree_Seq< T >::_thrs
private
template<typename T>
T* spams::Tree_Seq< T >::_variables
private
template<typename T>
T* spams::Tree_Seq< T >::_work
private

The documentation for this class was generated from the following file: