Vector<T>.MakeImmutable Method

Protects the vector from changes in values or structure.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public Vector<T> MakeImmutable()

Return Value

Vector<T>
A reference to this instance.

Remarks

If the vector's storage is shared with other arrays that are mutable, the data will be cloned to ensure values can't change by changing values in those arrays. If the vector is already read-only, this method has no effect.

See Also