MCPcopy Create free account
hub / github.com/numpy/numpy / _NPY_CLIP

Function _NPY_CLIP

numpy/core/src/umath/clip.cpp:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108template <class Tag, class T>
109T
110_NPY_CLIP(T x, T min, T max)
111{
112 return _NPY_MIN<Tag>(_NPY_MAX<Tag>((x), (min)), (max));
113}
114
115template <class Tag, class T = typename Tag::type>
116static void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected