Tensor.Average<T>(ReadOnlyTensorSpan<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳張量中元素 x 的平均值。
public:
generic <typename T>
where T : System::Numerics::INumberBase<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.INumberBase<T>;
static member Average : ReadOnlyTensorSpan -> 'T (requires 'T :> System.Numerics.INumberBase<'T>)
Public Function Average(Of T As INumberBase(Of T)) (ByRef x As ReadOnlyTensorSpan(Of T)) As T
類型參數
- T
參數
TensorSpan<T>要取得的意義。
傳回
T
T 代表均值。