Share via


Tensor.RootN Method

Definition

Overloads

RootN<T>(ReadOnlyTensorSpan<T>, Int32)

Computes the element-wise n-th root of the values in the specified tensor.

RootN<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)

Computes the element-wise n-th root of the values in the specified tensor.

RootN<T>(ReadOnlyTensorSpan<T>, Int32)

Source:
TensorExtensions.cs

Computes the element-wise n-th root of the values in the specified tensor.

public:
generic <typename T>
 where T : System::Numerics::IRootFunctions<T> static System::Numerics::Tensors::Tensor<T> ^ RootN(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int n);
public static System.Numerics.Tensors.Tensor<T> RootN<T> (in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int n) where T : System.Numerics.IRootFunctions<T>;
static member RootN : ReadOnlyTensorSpan * int -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IRootFunctions<'T>)> (requires 'T :> System.Numerics.IRootFunctions<'T>)
Public Function RootN(Of T As IRootFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), n As Integer) As Tensor(Of T)

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

The tensor, represented as a span.

n
Int32

The degree of the root to be computed, represented as a scalar.

Returns

Applies to

RootN<T>(ReadOnlyTensorSpan<T>, Int32, TensorSpan<T>)

Source:
TensorExtensions.cs

Computes the element-wise n-th root of the values in the specified tensor.

public:
generic <typename T>
 where T : System::Numerics::IRootFunctions<T> static System::Numerics::Tensors::TensorSpan<T> ^ RootN(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, int n, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RootN<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int n, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T>;
static member RootN : ReadOnlyTensorSpan * int * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IRootFunctions<'T>)
Public Function RootN(Of T As IRootFunctions(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T), n As Integer, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

The tensor, represented as a span.

n
Int32

The degree of the root to be computed, represented as a scalar.

destination
TensorSpan<T>

The destination tensor, represented as a span.

Returns

Applies to