• Performs a .map over a matrix and return the result The shape of the input and output matrices will be the same

    Type Parameters

    • T

    • S

    Parameters

    • m: ROArrayArray<T>

      input matrix of type T

    • op: ((input) => S)

      operation that converts an element of type T to one of type S

        • (input): S
        • Parameters

          • input: T

          Returns S

    Returns ROArrayArray<S>

    a matrix with elements of type S that are calculated by applying op element by element

Generated using TypeDoc