TensorPrimitives.ScaleB<T> Method

Definition

Computes the element-wise product of numbers in the specified tensor and their base-radix raised to the specified power.

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

Type Parameters

T

Parameters

x
ReadOnlySpan<T>

The tensor, represented as a span.

n
Int32

The value to which base-radix is raised before multipliying x, 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.ILogB(x[i]).

Applies to