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

Function wrap_to_first_bz

cpp_core/src/symmetry.cpp:62–64  ·  view source on GitHub ↗

Wrap k to [-0.5, 0.5)

Source from the content-addressed store, hash-verified

60
61// Wrap k to [-0.5, 0.5)
62double wrap_to_first_bz(double x) {
63 return x - std::floor(x + 0.5);
64}
65
66// Generate all 3x3 integer matrices with entries in {-1,0,1} and |det|=1.
67// Returns column-major Mat3i (exactly 386 candidates).

Callers 2

index_to_fracFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected