ArrayFunctions<T>.Pow Method

Definition

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

Overload List

Pow(Int32, ReadOnlySpanSlice<T>, T, SpanSlice<T>) Computes the element-wise power of a span.
Pow(Int32, ReadOnlySpanSlice<T>, Int32, SpanSlice<T>) Computes the element-wise power of a span.
Pow(Int32, ReadOnlySpan<T>, Int32, T, Span<T>, Int32) Computes the element-wise power of a span.
Pow(Int32, ReadOnlySpan<T>, Int32, Int32, Span<T>, Int32) Computes the element-wise power of a span.
Pow<TStorage>(Int32, TStorage, T, TStorage) Computes the element-wise power of an array.
Pow<TStorage>(Int32, TStorage, Int32, TStorage) Computes the element-wise power of an array.

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

Computes the element-wise power of a span.
C#
public void Pow(
	int length,
	ReadOnlySpanSlice<T> values,
	T exponent,
	SpanSlice<T> result
)

Parameters

length  Int32
The number of elements in the span.
values  ReadOnlySpanSlice<T>
The span that holds the operands.
exponent  T
The exponent.
result  SpanSlice<T>
The span that holds the results.

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

Computes the element-wise power of a span.
C#
public void Pow(
	int length,
	ReadOnlySpanSlice<T> values,
	int exponent,
	SpanSlice<T> result
)

Parameters

length  Int32
The number of elements in the span.
values  ReadOnlySpanSlice<T>
The span that holds the operands.
exponent  Int32
The exponent.
result  SpanSlice<T>
The span that holds the results.

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

Computes the element-wise power of an array.
C#
public void Pow<TStorage>(
	int length,
	TStorage values,
	T exponent,
	TStorage result
)
where TStorage : Object, IStorageSlice<T>

Parameters

length  Int32
The number of elements in the array.
values  TStorage
The array that holds the operands.
exponent  T
The exponent.
result  TStorage
The array that holds the results.

Type Parameters

TStorage

Pow<TStorage>(Int32, TStorage, Int32, TStorage)

Computes the element-wise power of an array.
C#
public void Pow<TStorage>(
	int length,
	TStorage values,
	int exponent,
	TStorage result
)
where TStorage : Object, IStorageSlice<T>

Parameters

length  Int32
The number of elements in the array.
values  TStorage
The array that holds the operands.
exponent  Int32
The exponent.
result  TStorage
The array that holds the results.

Type Parameters

TStorage

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

Computes the element-wise power of a span.
C#
public abstract void Pow(
	int length,
	ReadOnlySpan<T> values,
	int stride,
	T exponent,
	Span<T> result,
	int resultStride
)

Parameters

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

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

Computes the element-wise power of a span.
C#
public abstract void Pow(
	int length,
	ReadOnlySpan<T> values,
	int stride,
	int exponent,
	Span<T> result,
	int resultStride
)

Parameters

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

See Also