ListVector<T>.SetValue Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0

Overload List

SetValue(T) Sets all the elements of the vector to the specified value.
SetValue(IReadOnlyList<T>, Int32) Sets the list at the specified index.
SetValue<K>(T, K) Sets the value at the specified key value.

SetValue(IReadOnlyList<T>, Int32)

Sets the list at the specified index.
C#
public override void SetValue(
	IReadOnlyList<T> value,
	int index
)

Parameters

value  IReadOnlyList<T>
The list to set.
index  Int32
The zero-based index.

Remarks

This operation is not supported for ListVector<T> because the structure (list boundaries) is immutable. Use GetSpan(Int32) to modify individual elements within a list.

Exceptions

NotSupportedExceptionAlways thrown.

See Also