fit()

fit()#

PlainSolver.fit(data_matrix, lhs_matrix)[source]#

Verify dimensions and save the data matrices.

Parameters:
data_matrix(k, d) ndarray

Data matrix \(\D\).

lhs_matrix(r, k) or (k,) ndarray

“Left-hand side” data matrix \(\Z\) (not its transpose!). If one-dimensional, assume \(r = 1\).