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

Method FortranMatrix

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

Source from the content-addressed store, hash-verified

171 class FortranMatrix : public Matrix {
172 public:
173 FortranMatrix(py::ssize_t rows, py::ssize_t cols) : Matrix(cols, rows) {
174 print_created(this,
175 std::to_string(rows) + "x" + std::to_string(cols) + " Fortran matrix");
176 }
177
178 float operator()(py::ssize_t i, py::ssize_t j) const { return Matrix::operator()(j, i); }
179

Calls 1

print_createdFunction · 0.85

Tested by

no test coverage detected