You are here: Symbol Reference > Sparse Namespace > Classes > TSparseMtx Class > public > Size Method > TSparseMtx.Size Method (TMtxVecBase, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TSparseMtx.Size Method (TMtxVecBase, boolean)

The size of sparse matrix.

Pascal
function Size(const Src: TMtxVecBase; AComplex: boolean): TMtxVec; override;

Defines the calling matrix size to match those of the AMtxVec objects. If AComplex is true, calling sparse matrix TMtxVec.Complex property is set to true.

SparseA.Size(3,4,5,false); // is the same as calling this sequence SparseA.Complex := false; SparseA.Rows := 3; SparseA.Cols := 4; SparseA.NonZeros := 5;
SparseA->Size(3,4,5,false); // is the same as calling this sequence SparseA->Complex = false; SparseA->Rows = 3; SparseA->Cols = 4; SparseA->NonZeros = 5;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!