Template Function amici::writeMatlabField2

Function Documentation

template<typename T>
void amici::writeMatlabField2(mxArray *matlabStruct, const char *fieldName, std::vector<T> const &fieldData, int dim0, int dim1, std::vector<int> perm)

initialize matrix, attach to the field and write data

Parameters
  • matlabStruct: Pointer to the matlab structure

  • fieldName: Name of the field to which the tensor will be attached

  • fieldData: Data which will be stored in the field

  • dim0: Number of rows in the tensor

  • dim1: Number of columns in the tensor

  • perm: reordering of dimensions (i.e., transposition)