My goal is to implement an equivalent to the LINEST function in excel. The goal is to calculate a mulitple linear regression for matrices that are potentially not full rank. My (limited) understanding is that this requires doing "column pivoting" in the implementation of QR decomposition. Does ml-matrix support this algorithm? Currently it seems that QrDecomposition.solve fails when the matrix is not full rank.