Partager via


Tensor.Sum<T>(ReadOnlyTensorSpan<T>) Méthode

Définition

Additionne les éléments du tensoriel spécifié.

public:
generic <typename T>
 where T : System::Numerics::IAdditionOperators<T, T, T>, System::Numerics::IAdditiveIdentity<T, T> static T Sum(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x);
public static T Sum<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IAdditionOperators<T,T,T>, System.Numerics.IAdditiveIdentity<T,T>;
static member Sum : ReadOnlyTensorSpan -> 'T (requires 'T :> System.Numerics.IAdditionOperators<'T, 'T, 'T> and 'T :> System.Numerics.IAdditiveIdentity<'T, 'T>)
Public Function Sum(Of T As {IAdditionOperators(Of T, T, T), IAdditiveIdentity(Of T, T)}) (ByRef x As ReadOnlyTensorSpan(Of T)) As T

Paramètres de type

T

Paramètres

x
ReadOnlyTensorSpan<T>

Tensor à additionner

Retours

T

S’applique à