/** If "ifSelected" is false, it reverses the selection. If "fselection" is null, this implies that all features are selected; all values will be changed unless "ifSelected" is false. */ public final void setAll (double v, FeatureSelection fselection, boolean ifSelected) { if (fselection == null) { if (ifSelected == true) { logger.info ("Matrix2.setAll using FeatureSelection==null"); setAll (v); } } else { logger.info ("Matrix2.setAll using FeatureSelection"); for (int i = 0; i < values.length; i++) if (fselection.contains(i) ^ !ifSelected) values[i] = v; } }