ArrayFunctions<T>.SubtractFrom Method

Definition

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

Overload List

SubtractFrom(Int32, T, ReadOnlySpan<T>, Int32, Span<T>, Int32) Subtracts each element of a span from a value.
Obsolete.
SubtractFrom<TStorage>(Int32, T, TStorage, TStorage) Subtracts each element of an array from a value.
Obsolete.

SubtractFrom<TStorage>(Int32, T, TStorage, TStorage)

Note: This API is now obsolete.
Subtracts each element of an array from a value.
C#
[ObsoleteAttribute("Use the Subtract method instead.")]
public void SubtractFrom<TStorage>(
	int length,
	T value,
	TStorage operand,
	TStorage result
)
where TStorage : Object, IStorageSlice<T>

Parameters

length  Int32
The number of elements in the array.
value  T
The number to compare to.
operand  TStorage
The array that holds the operands.
result  TStorage
The array that holds the results.

Type Parameters

TStorage

SubtractFrom(Int32, T, ReadOnlySpan<T>, Int32, Span<T>, Int32)

Note: This API is now obsolete.
Subtracts each element of a span from a value.
C#
[ObsoleteAttribute("Use the Subtract method instead.")]
public void SubtractFrom(
	int length,
	T value,
	ReadOnlySpan<T> operand,
	int stride,
	Span<T> result,
	int resultStride
)

Parameters

length  Int32
The number of elements in the span.
value  T
The number to compare to.
operand  ReadOnlySpan<T>
The span that holds the operands.
stride  Int32
The distance between elements in operand.
result  Span<T>
The span that holds the results.
resultStride  Int32
The distance between elements in result.

See Also