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