TSparseMtx::Rows Property

__declspec(property(get = GetRows, put = SetRows)) int Rows;

Number of rows in the sparse matrix.

Read: int GetRows();
Write: void SetRows(const int Value);
Remarks:

Defines number of rows in the sparse matrix. This value is needed only by the routines for matrix addition and multiplication to check the matrix sizes (which can be non-rectangular).

Examples
#include "sparse.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    TSparseMtx* SparseA = new TSparseMtx();
    SparseA->Complex = false;
    SparseA->Rows = 3;
    SparseA->Cols = 4;
    SparseA->NonZeros = 5;
    delete SparseA;
}
See Also: TSparseMtx::Cols
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler