Matrix.Create Sparse<T>(Int 32, Int 32, Double) 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,
double fillFactor
)
Parameters
- rowCount Int32
- The number of rows.
- columnCount Int32
- The number of columns.
- fillFactor Double
- A value between 0 and 1 that specifies the initial capacity of nonzero elements as a proportion of the total number of elements of the matrix.
Type Parameters
- T
Return Value
SparseCompressedColumnMatrix<T>A SparseCompressedColumnMatrix<T>.
Exceptions
Argument | rowCount is less than zero. -or- columnCount is less than zero. -or- fillFactor is less than or equal to zero or greater than 1. |