MCPcopy Create free account
hub / github.com/pybind/pybind11 / ~DiscontiguousMatrix

Method ~DiscontiguousMatrix

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

Source from the content-addressed store, hash-verified

229 }
230 DiscontiguousMatrix(const DiscontiguousMatrix &) = delete;
231 ~DiscontiguousMatrix() {
232 print_destroyed(this,
233 std::to_string(rows() / m_row_factor) + "(*"
234 + std::to_string(m_row_factor) + ")x"
235 + std::to_string(cols() / m_col_factor) + "(*"
236 + std::to_string(m_col_factor) + ") matrix");
237 }
238
239 float operator()(py::ssize_t i, py::ssize_t j) const {
240 return Matrix::operator()(i * m_row_factor, j * m_col_factor);

Callers

nothing calls this directly

Calls 1

print_destroyedFunction · 0.85

Tested by

no test coverage detected