Changes in src/vector.hpp [0c7ed8:8e17d6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/vector.hpp
r0c7ed8 r8e17d6 11 11 #endif 12 12 13 #include <iostream> 14 #include <gsl/gsl_vector.h> 15 #include <gsl/gsl_multimin.h> 13 #include <iosfwd> 16 14 17 15 #include <memory> … … 24 22 25 23 class Vector; 24 class Matrix; 25 struct VectorContent; 26 26 27 27 typedef std::vector<Vector> pointset; … … 31 31 */ 32 32 class Vector : public Space{ 33 friend Vector operator*(const Matrix&,const Vector&); 34 friend class Matrix; 33 35 public: 34 35 36 Vector(); 36 37 Vector(const double x1, const double x2, const double x3); … … 42 43 double DistanceSquared(const Vector &y) const; 43 44 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;46 45 double ScalarProduct(const Vector &y) const; 47 46 double Angle(const Vector &y) const; … … 58 57 Vector Projection(const Vector &y) const; 59 58 void ScaleAll(const double *factor); 59 void ScaleAll(const Vector &factor); 60 60 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);64 61 bool GetOneNormalVector(const Vector &x1); 65 62 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);68 63 std::pair<Vector,Vector> partition(const Vector&) const; 69 64 std::pair<pointset,Vector> partition(const pointset&) const; … … 79 74 80 75 // Access to internal structure 81 gsl_vector* get();76 VectorContent* get(); 82 77 83 78 // Methods that are derived directly from other methods … … 104 99 105 100 private: 106 gsl_vector *content; 101 Vector(VectorContent *); 102 VectorContent *content; 107 103 108 104 };
Note:
See TracChangeset
for help on using the changeset viewer.