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

适用于