fit()#

L2Solver.fit(A, B)[source]#

Take the SVD of A in preparation to solve the least-squares problem.

Parameters
A(k, d) ndarray

The “left-hand side” matrix.

B(k, r) ndarray

The “right-hand side” matrix B = [ b_1 | b_2 | … | b_r ].