Click or drag to resize

CreateMatrixSparseT(SparseCompressedRowMatrixStorageT) Method

Create a new sparse matrix straight from an initialized matrix storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static Matrix<T> Sparse<T>(
	SparseCompressedRowMatrixStorage<T> storage
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

storage  SparseCompressedRowMatrixStorageT
The storage.

Type Parameters

T
The element type of the matrix to create.

Return Value

MatrixT
A sparse matrix using the provided storage.
See Also