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

Access elements of the Matrix or matrix.

Pascal
property Values1D [const Idx: integer]: double;

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!