13 #ifndef QMCPLUSPLUS_ROTATION_MATRIX_3D_H 14 #define QMCPLUSPLUS_ROTATION_MATRIX_3D_H 17 #include "config/stdlib/Constants.h" 35 T cth(1.0 - 2 * rng3);
41 sph * cth * cps + cph * sps,
43 -cph * cth * sps - sph * cps,
44 -sph * cth * sps + cph * cps,
helper functions for EinsplineSetBuilder
MakeReturn< UnaryNode< FnSin, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sin(const Vector< T1, C1 > &l)
MakeReturn< UnaryNode< FnCos, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t cos(const Vector< T1, C1 > &l)
Tensor<T,D> class for D by D tensor.
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)
Tensor< T, 3 > generateRotationMatrix(T rng1, T rng2, T rng3)
Create a random 3D rotation matrix from three random numbers.