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

Function my_func

tests/test_numpy_vectorize.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <utility>
16
17double my_func(int x, float y, double z) {
18 py::print("my_func(x:int={}, y:float={:.0f}, z:float={:.0f})"_s.format(x, y, z));
19 return (float) x * y * z;
20}
21
22TEST_SUBMODULE(numpy_vectorize, m) {
23 try {

Callers 1

TEST_SUBMODULEFunction · 0.85

Calls 2

printFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected