Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vector.hpp

    r0c7ed8 r4b94bb  
    1313#include <iostream>
    1414#include <gsl/gsl_vector.h>
    15 #include <gsl/gsl_multimin.h>
    1615
    1716#include <memory>
     
    2423
    2524class Vector;
     25class Matrix;
    2626
    2727typedef std::vector<Vector> pointset;
     
    3131 */
    3232class Vector : public Space{
     33  friend Vector operator*(const Matrix&,const Vector&);
    3334public:
    34 
    3535  Vector();
    3636  Vector(const double x1, const double x2, const double x3);
     
    4242  double DistanceSquared(const Vector &y) const;
    4343  double DistanceToSpace(const Space& space) const;
    44   double PeriodicDistance(const Vector &y, const double * const cell_size) const;
    45   double PeriodicDistanceSquared(const Vector &y, const double * const cell_size) const;
    4644  double ScalarProduct(const Vector &y) const;
    4745  double Angle(const Vector &y) const;
     
    5856  Vector Projection(const Vector &y) const;
    5957  void ScaleAll(const double *factor);
     58  void ScaleAll(const Vector &factor);
    6059  void Scale(const double factor);
    61   void MatrixMultiplication(const double * const M);
    62   bool InverseMatrixMultiplication(const double * const M);
    63   void KeepPeriodic(const double * const matrix);
    6460  bool GetOneNormalVector(const Vector &x1);
    6561  bool MakeNormalTo(const Vector &y1);
    66   bool IsInParallelepiped(const Vector &offset, const double * const parallelepiped) const;
    67   void WrapPeriodically(const double * const M, const double * const Minv);
    6862  std::pair<Vector,Vector> partition(const Vector&) const;
    6963  std::pair<pointset,Vector> partition(const pointset&) const;
     
    10498
    10599private:
     100  Vector(gsl_vector *);
    106101  gsl_vector *content;
    107102
Note: See TracChangeset for help on using the changeset viewer.