Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vector.hpp

    r0c7ed8 rc94eeb  
    2424
    2525class Vector;
     26class Matrix;
    2627
    2728typedef std::vector<Vector> pointset;
     
    3132 */
    3233class Vector : public Space{
     34  friend Vector operator*(const Matrix&,const Vector&);
    3335public:
    34 
    3536  Vector();
    3637  Vector(const double x1, const double x2, const double x3);
     
    5960  void ScaleAll(const double *factor);
    6061  void Scale(const double factor);
    61   void MatrixMultiplication(const double * const M);
     62  void MatrixMultiplication(const Matrix &M);
    6263  bool InverseMatrixMultiplication(const double * const M);
    6364  void KeepPeriodic(const double * const matrix);
     
    9697  Vector const operator+(const Vector& b) const;
    9798  Vector const operator-(const Vector& b) const;
     99  Vector& operator*=(const Matrix&);
    98100
    99101  // Methods inherited from Space
     
    104106
    105107private:
     108  Vector(gsl_vector *);
    106109  gsl_vector *content;
    107110
     
    118121Vector const operator*(const Vector& a, const double m);
    119122Vector const operator*(const double m, const Vector& a);
     123Vector operator*(const Matrix&,const Vector&);
     124
    120125
    121126#endif /*VECTOR_HPP_*/
Note: See TracChangeset for help on using the changeset viewer.