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

Method SquareMatrix

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

Source from the content-addressed store, hash-verified

302 class SquareMatrix : public Matrix {
303 public:
304 explicit SquareMatrix(py::ssize_t n) : Matrix(n, n) {}
305 };
306 // Derived classes inherit the buffer protocol and the buffer access function
307 py::class_<SquareMatrix, Matrix>(m, "SquareMatrix").def(py::init<py::ssize_t>());

Callers 1

test_inherited_protocolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected