Tensor.Hypot Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
Computes the element-wise hypotenuse given values from two tensors representing the lengths of the shorter sides in a right-angled triangle. If the shapes are not the same they are broadcast to the smallest compatible shape. |
Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Computes the element-wise hypotenuse given values from two tensors representing the lengths of the shorter sides in a right-angled triangle. If the shapes are not the same they are broadcast to the smallest compatible shape. |
Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
Computes the element-wise hypotenuse given values from two tensors representing the lengths of the shorter sides in a right-angled triangle. If the shapes are not the same they are broadcast to the smallest compatible shape.
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)
Type Parameters
- T
Parameters
Returns
Applies to
Hypot<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Computes the element-wise hypotenuse given values from two tensors representing the lengths of the shorter sides in a right-angled triangle. If the shapes are not the same they are broadcast to the smallest compatible shape.
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)
Type Parameters
- T
Parameters
- destination
- TensorSpan<T>