Tensor.RootN 方法

定义

重载

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

计算指定张量中值的元素第 n 个根。

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

计算指定张量中值的元素第 n 个根。

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

Source:
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>)

Source:
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>

目标张量,表示为范围。

返回

适用于