Matrix.Create Sparse<T>(Int 32, Int 32, Int 32) Method
Constructs a new sparse matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A SparseCompressedColumnMatrix<T>.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
Argument | rowCount is less than zero. -or- columnCount is less than zero. -or- nonzeroCount is less than zero. |