jax-js
    Preparing search index...
    • Calculates the matrix norm of a matrix or a stack of matrices.

      Parameters

      • x: ArrayLike

        Input Array (..., M, N)

      • ord: { keepdims?: boolean; ord?: number | "fro" | "nuc" } = {}

        Order of the norm (default "fro").

      Returns Array

      Matrix norm of input array. If keepdims is true, the result has shape (..., 1, 1). Otherwise, it has shape (...,).