ComposedComplexVector<T>.SetValue Method

Definition

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

Overload List

SetValue(Complex<T>) Sets all the components of the ComposedComplexVector<T> to the specified value.
SetValue(Complex<T>, Int32) Sets the vector element at the specified position to the specified value.
Obsolete
SetValue<K>(T, K) Sets the value at the specified key value.

SetValue(Complex<T>)

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

Parameters

value  Complex<T>
The value to be assigned to each component of this ComposedComplexVector<T>.

Return Value

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

SetValue(Complex<T>, Int32)

Note: This API is now obsolete.
Sets the vector element at the specified position to the specified value.
C#
[ObsoleteAttribute("Use SetValueUnchecked instead.")]
public override void SetValue(
	Complex<T> value,
	int index
)

Parameters

value  Complex<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

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.

See Also