MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator()

Method operator()

tests/test_buffers.cpp:111–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 float operator()(py::ssize_t i, py::ssize_t j) const {
112 return m_data[(size_t) (i * m_cols + j)];
113 }
114
115 float &operator()(py::ssize_t i, py::ssize_t j) {
116 return m_data[(size_t) (i * m_cols + j)];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected