factorize

SPQRFactor.factorize(A, *, tol=None)[source]

Compute the numeric factorization of the matrix.

Parameters:
  • A ((M, N) array_like or sparse array, optional) – An array convertible to a sparse matrix. If None, the numeric factorization is computed for the matrix used in the constructor. If A is provided, it must have the same sparsity pattern as the matrix used in the constructor.

  • tol (float, optional) – If the 2-norm of a column in A is less than tol, that column is considered to be a zero column. If tol = 0, no columns are treated as zero. If None, the default tolerance is used. The default is tol = \(20 \epsilon (M + N) \sqrt{\max{\mathrm{diag}(A^{\top} A)}}\), where \(\epsilon\) is the machine precision.

Returns:

SPQRFactor – The current object with the numeric factorization computed.