Ignore:
Timestamp:
Apr 7, 2010, 3:45:38 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
0f55b2
Parents:
770138
Message:

Made data internal data-structure of vector class private

  • Replaced occurences of access to internals with operator
  • moved Vector-class into LinAlg-Module
  • Reworked Vector to allow clean modularization
  • Added Plane class to describe arbitrary planes in 3d space
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/helpers.hpp

    r770138 r71910a  
    2424/********************************************** definitions *********************************/
    2525
    26 // some algebraic matrix stuff
    27 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 
    3126/********************************************** helpful functions *********************************/
    3227
     
    5348bool check_bounds(double *x, double *cell_size);
    5449void bound(double *b, double lower_bound, double upper_bound);
    55 int pot(int base, int n);
    5650int CountLinesinFile(ifstream &InputFile);
    5751char *FixedDigitNumber(const int FragmentNumber, const int digits);
     
    6458/********************************************** helpful template functions *********************************/
    6559
    66 /** Flips two values.
    67  * \param x first value
    68  * \param y second value
    69  */
    70 template <typename T> void flip(T &x, T &y)
    71 {
    72   T tmp;
    73   tmp = x;
    74   x = y;
    75   y = tmp;
    76 };
    7760
    7861/** returns greater of the two values.
Note: See TracChangeset for help on using the changeset viewer.