public static AVector solveLeastSquares(AMatrix A, AVector b) {
QRHouseColSolver solver = new QRHouseColSolver();
solver.setA(A);
// create AMatrix from AVector
AMatrix B = b.asColumnMatrix();
AMatrix X = solver.solve(B);
// convert AMatrix into AVector and return
return X.asVector();
}
/**