Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
10
namespace {
11
12
double vector_norm(const Vec3d& v) {
13
return std::sqrt(dot(v, v));
14
}
15
16
Vec3d frac_to_cart(const Lattice& lattice, const Vec3d& frac) {
17
return matvec(lattice.R, frac);
Callers
1
compute_ewald_energy_forces_no_stress
Function · 0.85
Calls
1
dot
Function · 0.85
Tested by
no test coverage detected