Tensor.Hypot 方法

定义

重载

Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

从两个张量(表示右角三角形中较短边的长度)计算元素的虚构值。 如果形状不相同,则它们将广播到最小的兼容形状。

Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)

从两个张量(表示右角三角形中较短边的长度)计算元素的虚构值。 如果形状不相同,则它们将广播到最小的兼容形状。

Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs

从两个张量(表示右角三角形中较短边的长度)计算元素的虚构值。 如果形状不相同,则它们将广播到最小的兼容形状。

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

类型参数

T

参数

返回

适用于

Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)

Source:
TensorExtensions.cs

从两个张量(表示右角三角形中较短边的长度)计算元素的虚构值。 如果形状不相同,则它们将广播到最小的兼容形状。

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

类型参数

T

参数

destination
TensorSpan<T>

返回

适用于