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

Method cols

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

Source from the content-addressed store, hash-verified

183
184 py::ssize_t rows() const { return Matrix::cols(); }
185 py::ssize_t cols() const { return Matrix::rows(); }
186 };
187 py::class_<FortranMatrix, Matrix>(m, "FortranMatrix", py::buffer_protocol())
188 .def(py::init<py::ssize_t, py::ssize_t>())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected