Constructs a new sparse matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static SparseCompressedColumnMatrix<T> CreateSparse<T>(
int rowCount,
int columnCount,
int nonzeroCount
)
Public Shared Function CreateSparse(Of T) (
rowCount As Integer,
columnCount As Integer,
nonzeroCount As Integer
) As SparseCompressedColumnMatrix(Of T)
public:
generic<typename T>
static SparseCompressedColumnMatrix<T>^ CreateSparse(
int rowCount,
int columnCount,
int nonzeroCount
)
static member CreateSparse :
rowCount : int *
columnCount : int *
nonzeroCount : int -> SparseCompressedColumnMatrix<'T>
Parameters
- rowCount
- Type: SystemInt32
The number of rows. - columnCount
- Type: SystemInt32
The number of columns. - nonzeroCount
- Type: SystemInt32
The expected number of nonzero elements.
Type Parameters
- T
Return Value
Type:
SparseCompressedColumnMatrixTA
SparseCompressedColumnMatrixT.
Exception | Condition |
---|
ArgumentOutOfRangeException | rowCount is less than zero. -or- columnCount is less than zero. -or- nonzeroCount is less than zero. |
Reference