Matrix.CreateSparse<T>(Int32, Int32, Int32) Method

Constructs a new sparse matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static SparseCompressedColumnMatrix<T> CreateSparse<T>(
	int rowCount,
	int columnCount,
	int nonzeroCount
)

Parameters

rowCount  Int32
The number of rows.
columnCount  Int32
The number of columns.
nonzeroCount  Int32
The expected number of nonzero elements.

Type Parameters

T

Return Value

SparseCompressedColumnMatrix<T>
A SparseCompressedColumnMatrix<T>.

Exceptions

ArgumentOutOfRangeException

rowCount is less than zero.

-or-

columnCount is less than zero.

-or-

nonzeroCount is less than zero.

See Also