PackScalarArrayInMatrix Data Member Function

Packs a scalar array in a matrix. For example, a scalar array with four values can be packed into a 2x2 matrix.

Prototype

int32 PackScalarArrayInMatrix( Float64Iterator first, Float64Iterator last, Float64Iterator dst, int32 p_nCols, int32 p_nRows, int32 p_bRowMajor )

Parameters

Parameter Type Parameter Name Documentation
<Float64Iterator>firstAn iterator at the start of the source range.
<Float64Iterator>lastAn iterator at the end of the source range.
<Float64Iterator>dstAn iterator at the start of the destination range.
int32p_nColsThe number of columns in the matrix.
int32p_nRowsThe number of rows in the matrix.
int32p_bRowMajorIf true, the matrix is written in row order. Otherwise the matrix is written in column order.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.