Changeset 0d111b for molecuilder/src/helpers.hpp
- Timestamp:
- Apr 29, 2010, 1:55:21 PM (15 years ago)
- Children:
- 070651, 5d1a94
- Parents:
- 90c4460 (diff), 32842d8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/helpers.hpp
r90c4460 r0d111b 24 24 /********************************************** definitions *********************************/ 25 25 26 // some algebraic matrix stuff27 double RDET3(const double a[NDIM*NDIM]);28 double RDET2(const double a[4]);29 double RDET2(const double a0, const double a1, const double a2, const double a3);30 31 26 /********************************************** helpful functions *********************************/ 32 27 … … 53 48 bool check_bounds(double *x, double *cell_size); 54 49 void bound(double *b, double lower_bound, double upper_bound); 55 int pot(int base, int n);56 50 int CountLinesinFile(ifstream &InputFile); 57 51 char *FixedDigitNumber(const int FragmentNumber, const int digits); … … 64 58 /********************************************** helpful template functions *********************************/ 65 59 66 /** Flips two values.67 * \param x first value68 * \param y second value69 */70 template <typename T> void flip(T &x, T &y)71 {72 T tmp;73 tmp = x;74 x = y;75 y = tmp;76 };77 60 78 61 /** returns greater of the two values.
Note:
See TracChangeset
for help on using the changeset viewer.