Function canonical

  • Compute the canonical form of the input.

    Parameters

    • M: number[][]

      Input maps.

    Returns number[][]

    Defactored Hermite normal form or the antitranspose sandwich for commas bases.