more tweaks for NERSC, added sparse matrix option for transpose coefficients