/** prune all values whose magnitude is below threshold */ public void prune(double threshold) { // for (SparseVector v : this) { for (int i = 0; i < size(); i++) { SparseVector a = get(i); a.prune(threshold); } }