public DoubleMatrix1D viewSelection(cern.colt.function.DoubleProcedure condition) {
IntArrayList matches = new IntArrayList();
for (int i=0; i < size; i++) {
if (condition.apply(getQuick(i))) matches.add(i);
}
matches.trimToSize();
return viewSelection(matches.elements());
}
/**
* Construct and returns a new selection view.
*