Click or drag to resize

CreateMatrixSparse Method

Overload List
 NameDescription
Public methodStatic memberSparseT(SparseCompressedRowMatrixStorageT) 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.
Public methodStatic memberSparseT(Int32, Int32) Create a sparse matrix of T with the given number of rows and columns.
Public methodStatic memberSparseT(Int32, Int32, T) Create a new sparse matrix and initialize each value to the same provided value.
Public methodStatic memberSparseT(Int32, Int32, FuncInt32, Int32, T) Create a new sparse matrix and initialize each value using the provided init function.
Top
See Also