You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.CValues1D Property
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.CValues1D Property

Access elements of the Matrix or matrix.

Pascal
property CValues1D [const Idx: integer]: TCplx;

The Idx parameter can be translated to row and column indexes like this: 

 

RowIndex := Idx div Mtx.Cols; ColumnIndex := Idx mod Mtx.Cols;

 

To compute the Index at a given row and column: 

 

Idx := RowIndex*Mtx.Cols + ColumnIndex;
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!