Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MATRIX.h
- #ifndef MATRIX_H
- #define MATRIX_H
- #include <iostream>
- class Matrix{
- private:
- int m;
- int n;
- double randDouble();
- void allocate(int, int);
- void allocate(double** paths, int m, int n);
- public:
- double** matrix;
- void randomDoubleMatrix();
- void reallocate(double**, int, int);
- void printMatrix();
- void setM(int);
- void setN(int);
- int getM();
- int getN();
- Matrix();
- Matrix(double** array, int m, int n);
- Matrix(int, int);
- Matrix(Matrix &);
- ~Matrix();
- // przeci¹¿anie
- void operator =(Matrix& b);
- void operator-();
- void operator+();
- void operator*(float f);
- void operator*(Matrix&);
- Matrix& operator+(Matrix&);
- Matrix& operator-(Matrix&);
- Matrix& operator+=(Matrix&);
- Matrix& operator-=(Matrix&);
- Matrix& operator*=(float f);
- Matrix& operator*=(Matrix&);
- bool operator==(Matrix&);
- bool operator!=(Matrix&);
- double operator()(int y, int x);
- double& operator[](int k);
- };
- #endif // MATRIX_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement