Btw, if there is a reference for the implementation, please provide the reference. Otherwise, please add more comments about the difference here from a standard projected gradient/CG method.