Changeset da84d6 for molecuilder/src/vector.hpp
- Timestamp:
- Aug 18, 2009, 8:48:06 AM (16 years ago)
- Children:
- 66ce7a
- Parents:
- 3de1d2
- git-author:
- Frederik Heber <heber@…> (08/18/09 08:38:46)
- git-committer:
- Frederik Heber <heber@…> (08/18/09 08:48:06)
- File:
-
- 1 edited
-
molecuilder/src/vector.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.hpp
r3de1d2 rda84d6 5 5 6 6 #include "helpers.hpp" 7 8 #include <gsl/gsl_vector.h> 9 #include <gsl/gsl_multimin.h> 7 10 8 11 class Vector; … … 28 31 double NormSquared() const; 29 32 double Angle(const Vector *y) const; 30 bool IsNull() const; 33 bool IsZero() const; 34 bool IsOne() const; 31 35 32 36 void AddVector(const Vector *y); … … 64 68 65 69 ostream & operator << (ostream& ost, const Vector &m); 66 //Vector& operator+=(Vector& a, const Vector& b); 67 //Vector& operator*=(Vector& a, const double m); 68 //Vector& operator*(const Vector& a, const double m); 69 //Vector& operator+(const Vector& a, const Vector& b); 70 Vector& operator+=(Vector& a, const Vector& b); 71 Vector& operator-=(Vector& a, const Vector& b); 72 Vector& operator*=(Vector& a, const double m); 73 Vector& operator*(const Vector& a, const double m); 74 Vector& operator*(const double m, const Vector& a); 75 Vector& operator+(const Vector& a, const Vector& b); 76 Vector& operator-(const Vector& a, const Vector& b); 77 78 // some algebraic matrix stuff 79 #define RDET3(a) ((a)[0]*(a)[4]*(a)[8] + (a)[3]*(a)[7]*(a)[2] + (a)[6]*(a)[1]*(a)[5] - (a)[2]*(a)[4]*(a)[6] - (a)[5]*(a)[7]*(a)[0] - (a)[8]*(a)[1]*(a)[3]) //!< hard-coded determinant of a 3x3 matrix 80 #define RDET2(a0,a1,a2,a3) ((a0)*(a3)-(a1)*(a2)) //!< hard-coded determinant of a 2x2 matrix 81 82 70 83 71 84 #endif /*VECTOR_HPP_*/
Note:
See TracChangeset
for help on using the changeset viewer.
