ml-matrix
    Preparing search index...

    Function pseudoInverse

    • Returns inverse of a matrix if it exists or the pseudoinverse.

      Parameters

      • matrix: MaybeMatrix
      • Optionalthreshold: number

        Relative threshold for taking inverse of singular values. Singular values smaller than threshold * max(rows, columns) * largestSingularValue are treated as zero. Default: Number.EPSILON.

      Returns Matrix

      • The (pseudo)inverted matrix.