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

Method rows

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

Source from the content-addressed store, hash-verified

247 using Matrix::data;
248
249 py::ssize_t rows() const { return Matrix::rows() / m_row_factor; }
250 py::ssize_t cols() const { return Matrix::cols() / m_col_factor; }
251 py::ssize_t row_factor() const { return m_row_factor; }
252 py::ssize_t col_factor() const { return m_col_factor; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected