TensorPrimitives.Pow Method

Definition

Overloads

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

Computes the element-wise power of a number in a specified tensor raised to a number in another specified tensors.

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

Computes the element-wise power of a number in a specified tensor raised to a number in another specified tensors.

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

Computes the element-wise power of a number in a specified tensor raised to a number in another specified tensors.

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

Source:
TensorPrimitives.Pow.cs
Source:
TensorPrimitives.Pow.cs

Computes the element-wise power of a number in a specified tensor raised to a number in another specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IPowerFunctions<T> static void Pow(ReadOnlySpan<T> x, T y, Span<T> destination);
public static void Pow<T> (ReadOnlySpan<T> x, T y, Span<T> destination) where T : System.Numerics.IPowerFunctions<T>;
static member Pow : ReadOnlySpan<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> * 'T * Span<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> -> unit (requires 'T :> System.Numerics.IPowerFunctions<'T>)
Public Shared Sub Pow(Of T As IPowerFunctions(Of T)) (x As ReadOnlySpan(Of T), y As T, destination As Span(Of T))

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The first tensor, represented as a span.

y
T

The second tensor, represented as a scalar.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

x and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Pow(x[i], y).

Applies to

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

Source:
TensorPrimitives.Pow.cs
Source:
TensorPrimitives.Pow.cs

Computes the element-wise power of a number in a specified tensor raised to a number in another specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IPowerFunctions<T> static void Pow(T x, ReadOnlySpan<T> y, Span<T> destination);
public static void Pow<T> (T x, ReadOnlySpan<T> y, Span<T> destination) where T : System.Numerics.IPowerFunctions<T>;
static member Pow : 'T * ReadOnlySpan<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> * Span<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> -> unit (requires 'T :> System.Numerics.IPowerFunctions<'T>)
Public Shared Sub Pow(Of T As IPowerFunctions(Of T)) (x As T, y As ReadOnlySpan(Of T), destination As Span(Of T))

Type Parameters

T

Parameters

x
T

The first tensor, represented as a scalar.

y
ReadOnlySpan<T>

The second tensor, represented as a span.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

y and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Pow(x, y[i]).

Applies to

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

Source:
TensorPrimitives.Pow.cs
Source:
TensorPrimitives.Pow.cs

Computes the element-wise power of a number in a specified tensor raised to a number in another specified tensors.

public:
generic <typename T>
 where T : System::Numerics::IPowerFunctions<T> static void Pow(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination);
public static void Pow<T> (ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) where T : System.Numerics.IPowerFunctions<T>;
static member Pow : ReadOnlySpan<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> * ReadOnlySpan<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> * Span<'T (requires 'T :> System.Numerics.IPowerFunctions<'T>)> -> unit (requires 'T :> System.Numerics.IPowerFunctions<'T>)
Public Shared Sub Pow(Of T As IPowerFunctions(Of T)) (x As ReadOnlySpan(Of T), y As ReadOnlySpan(Of T), destination As Span(Of T))

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The first tensor, represented as a span.

y
ReadOnlySpan<T>

The second tensor, represented as a span.

destination
Span<T>

The destination tensor, represented as a span.

Exceptions

y and destination reference overlapping memory locations and do not begin at the same location.

Remarks

This method effectively computes destination[i] = T.Pow(x[i], y[i]).

Applies to