MultiLatticeSearch: Remove reduced function

This commit is contained in:
2026-06-05 13:51:39 +02:00
parent ae67b36160
commit 74c1a7a828
2 changed files with 1 additions and 31 deletions
@@ -105,25 +105,3 @@ std::vector<MultiLatticeSearchResult> MultiLatticeSearch(const std::vector<Cryst
return ret;
}
std::vector<MultiLatticeSearchResult> MultiLatticeSearchReduced(const std::vector<CrystalLattice> &lattices,
float dist_tolerance,
float angle_tolerance_deg) {
if (lattices.empty())
return {};
// Reduce lattice 0 to its primitive Niggli setting; that becomes the reference basis.
std::vector<CrystalLattice> reduced;
reduced.reserve(lattices.size());
// Reduce every candidate the same way so metric comparison and rotation
// are all done in the reduced setting.
for (const auto & lattice : lattices)
reduced.push_back(lattice.NiggliReduce());
auto ret = MultiLatticeSearch(reduced, dist_tolerance, angle_tolerance_deg);
// Keep input_lattice pointing at the original (un-reduced) lattices for debugging.
return ret;
}