Constructs a new symmetric sparse matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static SparseCompressedColumnMatrix<T> CreateSparseSymmetric<T>(
int dimension,
double fillFactor
)
Public Shared Function CreateSparseSymmetric(Of T) (
dimension As Integer,
fillFactor As Double
) As SparseCompressedColumnMatrix(Of T)
public:
generic<typename T>
static SparseCompressedColumnMatrix<T>^ CreateSparseSymmetric(
int dimension,
double fillFactor
)
static member CreateSparseSymmetric :
dimension : int *
fillFactor : float -> SparseCompressedColumnMatrix<'T>
Parameters
- dimension
- Type: SystemInt32
The number of rows and 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 | dimension is less than zero. -or- fillFactor is less than or equal to zero or greater than 1. |
Reference