35 vec_t v(3.0, 4.0, 5.0);
38 CHECK(Approx(r2) == 50.0);
41 std::vector<vec_t> disps(1);
43 std::vector<OHMMS_PRECISION> r(1), rinv(1), rr(1);
55 CHECK(Approx(rr[0]) == 50.0);
71 vec_t v1(0.0, 0.0, 0.0);
76 vec_t v2(0.5, 0.0, 0.0);
78 CHECK(r2 == Approx(0.01));
a class that defines a supercell in D-dimensional Euclean space.
TinyVector< double, 3 > vec_t
void reset()
Evaluate the reciprocal vectors, volume and metric tensor.
helper functions for EinsplineSetBuilder
TEST_CASE("complex_helper", "[type_traits]")
Declaration of CrystalLattice<T,D>
T apply_bc(TinyVector< T, D > &displ) const
apply BC on displ and return |displ|^2
Scalar_t Volume
Physical properties of a supercell.
TinyVector< int, D > BoxBConds
The boundary condition in each direction.
REQUIRE(std::filesystem::exists(filename))
void evaluate_rsquared(TinyVector< T, D > *restrict dr, T *restrict rr, int n)
void diagonal(const T &rhs)
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
Tensor_t R
Real-space unit vectors. R(i,j) i=vector and j=x,y,z.