DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <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) |
T | 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 () | |
T | val_norm (const T *pr_alpha, const int current_node, const bool l1=false) |
T | val_norm2 (const T *pr_alpha, const int current_node, T &tmp, const bool l1=false) |
T | val_zero (const T *pr_alpha, const int current_node) |
T | 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 |
spams::Tree_Seq< T >::Tree_Seq | ( | ) |
Definition at line 156 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_N_variables, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_order_dfs, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_own_variables, spams::Tree_Seq< T >::_size_variables, spams::Tree_Seq< T >::_thrs, spams::Tree_Seq< T >::_variables, and spams::Tree_Seq< T >::_work.
spams::Tree_Seq< T >::~Tree_Seq | ( | ) |
Definition at line 173 of file project.h.
References spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_order_dfs, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_variables, spams::Tree_Seq< T >::_thrs, spams::Tree_Seq< T >::_variables, and spams::Tree_Seq< T >::_work.
|
inline |
Definition at line 184 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_N_variables, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_order_dfs, spams::Tree_Seq< T >::_pr_own_variables, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_own_variables, spams::Tree_Seq< T >::_size_variables, spams::Tree_Seq< T >::_thrs, spams::Tree_Seq< T >::_variables, spams::Tree_Seq< T >::_work, MAX, spams::Tree_Seq< T >::perform_dfs(), and spams::Tree_Seq< T >::perform_order().
|
inline |
Definition at line 421 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_N_variables, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_variables, spams::Tree_Seq< T >::_thrs, spams::Tree_Seq< T >::_variables, spams::Vector< T >::asum(), spams::List< T >::begin(), spams::List< T >::end(), EPSILON, spams::List< T >::front(), INFINITY, spams::project_tree_l1(), spams::List< T >::push_front(), spams::Vector< T >::rawX(), and spams::Timer::reset().
Referenced by spams::Graph< T >::norm().
|
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().
|
inline |
Definition at line 206 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_pr_own_variables, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_own_variables, spams::Tree_Seq< T >::_size_variables, and MIN.
Referenced by spams::Tree_Seq< T >::create_tree().
|
inline |
Definition at line 335 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_order_dfs, spams::Tree_Seq< T >::_pr_own_variables, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_own_variables, spams::Tree_Seq< T >::_size_variables, spams::Tree_Seq< T >::_thrs, spams::Tree_Seq< T >::_variables, spams::Tree_Seq< T >::_work, MAX, MIN, spams::Vector< T >::n(), spams::project_tree_l1(), and spams::Vector< T >::rawX().
|
inline |
Definition at line 315 of file project.h.
References spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_variables, spams::Tree_Seq< T >::_variables, spams::Vector< T >::copy(), spams::Vector< T >::inv(), spams::Vector< T >::n(), spams::Vector< T >::rawX(), and spams::Vector< T >::setData().
|
inline |
Definition at line 395 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_order, spams::Tree_Seq< T >::_order_dfs, spams::Tree_Seq< T >::_pr_own_variables, spams::Tree_Seq< T >::_size_own_variables, spams::Tree_Seq< T >::_variables, spams::Tree_Seq< T >::_work, spams::Vector< T >::n(), and spams::Vector< T >::rawX().
|
inline |
Definition at line 280 of file project.h.
References spams::Tree_Seq< T >::_N_groups, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_variables, utl::max(), spams::Vector< T >::rawX(), and spams::Vector< T >::setZeros().
|
inline |
Definition at line 231 of file project.h.
References spams::Tree_Seq< T >::val_norm2().
|
inline |
Definition at line 238 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_pr_variables, spams::Tree_Seq< T >::_size_own_variables, and MAX.
Referenced by spams::Tree_Seq< T >::val_norm().
|
inline |
Definition at line 274 of file project.h.
References spams::Tree_Seq< T >::val_zero2().
|
inline |
Definition at line 258 of file project.h.
References spams::Tree_Seq< T >::_groups_ir, spams::Tree_Seq< T >::_groups_jc, spams::Tree_Seq< T >::_lambda, spams::Tree_Seq< T >::_pr_variables, and spams::Tree_Seq< T >::_size_own_variables.
Referenced by spams::Tree_Seq< T >::val_zero().
|
private |
Definition at line 150 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::perform_dfs(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), spams::Tree_Seq< T >::val_norm2(), and spams::Tree_Seq< T >::val_zero2().
|
private |
Definition at line 151 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::perform_dfs(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), spams::Tree_Seq< T >::val_norm2(), and spams::Tree_Seq< T >::val_zero2().
|
private |
Definition at line 140 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), spams::Tree_Seq< T >::val_norm2(), and spams::Tree_Seq< T >::val_zero2().
|
private |
Definition at line 138 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_weighted_linf(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::sub_grad(), and spams::Tree_Seq< T >::Tree_Seq().
|
private |
Definition at line 139 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), and spams::Tree_Seq< T >::Tree_Seq().
|
private |
Definition at line 148 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_weighted_linf(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), and spams::Tree_Seq< T >::~Tree_Seq().
|
private |
Definition at line 149 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::perform_dfs(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), and spams::Tree_Seq< T >::~Tree_Seq().
|
private |
Definition at line 147 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), and spams::Tree_Seq< T >::proj_zero().
|
private |
Definition at line 145 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_weighted_linf(), spams::Tree_Seq< T >::sub_grad(), spams::Tree_Seq< T >::Tree_Seq(), spams::Tree_Seq< T >::val_norm2(), spams::Tree_Seq< T >::val_zero2(), and spams::Tree_Seq< T >::~Tree_Seq().
|
private |
Definition at line 146 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), spams::Tree_Seq< T >::val_norm2(), and spams::Tree_Seq< T >::val_zero2().
|
private |
Definition at line 144 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_weighted_linf(), spams::Tree_Seq< T >::sub_grad(), spams::Tree_Seq< T >::Tree_Seq(), and spams::Tree_Seq< T >::~Tree_Seq().
|
private |
Definition at line 141 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::Tree_Seq(), and spams::Tree_Seq< T >::~Tree_Seq().
|
private |
Definition at line 142 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::dual_norm_inf(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_weighted_linf(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), and spams::Tree_Seq< T >::~Tree_Seq().
|
private |
Definition at line 143 of file project.h.
Referenced by spams::Tree_Seq< T >::create_tree(), spams::Tree_Seq< T >::proj(), spams::Tree_Seq< T >::proj_zero(), spams::Tree_Seq< T >::Tree_Seq(), and spams::Tree_Seq< T >::~Tree_Seq().