Matrix clip(double min, double max) { return performFunction((a) { if (a > max || a < min) { return 0.0; } return a; }); }