Share via


Tensor.Distance<T> Method

Definition

Computes the distance between two points, specified as non-empty, equal-length tensors of numbers, in Euclidean space.

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

Type Parameters

T

Parameters

Returns

T

Applies to