ConstantMatrix<T>.Clone Method

Definition

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

Overload List

Clone() Constructs an independent writable copy of this matrix while preserving its structural representation.
Clone(CloningMethod) Makes a copy of this vector using the specified method.

Clone(CloningMethod)

Makes a copy of this vector using the specified method.
C#
public override Matrix<T> Clone(
	CloningMethod method
)

Parameters

method  CloningMethod
A CloningMethod value that specifies how the matrix should be cloned.

Return Value

Matrix<T>
The cloned Matrix<T>.

Remarks

Exact preserves mutability. A read-only matrix therefore produces a read-only exact clone.

NonzeroElementsWritable preserves the structural representation and makes the stored or structurally represented components writable.

AllElementsWritable returns a matrix where every logical component is writable, converting to a dense general matrix when required.

See Also