|
SHOGUN
v3.2.0
|
Go to the source code of this file.
Defines | |
| #define | CREATE_SGVECTOR(vec, len, sg_type) |
| #define | CREATE_SGMATRIX(mat, rows, cols, sg_type) |
| #define CREATE_SGMATRIX | ( | mat, | |
| rows, | |||
| cols, | |||
| sg_type | |||
| ) |
{ \
if (!mat.matrix || mat.num_rows!=rows || mat.num_cols!=cols) \
mat=SGMatrix<sg_type>(rows, cols); \
}
Definition at line 38 of file EPInferenceMethod.cpp.
| #define CREATE_SGVECTOR | ( | vec, | |
| len, | |||
| sg_type | |||
| ) |
{ \
if (!vec.vector || vec.vlen!=len) \
vec=SGVector<sg_type>(len); \
}
Definition at line 31 of file EPInferenceMethod.cpp.