• Home
  • Raw
  • Download

Lines Matching refs:m_rows

18         Matrix(py::ssize_t rows, py::ssize_t cols) : m_rows(rows), m_cols(cols) {  in TEST_SUBMODULE()
19 print_created(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix"); in TEST_SUBMODULE()
24 Matrix(const Matrix &s) : m_rows(s.m_rows), m_cols(s.m_cols) { in TEST_SUBMODULE()
25 … print_copy_created(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix"); in TEST_SUBMODULE()
26 m_data = new float[(size_t) (m_rows * m_cols)]; in TEST_SUBMODULE()
27 memcpy(m_data, s.m_data, sizeof(float) * (size_t) (m_rows * m_cols)); in TEST_SUBMODULE()
30 Matrix(Matrix &&s) : m_rows(s.m_rows), m_cols(s.m_cols), m_data(s.m_data) { in TEST_SUBMODULE()
32 s.m_rows = 0; in TEST_SUBMODULE()
38 … print_destroyed(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix"); in TEST_SUBMODULE()
43 … print_copy_assigned(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix"); in TEST_SUBMODULE()
45 m_rows = s.m_rows; in TEST_SUBMODULE()
47 m_data = new float[(size_t) (m_rows * m_cols)]; in TEST_SUBMODULE()
48 memcpy(m_data, s.m_data, sizeof(float) * (size_t) (m_rows * m_cols)); in TEST_SUBMODULE()
53 … print_move_assigned(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix"); in TEST_SUBMODULE()
56 m_rows = s.m_rows; m_cols = s.m_cols; m_data = s.m_data; in TEST_SUBMODULE()
57 s.m_rows = 0; s.m_cols = 0; s.m_data = nullptr; in TEST_SUBMODULE()
72 py::ssize_t rows() const { return m_rows; } in TEST_SUBMODULE()
75 py::ssize_t m_rows; in TEST_SUBMODULE() member in TEST_SUBMODULE::Matrix