Ignore:
Timestamp:
Apr 29, 2010, 1:55:21 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
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.
Message:

Merge branch 'VectorRefactoring' into StructureRefactoring

Conflicts:

molecuilder/src/Legacy/oldmenu.cpp
molecuilder/src/Makefile.am
molecuilder/src/analysis_correlation.cpp
molecuilder/src/boundary.cpp
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/ellipsoid.cpp
molecuilder/src/linkedcell.cpp
molecuilder/src/molecule.cpp
molecuilder/src/molecule_fragmentation.cpp
molecuilder/src/molecule_geometry.cpp
molecuilder/src/molecule_graph.cpp
molecuilder/src/moleculelist.cpp
molecuilder/src/tesselation.cpp
molecuilder/src/tesselationhelpers.cpp
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
molecuilder/src/unittests/bondgraphunittest.cpp
molecuilder/src/vector.cpp
molecuilder/src/vector.hpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/helpers.cpp

    r90c4460 r0d111b  
    66
    77#include "helpers.hpp"
     8#include "Helpers/fast_functions.hpp"
    89#include "log.hpp"
    910#include "memoryusageobserver.hpp"
     
    4950  while (*b < lower_bound)
    5051    *b += step;
    51 };
    52 
    53 /** Returns the power of \a n with respect to \a base.
    54  * \param base basis
    55  * \param n power
    56  * \return \f$base^n\f$
    57  */
    58 int pot(int base, int n)
    59 {
    60   int res = 1;
    61   int j;
    62   for (j=n;j--;)
    63     res *= base;
    64   return res;
    6552};
    6653
     
    175162};
    176163
    177 /** hard-coded determinant of a 3x3 matrix.
    178  * \param a[9] matrix
    179  * \return \f$det(a)\f$
    180  */
    181 double RDET3(const double a[NDIM*NDIM])
    182 {
    183   return ((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]);
    184 };
    185 
    186 /** hard-coded determinant of a 2x2 matrix.
    187  * \param a[4] matrix
    188  * \return \f$det(a)\f$
    189  */
    190 double RDET2(const double a[4])
    191 {
    192   return ((a[0])*(a[3])-(a[1])*(a[2]));
    193 };
    194 
    195 /** hard-coded determinant of a 2x2 matrix.
    196  * \param a0 (0,0) entry of matrix
    197  * \param a1 (0,1) entry of matrix
    198  * \param a2 (1,0) entry of matrix
    199  * \param a3 (1,1) entry of matrix
    200  * \return \f$det(a)\f$
    201  */
    202 double RDET2(const double a0, const double a1, const double a2, const double a3)
    203 {
    204   return ((a0)*(a3)-(a1)*(a2));
    205 };
     164
    206165
    207166/** Comparison function for GSL heapsort on distances in two molecules.
Note: See TracChangeset for help on using the changeset viewer.