MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / vector_norm

Function vector_norm

cpp_core/src/ewald.cpp:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace {
11
12double vector_norm(const Vec3d& v) {
13 return std::sqrt(dot(v, v));
14}
15
16Vec3d frac_to_cart(const Lattice& lattice, const Vec3d& frac) {
17 return matvec(lattice.R, frac);

Callers 1

Calls 1

dotFunction · 0.85

Tested by

no test coverage detected