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