docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FMod

    FMod(TensorInt, TensorInt, TensorInt)

    Performs an element-wise Mod math operation: f(a, b) = a % b.

    The sign of the remainder is the same as the sign of the dividend, as in C#.

    This supports numpy-style broadcasting of input tensors.

    Declaration
    public virtual void FMod(TensorInt A, TensorInt B, TensorInt O)
    Parameters
    Type Name Description
    TensorInt A

    The first input tensor.

    TensorInt B

    The second input tensor.

    TensorInt O

    The output tensor to be computed and filled.

    Implements
    IBackend.FMod(TensorInt, TensorInt, TensorInt)

    FMod(TensorFloat, TensorFloat, TensorFloat)

    Performs an element-wise Mod math operation: f(a, b) = a % b.

    The sign of the remainder is the same as the sign of the dividend, as in C#.

    This supports numpy-style broadcasting of input tensors.

    Declaration
    public virtual void FMod(TensorFloat A, TensorFloat B, TensorFloat O)
    Parameters
    Type Name Description
    TensorFloat A

    The first input tensor.

    TensorFloat B

    The second input tensor.

    TensorFloat O

    The output tensor to be computed and filled.

    Implements
    IBackend.FMod(TensorFloat, TensorFloat, TensorFloat)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)