Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MATRIX_HPP_
- #define MATRIX_HPP_
- #include <iostream>
- #include <cstdlib>
- #include <cmath>
- #include <fstream>
- using namespace std;
- class bad_index{};
- class wrong_size{};
- class wrong_file_name{};
- class different_sizes{};
- class Matrix
- {
- private:
- struct rcMatrix;
- rcMatrix* data;
- public:
- Matrix(const char*);
- Matrix(int, int);
- Matrix(const Matrix&);
- ~Matrix();
- double operator()(int, int) const;
- friend ostream& operator<<(ostream&, const Matrix&);
- bool operator==(const Matrix&) const;
- Matrix& operator=(const Matrix&);
- Matrix operator+(const Matrix&) const;
- Matrix& operator+=(const Matrix&);
- Matrix operator-(const Matrix&) const;
- Matrix& operator-=(const Matrix&);
- Matrix operator*(const Matrix&) const;
- Matrix& operator*=(const Matrix&);
- int getRefCounter() const;
- };
- #endif
Add Comment
Please, Sign In to add comment