MatrixLeastSquares

class trainsum.matrixleastsquares.MatrixLeastSquares(*args, **kwargs)

Protocol for a matrix least squares solver.

__call__(A, B, /)

Solve the least squares problem for the given matrices A and B, returning the solution X that minimizes ||AX - B||.

Parameters:
  • A (Any)

  • B (Any)

Return type:

Any