DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <assert.h>
#include "cblas.h"
#include <limits>
#include <sys/time.h>
#include "linalg.h"
Go to the source code of this file.
Classes | |
class | spams::Timer |
Namespaces | |
spams | |
Macros | |
#define | ABS(a) (((a) < 0) ? -(a) : (a)) |
#define | EPSILON 10e-10 |
#define | EPSILON_OMEGA 0.001 |
#define | FLAG(a) printf("flag : %d \n",a); |
#define | INFINITY 10e20 |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MAX_ITER_CGRAD 40 |
#define | MAX_THREADS 64 |
#define | MIN(a, b) (((a) > (b)) ? (b) : (a)) |
#define | PRINT_F(name) printf(#name " : %g\n",name); |
#define | PRINT_I(name) printf(#name " : %d\n",name); |
#define | PRINT_S(name) printf("%s\n",name); |
#define | SIGN(a) (((a) < 0) ? -1.0 : 1.0) |
#define | TOL_CGRAD 10e-6 |
Typedefs | |
typedef int | mwSize |
Contains various variables and class timer.
toolbox Linalg
by Julien Mairal julie n.ma iral@ inri a.fr
File utils.h
Definition in file utils.h.
#define ABS | ( | a | ) | (((a) < 0) ? -(a) : (a)) |
Definition at line 51 of file utils.h.
Referenced by ImageMath().
#define EPSILON 10e-10 |
Definition at line 60 of file utils.h.
Referenced by spams::computeError(), spams::coreLARS(), spams::Tree_Seq< T >::dual_norm_inf(), spams::FISTA::Lasso< T >::fenchel(), spams::FISTA::Ridge< T >::fenchel(), spams::FISTA::normL2< T >::fenchel(), spams::FISTA::normLINF< T >::fenchel(), spams::FISTA::GraphLasso< T >::fenchel(), spams::FISTA::TreeLasso< T >::fenchel(), spams::FISTA::MixedL1L2< T >::fenchel(), spams::FISTA::MixedL1LINF< T >::fenchel(), spams::FISTA::GraphPathConv< T >::fenchel(), spams::FISTA::FISTA_Generic(), spams::ist(), spams::FISTA::ISTA_Generic(), spams::Vector< T >::normalize(), spams::Vector< T >::project_sft(), spams::Vector< T >::project_sft_binary(), and spams::Matrix< T >::svdRankOne().
#define FLAG | ( | a | ) | printf("flag : %d \n",a); |
Definition at line 57 of file utils.h.
Referenced by spams::DoubleRowMatrix< T >::copyTo(), spams::DoubleRowMatrix< T >::dot(), spams::DoubleRowMatrix< T >::mult(), spams::DoubleRowMatrix< T >::multSwitch(), and spams::DoubleRowMatrix< T >::XtX().
#define INFINITY 10e20 |
Definition at line 62 of file utils.h.
Referenced by spams::FISTA::ADMM(), spams::MaxFlow< T >::compute_thrs_project_l1(), spams::coreLARS(), spams::coreLARS2(), spams::coreLARS2W(), spams::Graph< T >::create_graph(), spams::Tree_Seq< T >::dual_norm_inf(), spams::FISTA::duality_gap(), spams::FISTA::Lasso< T >::fenchel(), spams::FISTA::Ridge< T >::fenchel(), spams::FISTA::normL2< T >::fenchel(), spams::FISTA::normLINF< T >::fenchel(), spams::FISTA::GraphLasso< T >::fenchel(), spams::FISTA::TreeLasso< T >::fenchel(), spams::FISTA::MixedL1L2< T >::fenchel(), spams::FISTA::MixedL1LINF< T >::fenchel(), spams::FISTA::GraphPathConv< T >::fenchel(), spams::FISTA::FISTA_Generic(), spams::Vector< T >::fusedProjectHomotopy(), spams::FISTA::ISTA_Generic(), spams::FISTA::LinADMM(), spams::MaxFlow< T >::MaxFlow(), spams::MaxFlow< T >::project_box(), spams::project_tree_l1(), spams::remove_cycles(), spams::MaxFlow< T >::reset_flow(), spams::MaxFlow< T >::restore_capacities(), spams::MaxFlow< T >::scale_flow(), spams::Vector< T >::softmax(), spams::FISTA::subGradientDescent_Generic(), and spams::xlogx().
#define MAX | ( | a, | |
b | |||
) | (((a) > (b)) ? (a) : (b)) |
Definition at line 48 of file utils.h.
Referenced by spams::FISTA::ADMM(), spams::MaxFlow< T >::compute_thrs_project_l1(), spams::coreGroupISTConstrained(), spams::coreISTconstrained(), spams::Tree_Seq< T >::create_tree(), spams::MinCostFlow< Int >::discharge(), spams::Graph< T >::dual_norm_inf(), spams::FISTA::duality_gap(), spams::FISTA::HingeLoss< T >::eval_split(), spams::FISTA::LassoConstraint< T >::fenchel(), spams::FISTA::FISTA_Generic(), spams::FISTA::GroupProx< T, Reg >::GroupProx(), spams::FISTA::LogLoss< T, weighted >::init(), spams::GraphPath< T, Int >::init_graph(), spams::FISTA::ISTA_Generic(), spams::Vector< T >::l1project_weighted(), spams::lasso(), spams::lasso2(), spams::lasso_mask(), spams::lassoReweighted(), spams::FISTA::LinADMM(), spams::MaxFlow< T >::norm(), spams::Matrix< T >::norm_inf_rows(), spams::Tree_Seq< T >::proj(), spams::MaxFlow< T >::project_box(), spams::project_tree_l1(), spams::Graph< T >::proximal_operator(), spams::GraphPath< T, Int >::scale_costs(), spams::FISTA::subGradientDescent_Generic(), spams::Matrix< T >::svdRankOne(), spams::Vector< T >::thrsabsmin(), spams::Vector< T >::thrsmax(), spams::Trainer< T >::train(), spams::Trainer< T >::trainOffline(), spams::MaxFlow< T >::update_capacities(), and spams::Tree_Seq< T >::val_norm2().
#define MAX_THREADS 64 |
Definition at line 42 of file utils.h.
Referenced by spams::SpMatrix< T >::AAt(), spams::init_omp(), spams::Matrix< T >::NadarayaWatson(), spams::Trainer< T >::Trainer(), spams::SpMatrix< T >::wAAt(), and spams::SpMatrix< T >::XAt().
#define MIN | ( | a, | |
b | |||
) | (((a) > (b)) ? (b) : (a)) |
Definition at line 47 of file utils.h.
Referenced by spams::Matrix< T >::addDiag(), spams::coreLARS(), spams::coreLARS2(), spams::coreLARS2W(), spams::coreORMP(), spams::Matrix< T >::diag(), spams::MaxFlow< T >::discharge(), spams::MinCostFlow< Int >::discharge(), spams::FISTA::EvalGraphPath(), spams::Matrix< T >::eye(), spams::FISTA::GroupProx< T, Reg >::fenchel(), spams::FISTA::RegMat< T, Reg >::fenchel(), spams::Vector< T >::fusedProjectHomotopy(), spams::Matrix< T >::incrDiag(), spams::GraphPath< T, Int >::init_graph(), spams::init_omp(), spams::Vector< T >::l1project_weighted(), spams::omp(), spams::omp_mask(), spams::Tree_Seq< T >::perform_order(), spams::Tree_Seq< T >::proj(), spams::MaxFlow< T >::project(), spams::MaxFlow< T >::project_box(), spams::project_tree_l1(), spams::FISTA::Rank< T >::prox(), spams::FISTA::PROX(), spams::MinCostFlow< Int >::refine(), spams::GraphPath< T, Int >::scale_costs(), spams::Matrix< T >::setDiag(), spams::Matrix< T >::singularValues(), spams::FISTA::solver(), spams::somp(), spams::MinCostFlow< Int >::st_flow_decomposition_dag(), spams::Matrix< T >::svd(), spams::MinCostFlow< Int >::test_optimality_conditions(), spams::Vector< T >::thrsabsmin(), spams::Vector< T >::thrsmin(), spams::Matrix< T >::trace(), spams::Trainer< T >::train(), spams::Trainer< T >::Trainer(), and spams::Trainer< T >::trainOffline().
#define PRINT_I | ( | name | ) | printf(#name " : %d\n",name); |
Definition at line 54 of file utils.h.
Referenced by spams::MaxFlow< T >::perform_maxflow_component(), and spams::Graph< T >::proximal_operator().
#define SIGN | ( | a | ) | (((a) < 0) ? -1.0 : 1.0) |
Definition at line 49 of file utils.h.
Referenced by spams::coreLARS().