ArrayFunctions<T>.SetValue Method

Definition

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

Overload List

SetValue(Int32, T, SpanSlice<T>) Sets all elements in the span to the specified value.
SetValue(Int32, T, Span<T>, Int32) Sets all elements in the span to the specified value.
SetValue<TStorage>(Int32, T, TStorage) Sets all elements in the array to the specified value.

SetValue(Int32, T, SpanSlice<T>)

Sets all elements in the span to the specified value.
C#
public void SetValue(
	int length,
	T value,
	SpanSlice<T> operand
)

Parameters

length  Int32
The number of elements in the span.
value  T
The value to assign to each element.
operand  SpanSlice<T>
The span that holds the operands.

SetValue<TStorage>(Int32, T, TStorage)

Sets all elements in the array to the specified value.
C#
public void SetValue<TStorage>(
	int length,
	T value,
	TStorage result
)
where TStorage : Object, IStorageSlice<T>

Parameters

length  Int32
The number of elements in the array.
value  T
The value to assign to each element.
result  TStorage
The array that holds the results.

Type Parameters

TStorage

SetValue(Int32, T, Span<T>, Int32)

Sets all elements in the span to the specified value.
C#
public virtual void SetValue(
	int length,
	T value,
	Span<T> operand,
	int stride
)

Parameters

length  Int32
The number of elements in the span.
value  T
The value to assign to each element.
operand  Span<T>
The span that holds the operands.
stride  Int32
The distance between elements in operand.

See Also