(self, a, m, M, out=None)
| 2329 | return a.clip(m, M, out=out, **kwargs) |
| 2330 | |
| 2331 | def clip(self, a, m, M, out=None): |
| 2332 | # use a.choose to verify fastclip result |
| 2333 | selector = np.less(a, m) + 2 * np.greater(a, M) |
| 2334 | return selector.choose((a, m, M), out=out) |
| 2335 | |
| 2336 | # Handy functions |
| 2337 | def _generate_data(self, n, m): |
no outgoing calls
no test coverage detected