Dew MtxVec NET
TSparseMtx.Size Methods
Summary
Define the size of sparse matrix.

Class
TSparseMtx

Declaration
Function Size(AMtxVec: TMtxVec; AComplex: boolean): TMtxVec;

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

Example 1

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;


Declaration
Procedure Size(RowCount, ColCount, NonZeroCount: integer; IsComplex: boolean = false);

Description
Define the sparse matrix size to RowCount
Rows, ColCount Cols, NonZeroCount non-zero elements (the NonZeros property) and define the matrix to be complex if IsComplex is true.

Copyright 2008 Dew Research
http://www.dewresearch.com