共用方式為


Tensor.Average<T>(ReadOnlyTensorSpan<T>) 方法

定義

傳回 x 張量中的元素平均值。

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

類型參數

T

參數

x
ReadOnlyTensorSpan<T>

要採用平均值的 TensorSpan<T>

傳回

T

T 表示平均值。

適用於