Param tweak.
param tweak.
Find p of nonzero rows/cols
Partial implementation of weighting.