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