Show / Hide Table of Contents

    Method allAxis

    static member allAxis: int -> Tensor<bool> -> Tensor<bool>

    Checks if all elements along the specified axis are true.

    Declaration
    static member allAxis: ax:int -> src:Tensor<bool> -> Tensor<bool>
    Parameters
    Type Name Description
    int ax

    The axis to check along.

    Tensor<bool> src

    The tensor containing the source values.

    Returns
    Type Description
    Tensor<bool>

    A new tensor containing the result of this operation.

    Remarks

    It is checked whether all elements along the specified axis are true. If so, true is returned; otherwise false is returned.

    If the tensor is empty true is returned.

    Examples
     let a = HostTensor.ofList2D [[true; true; true]
                                  [false; true; true]]
     let b = Tensor.allAxis 1 a // b = [true; false]
    See Also
    member FillAllAxis: int -> Tensor<bool> -> unit
    static member all: Tensor<bool> -> bool
    Back to top Generated by DocFX