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,
double fillFactor
)
Public Shared Function CreateSparse(Of T) (
rowCount As Integer,
columnCount As Integer,
fillFactor As Double
) As SparseCompressedColumnMatrix(Of T)
public:
generic<typename T>
static SparseCompressedColumnMatrix<T>^ CreateSparse(
int rowCount,
int columnCount,
double fillFactor
)
static member CreateSparse :
rowCount : int *
columnCount : int *
fillFactor : float -> SparseCompressedColumnMatrix<'T>
Parameters
- rowCount
- Type: SystemInt32
The number of rows. - columnCount
- Type: SystemInt32
The number of columns. - fillFactor
- Type: SystemDouble
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
Type:
SparseCompressedColumnMatrixTA
SparseCompressedColumnMatrixT.
Exception | Condition |
---|
ArgumentOutOfRangeException | rowCount is less than zero. -or- columnCount is less than zero. -or- fillFactor is less than or equal to zero or greater than 1. |
Reference