mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
Added test for ProjectSpn
This commit is contained in:
parent
075b9d22d0
commit
f7b79cdd45
@ -103,6 +103,14 @@ void test_group_projections(T U) {
|
|||||||
U = U + Delta * identity;
|
U = U + Delta * identity;
|
||||||
Sp<Nc>::ProjectOnSpecialGroup(U);
|
Sp<Nc>::ProjectOnSpecialGroup(U);
|
||||||
assert(is_element_of_sp2n_group(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 <typename T>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user