Class LstsqSolver<T extends MatrixMixin<T,T,?,CMatrix,?,?,U,U>,U extends VectorMixin<U,U,?,CVector,?,T,T,CMatrix>>

java.lang.Object
org.flag4j.linalg.solvers.lstsq.LstsqSolver<T,U>
All Implemented Interfaces:
LinearSolver<T,U>
Direct Known Subclasses:
ComplexLstsqSolver, RealLstsqSolver

public abstract class LstsqSolver<T extends MatrixMixin<T,T,?,CMatrix,?,?,U,U>,U extends VectorMixin<U,U,?,CVector,?,T,T,CMatrix>> extends Object implements LinearSolver<T,U>
This class solves a linear system of equations Ax=b in a least-squares sense. That is, minimizes ||Ax-b||2 which is equivalent to solving the normal equations ATAx=AT b. This is done using a QR decomposition.