PackMatrixInScalarArray Data Member Function

Packs a matrix into a scalar array, using row major or column major layout order. A 2x2 matrix results in four packed values.

Prototype

int32 PackMatrixInScalarArray( 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 cols in the matrix.
int32p_nRowsThe number of rows in the matrix.
int32p_bRowMajorIf true, the matrix values are extracted in row order. Otherwise the matrix is extracted in column order.

Examples

Copy Text To Clipboard

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