-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmatrix.h
32 lines (24 loc) · 944 Bytes
/
vmatrix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef VMATRIX_H
#define VMATRIX_H
#include <vector>
namespace VMatrix {
typedef std::vector<std::vector<int>> MatrixVector;
class Matrix {
int colCount, rowCount;
MatrixVector matrix;
public:
Matrix(const unsigned int, const unsigned int);
Matrix(MatrixVector&, int, int);
~Matrix() { return; }
bool fillMatrixWithRandNums(const unsigned int, const unsigned int);
void printMatrix();
void setNewMatrix(MatrixVector const & mVec) { this->matrix = mVec; }
int getColumnCount() const { return this->colCount; }
int getRowCount() const { return this->rowCount; }
MatrixVector getRawMatrixVector() const { return this->matrix; }
friend Matrix operator + (Matrix const&, Matrix const&);
friend Matrix operator - (Matrix const&, Matrix const&);
friend Matrix operator * (Matrix const&, Matrix const&);
};
}
#endif