| 10 | cols(other.cols), cnt(other.cnt), data(other.data) { } |
| 11 | T& operator()(int i, int j) { return at(i, j); } |
| 12 | matrix<T> operator +(const matrix& other) { |
| 13 | matrix<T> res(*this); rep(i,0,cnt) |
| 14 | res.data[i] += other.data[i]; return res; } |
| 15 | matrix<T> operator -(const matrix& other) { |
| 16 | matrix<T> res(*this); rep(i,0,cnt) |
| 17 | res.data[i] -= other.data[i]; return res; } |
nothing calls this directly
no outgoing calls
no test coverage detected