SlowDown Algorithmic Regularization (SDAR)
Algorithmic Regularization with slowdown method for integrating few-body motions
|
Go to the documentation of this file.
13 Vector3(
const T _x,
const T _y,
const T _z):
x(_x),
y(_y),
z(_z) {}
16 return x*_v.
x +
y*_v.
y +
z*_v.
z;
21 (
z * rhs.
x -
x * rhs.
z),
22 (
x * rhs.
y -
y * rhs.
x) );
39 Matrix3(
const T _xx,
const T _xy,
const T _xz,
40 const T _yx,
const T _yy,
const T _yz,
41 const T _zx,
const T _zy,
const T _zz)
46 return Matrix3<U>(
static_cast<U
>(
xx),
static_cast<U
>(
xy),
static_cast<U
>(
xz),
47 static_cast<U
>(
yx),
static_cast<U
>(
yy),
static_cast<U
>(
yz),
48 static_cast<U
>(
zx),
static_cast<U
>(
zy),
static_cast<U
>(
zz) );
51 void rotation(
const T I,
const T OMEGA,
const T omega){
52 const T cosomega = cos(omega);
53 const T sinomega = sin(omega);
54 const T cosOMEGA = cos(OMEGA);
55 const T sinOMEGA = sin(OMEGA);
56 const T cosinc = cos(I);
57 const T sininc = sin(I);
58 xx = cosomega*cosOMEGA - sinomega*sinOMEGA*cosinc;
59 xy = -sinomega*cosOMEGA - cosomega*sinOMEGA*cosinc;
62 yx = cosomega*sinOMEGA + sinomega*cosOMEGA*cosinc;
63 yy = -sinomega*sinOMEGA + cosomega*cosOMEGA*cosinc;
64 yz = -cosOMEGA*sininc;
75 ret.x =
xx*vec.x +
xy*vec.y +
xz*vec.z;
76 ret.y =
yx*vec.x +
yy*vec.y +
yz*vec.z;
77 ret.z =
zx*vec.x +
zy*vec.y +
zz*vec.z;
92 c<<std::setprecision(15)<<mtmp.
xx<<
" "<<mtmp.
xy<<
" "<<mtmp.
xz<<std::endl;
93 c<<std::setprecision(15)<<mtmp.
yx<<
" "<<mtmp.
yy<<
" "<<mtmp.
yz<<std::endl;
94 c<<std::setprecision(15)<<mtmp.
zx<<
" "<<mtmp.
zy<<
" "<<mtmp.
zz<<std::endl;
Definition: binary_tree.h:8
T zx
Definition: matrix.h:31
Vector3()
Definition: matrix.h:12
T xz
Definition: matrix.h:31
T zy
Definition: matrix.h:31
void rotation(const T I, const T OMEGA, const T omega)
Definition: matrix.h:51
T xy
Definition: matrix.h:31
T yz
Definition: matrix.h:31
Matrix3(const Matrix3 &c)
Definition: matrix.h:36
Matrix3(const T _xx, const T _xy, const T _xz, const T _yx, const T _yy, const T _yz, const T _zx, const T _zy, const T _zz)
Definition: matrix.h:39
Tvec operator*(const Tvec &vec) const
Definition: matrix.h:73
T yx
Definition: matrix.h:31
T y
Definition: matrix.h:10
T zz
Definition: matrix.h:31
T xx
Definition: matrix.h:31
Vector3 operator^(const Vector3 &rhs) const
Definition: matrix.h:19
T z
Definition: matrix.h:10
Vector3(const T _x, const T _y, const T _z)
Definition: matrix.h:13
T yy
Definition: matrix.h:31
Matrix3(const T c)
Definition: matrix.h:34
T x
Definition: matrix.h:10
Matrix3()
Definition: matrix.h:32
T operator*(const Vector3< T > &_v) const
Definition: matrix.h:15
friend std::ostream & operator<<(std::ostream &c, Matrix3 &mtmp)
Definition: matrix.h:91