TMB Documentation
v1.9.11
|
Macros to do vectorization. More...
Go to the source code of this file.
Macros | |
#define | GVECTORIZE(FUN, Type1, Type2, Type3, Type4, Type5, Type6) |
General vectorize macro up to 6 arguments. More... | |
#define | VECTORIZE1_n(FUN) |
Add the 'n' integer argument to a simulation method with one argument. | |
#define | VECTORIZE1_t(FUN) GVECTORIZE(FUN,V,N,N,N,N,N) |
Vectorize 1-argument functions. | |
#define | VECTORIZE2_n(FUN) |
Add the 'n' integer argument to a simulation method with two arguments. | |
#define | VECTORIZE2_tt(FUN) |
Vectorize 2-argument functions. More... | |
#define | VECTORIZE3_n(FUN) |
Add the 'n' integer argument to a simulation method with three arguments. | |
#define | VECTORIZE3_tti(FUN) |
Vectorize 3-argument functions. More... | |
#define | VECTORIZE3_ttt(FUN) |
Vectorize 3-argument functions. More... | |
#define | VECTORIZE4_ttti(FUN) |
Vectorize 4-argument functions. More... | |
#define | VECTORIZE5_tttti(FUN) |
Vectorize 5-argument functions. More... | |
#define | VECTORIZE6_ttttti(FUN) |
Vectorize 6-argument functions. More... | |
Macros to do vectorization.
Definition in file Vectorize.hpp.
#define GVECTORIZE | ( | FUN, | |
Type1, | |||
Type2, | |||
Type3, | |||
Type4, | |||
Type5, | |||
Type6 | |||
) |
General vectorize macro up to 6 arguments.
Applied type abbreviations: V=vector, T=scalar, I=integer, N=none. The longest vector input determines the length of the output. Arguments are not re-cycled; unequal vector lengths should result in a crash.
Definition at line 36 of file Vectorize.hpp.
#define VECTORIZE2_tt | ( | FUN | ) |
Vectorize 2-argument functions.
For two-arguments functions (Type, Type), vectorize both arguments.
Definition at line 71 of file Vectorize.hpp.
Referenced by tmbutils::interpol2D< Type >::operator()().
#define VECTORIZE3_tti | ( | FUN | ) |
Vectorize 3-argument functions.
For three-arguments functions (Type, Type, int), vectorize first two arguments.
Definition at line 81 of file Vectorize.hpp.
#define VECTORIZE3_ttt | ( | FUN | ) |
Vectorize 3-argument functions.
For three-arguments functions (Type, Type, Type), vectorize all three arguments.
Definition at line 91 of file Vectorize.hpp.
#define VECTORIZE4_ttti | ( | FUN | ) |
Vectorize 4-argument functions.
For Four-arguments functions (Type, Type, Type, int), vectorize first three arguments.
Definition at line 105 of file Vectorize.hpp.
#define VECTORIZE5_tttti | ( | FUN | ) |
Vectorize 5-argument functions.
For Five-arguments functions (Type, Type, Type, Type, int), vectorize first four arguments.
Definition at line 119 of file Vectorize.hpp.
#define VECTORIZE6_ttttti | ( | FUN | ) |
Vectorize 6-argument functions.
For Six-arguments functions (Type, Type, Type, Type, Type, int), vectorize first three arguments.
Definition at line 133 of file Vectorize.hpp.