Skip to content
Snippets Groups Projects
Commit 6c20df28 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: additional in-place clamp_min(), clamp_max() field methods

- these already existed for a single value, but now handle the full
  field. This is more memory-friendly.

      fld.clamp_min(lower);  OLD: fld = max(fld, lower);
      fld.clamp_max(upper);  OLD: fld = min(fld, upper);
parent 80d7fe97
Branches
Tags
Loading
Showing
with 258 additions and 103 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment