Vector<T>.Protect Method
Returns a read-only copy of the vector.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A reference to the new vector. If the vector is already immutable, the same instance is returned.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Vector<T> Protect(
ArrayMutability mutability = ArrayMutability.Immutable
)
Parameters
- mutability ArrayMutability (Optional)
- The desired degree of mutability of the result.
Return Value
Vector<T>A reference to the new vector. If the vector is already immutable, the same instance is returned.