MCPcopy Create free account
hub / github.com/pybind/pybind11 / vectorize

Function vectorize

include/pybind11/numpy.h:2291–2293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2289// Vanilla pointer vectorizer:
2290template <typename Return, typename... Args>
2291detail::vectorize_helper<Return (*)(Args...), Return, Args...> vectorize(Return (*f)(Args...)) {
2292 return detail::vectorize_helper<Return (*)(Args...), Return, Args...>(f);
2293}
2294
2295// lambda vectorizer:
2296template <typename Func, detail::enable_if_t<detail::is_lambda<Func>::value, int> = 0>

Callers 2

TEST_SUBMODULEFunction · 0.85
TEST_SUBMODULEFunction · 0.85

Calls 1

vectorize_extractorFunction · 0.85

Tested by 2

TEST_SUBMODULEFunction · 0.68
TEST_SUBMODULEFunction · 0.68