Changeset 20895b for molecuilder/src/vector.hpp
- Timestamp:
- Nov 4, 2009, 5:34:05 PM (16 years ago)
- Children:
- 5f1d021
- Parents:
- c1b76e
- File:
-
- 1 edited
-
molecuilder/src/vector.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.hpp
rc1b76e r20895b 62 62 void Scale(const double factor); 63 63 void MatrixMultiplication(const double * const M); 64 double * InverseMatrix(const double * const A);65 64 void InverseMatrixMultiplication(const double * const M); 66 65 void KeepPeriodic(ofstream *out, const double * const matrix); … … 91 90 Vector& operator-(const Vector& a, const Vector& b); 92 91 93 // some algebraic matrix stuff94 #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 matrix95 #define RDET2(a0,a1,a2,a3) ((a0)*(a3)-(a1)*(a2)) //!< hard-coded determinant of a 2x2 matrix96 97 98 92 99 93 #endif /*VECTOR_HPP_*/
Note:
See TracChangeset
for help on using the changeset viewer.
