DistributedVector<T>.SetValue Method

Definition

Namespace: Extreme.Mathematics.Distributed
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

SetValue(T) Sets all the elements of the vector 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 elements of the vector to the specified value.
C#
public override Vector<T> SetValue(
	T value
)

Parameters

value  T
The value to be assigned to each element of this Vector<T>.

Return Value

Vector<T>
A reference to this Vector<T>.

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
The new value of the element.
index  Int32
The zero-based index of the element.

Return Value

The element of the Vector<T> in the indexth position.

Remarks

The data is only updated locally.

See Also