Condividi tramite


Tensor.Distance<T> Metodo

Definizione

Calcola la distanza tra due punti, specificata come tensori non vuoti e di lunghezza uguale dei numeri, nello spazio euclideo.

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

Parametri di tipo

T

Parametri

Restituisce

T

Si applica a