MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / norm

Function norm

dscribe/ext/geometry.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29inline double norm(const vector<double>& a) {
30 double accum = 0.0;
31 for (size_t i = 0; i < a.size(); ++i) {
32 accum += a[i] * a[i];
33 }
34 return sqrt(accum);
35};
36
37ExtendedSystem extend_system(
38 py::array_t<double> positions,

Callers 1

extend_systemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected