Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Matrix::Matrix()
- {
- this->cols = cols;
- this->rows = rows;
- this->matrix = new float[this->cols * this->rows];
- }
- float& Matrix::getElement(int x, int y)
- {
- return matrix[this->rows x + y]
- }
- Matrix::~Matrix()
- {
- delete[] this->matrix;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement