Lines Matching defs:m_rows
17 Matrix(ssize_t rows, ssize_t cols) : m_rows(rows), m_cols(cols) {
18 print_created(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix");
23 Matrix(const Matrix &s) : m_rows(s.m_rows), m_cols(s.m_cols) {
24 print_copy_created(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix");
25 m_data = new float[(size_t) (m_rows * m_cols)];
26 memcpy(m_data, s.m_data, sizeof(float) * (size_t) (m_rows * m_cols));
29 Matrix(Matrix &&s) : m_rows(s.m_rows), m_cols(s.m_cols), m_data(s.m_data) {
31 s.m_rows = 0;
37 print_destroyed(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix");
42 print_copy_assigned(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix");
44 m_rows = s.m_rows;
46 m_data = new float[(size_t) (m_rows * m_cols)];
47 memcpy(m_data, s.m_data, sizeof(float) * (size_t) (m_rows * m_cols));
52 print_move_assigned(this, std::to_string(m_rows) + "x" + std::to_string(m_cols) + " matrix");
55 m_rows = s.m_rows; m_cols = s.m_cols; m_data = s.m_data;
56 s.m_rows = 0; s.m_cols = 0; s.m_data = nullptr;
71 ssize_t rows() const { return m_rows; }
74 ssize_t m_rows;