Vector<T>.UnsafeSetValue Method

Sets the vector element at the specified position without validating the coordinate or preparing the vector for writing.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
C#
protected virtual void UnsafeSetValue(
	T value,
	int index
)

Parameters

value  T
The new value of the element.
index  Int32
The zero-based index of the element.

Remarks

The caller must establish coordinate validity and complete all required write preparation before calling this method. Incorrect use may bypass mutability or copy-on-write protection. Implementations remain responsible for preserving representation invariants.

See Also