ArrayFunctions<T>.Divide Method

Definition

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

Overload List

Divide(Int32, T, ReadOnlySpanSlice<T>, SpanSlice<T>) Divides a number by each element of a span.
Divide(Int32, ReadOnlySpanSlice<T>, ReadOnlySpanSlice<T>, SpanSlice<T>) Divides each element of a span by the corresponding element in another span.
Divide(Int32, T, ReadOnlySpan<T>, Int32, Span<T>, Int32) Divides a number by each element of a span.
Divide(Int32, ReadOnlySpan<T>, Int32, ReadOnlySpan<T>, Int32, Span<T>, Int32) Divides each element of a span by the corresponding element in another span.
Divide<TStorage>(Int32, TStorage, TStorage, TStorage) Divides each element of an array by the corresponding element in another array.
Divide<TStorage>(Int32, T, TStorage, TStorage) Divides a number by each element of an array.

Divide(Int32, T, ReadOnlySpanSlice<T>, SpanSlice<T>)

Divides a number by each element of a span.
C#
public void Divide(
	int length,
	T value,
	ReadOnlySpanSlice<T> operand,
	SpanSlice<T> result
)

Parameters

length  Int32
The number of elements in the span.
value  T
The number to compare to.
operand  ReadOnlySpanSlice<T>
The span that holds the operands.
result  SpanSlice<T>
The span that holds the results.

Divide(Int32, ReadOnlySpanSlice<T>, ReadOnlySpanSlice<T>, SpanSlice<T>)

Divides each element of a span by the corresponding element in another span.
C#
public void Divide(
	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.

Divide<TStorage>(Int32, TStorage, TStorage, TStorage)

Divides each element of an array by the corresponding element in another array.
C#
public void Divide<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

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

Divides a number by each element of an array.
C#
public void Divide<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

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

Divides a number by each element of a span.
C#
public void Divide(
	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.

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

Divides each element of a span by the corresponding element in another span.
C#
public abstract void Divide(
	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.

See Also