(self, a, m, M, out=None)
| 1840 | return a.clip(m, M, out=out, **kwargs) |
| 1841 | |
| 1842 | def clip(self, a, m, M, out=None): |
| 1843 | # use a.choose to verify fastclip result |
| 1844 | selector = np.less(a, m) + 2*np.greater(a, M) |
| 1845 | return selector.choose((a, m, M), out=out) |
| 1846 | |
| 1847 | # Handy functions |
| 1848 | def _generate_data(self, n, m): |
no test coverage detected