Array Functions<T>.Subtract Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Subtract( | Subtracts each element of a span by the corresponding element in another span. |
Subtract( | Subtracts each element of a span by the corresponding element in another span. |
Subtract<TStorage>(Int32, TStorage, TStorage, TStorage) | Subtracts each element of an array from the corresponding element in another array. |
Subtract(Int32, ReadOnlySpanSlice<T>, ReadOnlySpanSlice<T>, SpanSlice<T>)
Subtracts each element of a span by the corresponding element in another span.
public void Subtract(
int length,
ReadOnlySpanSlice<T> first,
ReadOnlySpanSlice<T> second,
SpanSlice<T> result
)
Parameters
- length Int32
- The number of elements in the span.
- first ReadOnlySpanSlice<T>
- The span that holds the first operands.
- second ReadOnlySpanSlice<T>
- The span that holds the second operands.
- result SpanSlice<T>
- The span that holds the results.
Subtract<TStorage>(Int32, TStorage, TStorage, TStorage)
Subtracts each element of an array from the corresponding element in another array.
public void Subtract<TStorage>(
int length,
TStorage first,
TStorage second,
TStorage result
)
where TStorage : Object, IStorageSlice<T>
Parameters
- length Int32
- The number of elements in the array.
- first TStorage
- The array that holds the first operands.
- second TStorage
- The array that holds the second operands.
- result TStorage
- The array that holds the results.
Type Parameters
- TStorage
Subtract(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32)
Subtracts each element of a span by the corresponding element in another span.
public abstract void Subtract(
int length,
ReadOnlySpan<T> first,
int firstStride,
ReadOnlySpan<T> second,
int secondStride,
Span<T> result,
int resultStride
)
Parameters
- length Int32
- The number of elements in the span.
- first ReadOnlySpan<T>
- The span that holds the first operands.
- firstStride Int32
- The distance between elements in first.
- second ReadOnlySpan<T>
- The span that holds the second operands.
- secondStride Int32
- The distance between elements in second.
- result Span<T>
- The span that holds the results.
- resultStride Int32
- The distance between elements in result.