BlockVector<T>.SetValue Method

Definition

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

Overload List

SetValue(T) Sets all the writable components of this instance to the specified value.
SetValue(T, Int32) Sets the vector element at the specified position to the specified value.
SetValue<K>(T, K) Sets the value at the specified key value.
Preliminary

SetValue(T)

Sets all the writable components of this instance to the specified value.
C#
public override Vector<T> SetValue(
	T value
)

Parameters

value  T
The value to be assigned to each component of this instance.

Return Value

Vector<T>
A reference to this instance.

SetValue(T, Int32)

Sets the vector element at the specified position to the specified value.
C#
public override void SetValue(
	T value,
	int index
)

Parameters

value  T
A T specifying the new value of the component.
index  Int32
The zero-based index of the component.

Return Value

The component of the Vector in the indexth position.

Remarks

This method does not perform bounds checking. It is provided for optimized access in situations where the argument is known to be within bounds. If the argument is outside its valid range, the result may be unpredictable.

Exceptions

ComponentReadOnlyException

An attempt is made to modify a component of a fixed BlockVector<T>.

See Also