sweepystats.sweep_matrix.SweepMatrix#
- class sweepystats.sweep_matrix.SweepMatrix(A, storage=None)#
Thin wrapper over a numpy array. The original array will not be copied if it is a double-precision 2D array stored in column-major (Fortran-style).
- __init__(A, storage=None)#
Methods
__init__(A[, storage])det([restore, verbose])Computes the determinant by sweeping the entire matrix.
isposdef([restore, verbose, tol])Checks whether the matrix is positive definite by checking if A[k, k] > tol (note: strict inequality) for each k before being swept.
rank([restore, verbose, tol])Computes matrix rank by sweeping the entire matrix.
sweep([inv, verbose, symmetrize, tol])Sweeps the entire matrix.
sweep_k(k[, inv, symmetrize, tol])Sweeps on the kth row/column, returns A[k, k] before it is swept.
Attributes