SparseCompressedColumnMatrix<T>.TryEnsureWritable Method

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0

Overload List

TryEnsureWritable() Ensures that the elements of the matrix can be written to.
TryEnsureWritable(Int32, Int32)Checked compatibility wrapper for writability preparation.
Obsolete
TryEnsureWritable(Int32, Int32, Int32, Int32)Checked compatibility wrapper for writability preparation.
Obsolete

TryEnsureWritable

Ensures that the elements of the matrix can be written to.
C#
public override bool TryEnsureWritable()

Return Value

Boolean

true if the operation succeeded; otherwise false.

Remarks

A zero-length dimension has the canonical whole range from zero through -1.

A mutable matrix with an empty write footprint succeeds without preparing or detaching storage. A read-only empty matrix remains nonwritable.

See Also