Algorithm 3 Mixed-precision sweep algorithm. sweep right to left 14: end while 15: finish calculate and output energy This idea is simple and straightforward, however, it is infeasible to simply transform the double-precision codes into single-precision. Because the orthogonalization procedure fails in single-precision form. The numerical reason is: consider the Gram-Schmidt orthogonalization of two vector v 1 and v 2 :