According to the LinearAlgebra documentation for la_solve:
"
If the matrix is not square, we return a least-squares solution computed by
performing a QR factorization of the matrix.
If the number of rows of the matrix does not match the number of rows of
the right hand side object, the returned object has status
LA_DIMENSION_MISMATCH_ERROR.
"
However, my tests indicate that la_solve returns LA_DIMENSION_MISMATCH_ERROR, including when set up for a least-squares solution (i.e. number of rows of matrix and vector match). Please provide working sample code for a least squares computation. Preferably in Swift 3.