Changes in src/vector.hpp [0c7ed8:c94eeb]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/vector.hpp
r0c7ed8 rc94eeb 24 24 25 25 class Vector; 26 class Matrix; 26 27 27 28 typedef std::vector<Vector> pointset; … … 31 32 */ 32 33 class Vector : public Space{ 34 friend Vector operator*(const Matrix&,const Vector&); 33 35 public: 34 35 36 Vector(); 36 37 Vector(const double x1, const double x2, const double x3); … … 59 60 void ScaleAll(const double *factor); 60 61 void Scale(const double factor); 61 void MatrixMultiplication(const double * constM);62 void MatrixMultiplication(const Matrix &M); 62 63 bool InverseMatrixMultiplication(const double * const M); 63 64 void KeepPeriodic(const double * const matrix); … … 96 97 Vector const operator+(const Vector& b) const; 97 98 Vector const operator-(const Vector& b) const; 99 Vector& operator*=(const Matrix&); 98 100 99 101 // Methods inherited from Space … … 104 106 105 107 private: 108 Vector(gsl_vector *); 106 109 gsl_vector *content; 107 110 … … 118 121 Vector const operator*(const Vector& a, const double m); 119 122 Vector const operator*(const double m, const Vector& a); 123 Vector operator*(const Matrix&,const Vector&); 124 120 125 121 126 #endif /*VECTOR_HPP_*/
Note:
See TracChangeset
for help on using the changeset viewer.