You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Size Method > Vector.Size Method (TMtxVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Size Method (TMtxVec)

Size the object.

Pascal
function Size(const Src: TMtxVec): TMtxVec; overload;

Assignes the size of the Src object to the calling object. If the calling object is a TVec object then the Src can be of any type, otherwise TMtx can only obtain size from a TMtx object and TSparseMtx can only obtain size from a TSparseMtx object. 

If the calling object and Src are of different types, the complex property can be different, if both objects have a matching Length property. In this case only the Complex property of the calling object will changed, while all other properties describing the size of the object (rows, cols, length, nonZeros) will be preserved. This is different from simply setting the Complex property. Changing the Complex property directly would also change the Length, Cols and NonZeros properties.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!