From f7b79cdd4533f3b4ffa80126ae37314d79f8b61a Mon Sep 17 00:00:00 2001 From: Julian Lenz Date: Mon, 3 Jul 2023 18:00:32 +0100 Subject: [PATCH] Added test for ProjectSpn --- tests/sp2n/Test_project_on_Sp.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/sp2n/Test_project_on_Sp.cc b/tests/sp2n/Test_project_on_Sp.cc index 026e6c6e..63032a68 100644 --- a/tests/sp2n/Test_project_on_Sp.cc +++ b/tests/sp2n/Test_project_on_Sp.cc @@ -103,6 +103,14 @@ void test_group_projections(T U) { U = U + Delta * identity; Sp::ProjectOnSpecialGroup(U); assert(is_element_of_sp2n_group(U)); + + name = "ProjectSpn"; + std::cout << GridLogMessage << "Testing " << name << std::endl; + std::cout << GridLogMessage << "Apply to deformed matrix" << std::endl; + + U = U + Delta * identity; + ProjectSpn(U); + assert(is_element_of_sp2n_group(U)); } template