You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > SetRow Method > MatrixInt.SetRow Method (TMtxVecInt, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.SetRow Method (TMtxVecInt, integer)

Copies values from vector to matrix row.

Pascal
function SetRow(const Vec: TMtxVecInt; Row: integer): TMtxInt; overload;

Copy all Vec elements to the calling matrix Row row. The IntPrecision property of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.

var A: TMtxInt; V: TVecInt; begin CreateIt(A); CreateIt(V); try A.Size(1,2); V.SetIt([1,2, 2,4]); A.SetCol(V,0); finally FreeIt(V); FreeIt(A); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!