Template Function amici::writeMatlabField4¶
Defined in File returndata_matlab.h
Function Documentation¶
-
template<typename
T
>
voidamici
::
writeMatlabField4
(mxArray *matlabStruct, const char *fieldName, std::vector<T> const &fieldData, int dim0, int dim1, int dim2, int dim3, std::vector<int> perm)¶ initialize 4D tensor, attach to the field and write data
- Parameters
matlabStruct
: Pointer to the matlab structurefieldName
: Name of the field to which the tensor will be attachedfieldData
: Data which will be stored in the fielddim0
: number of rows in the tensordim1
: number of columns in the tensordim2
: number of elements in the third dimension of the tensordim3
: number of elements in the fourth dimension of the tensorperm
: reordering of dimensions