https://123dok.net/document/yr3l8d7y-matrix-recipes-for-hard-thresholding-methods.html