共用方式為


Tensor.RootN 方法

定義

多載

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

計算指定張量中值的第 n 個元素根。

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

計算指定張量中值的第 n 個元素根。

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

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

計算指定張量中值的第 n 個元素根。

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)

類型參數

T

參數

x
ReadOnlyTensorSpan<T>

以範圍表示的張量。

n
Int32

要計算之根系的程度,以純量表示。

傳回

適用於

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

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

計算指定張量中值的第 n 個元素根。

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)

類型參數

T

參數

x
ReadOnlyTensorSpan<T>

以範圍表示的張量。

n
Int32

要計算之根系的程度,以純量表示。

destination
TensorSpan<T>

目的地張量,以範圍表示。

傳回

適用於