DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Classes | Namespaces | Macros | Typedefs
utils.h File Reference
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <assert.h>
#include "cblas.h"
#include <limits>
#include <sys/time.h>
#include "linalg.h"
+ Include dependency graph for utils.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Contains various variables and class timer.

toolbox Linalg

by Julien Mairal julie.nosp@m.n.ma.nosp@m.iral@.nosp@m.inri.nosp@m.a.fr

File utils.h

Definition in file utils.h.

Macro Definition Documentation

#define ABS (   a)    (((a) < 0) ? -(a) : (a))

Definition at line 51 of file utils.h.

Referenced by ImageMath().

#define EPSILON   10e-10
#define EPSILON_OMEGA   0.001

Definition at line 64 of file utils.h.

#define FLAG (   a)    printf("flag : %d \n",a);
#define INFINITY   10e20
#define MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))
#define MAX_ITER_CGRAD   40

Definition at line 66 of file utils.h.

#define MAX_THREADS   64
#define MIN (   a,
 
)    (((a) > (b)) ? (b) : (a))
#define PRINT_F (   name)    printf(#name " : %g\n",name);

Definition at line 55 of file utils.h.

#define PRINT_I (   name)    printf(#name " : %d\n",name);
#define PRINT_S (   name)    printf("%s\n",name);

Definition at line 56 of file utils.h.

#define SIGN (   a)    (((a) < 0) ? -1.0 : 1.0)

Definition at line 49 of file utils.h.

Referenced by spams::coreLARS().

#define TOL_CGRAD   10e-6

Definition at line 65 of file utils.h.

Typedef Documentation

typedef int mwSize

Definition at line 38 of file utils.h.