Show / Hide Table of Contents

    Method productAxis

    static member productAxis: int -> Tensor<'T> -> Tensor<'T>

    Calculates the product of the elements along the specified axis.

    Declaration
    static member productAxis: ax:int -> src:Tensor<'T> -> Tensor<'T>
    Parameters
    Type Name Description
    int ax

    The axis to calculate the product along.

    Tensor<'T> src

    The tensor containing the source values.

    Returns
    Type Description
    Tensor<'T>

    A new tensor containing the result of this operation.

    Remarks

    The product is calculated along the specified axis. An empty product equals one.

    Examples
     let a = HostTensor.ofList2D [[1.0; 2.0; 3.0; 4.0]
                                  [5.0; 6.0; 7.0; 8.0]]
     let b = Tensor.productAxis 1 a // b = [24.0; 1680.0]
    See Also
    member FillProductAxis: int -> Tensor<'T> -> unit
    static member product: Tensor<'T> -> 'T
    Back to top Generated by DocFX