7 enum class SymmetryStructure
13 structurally_symmetric
16 inline SymmetryStructure symmetryStructure(std::string str)
19 return SymmetryStructure::spd;
20 else if (str ==
"symmetric")
21 return SymmetryStructure::symmetric;
22 else if (str ==
"hermitian")
23 return SymmetryStructure::hermitian;
24 else if (str ==
"structurally_symmetric")
25 return SymmetryStructure::structurally_symmetric;
27 return SymmetryStructure::unknown;
30 inline std::string to_string(SymmetryStructure symmetry)
33 case SymmetryStructure::spd:
35 case SymmetryStructure::symmetric:
37 case SymmetryStructure::hermitian:
39 case SymmetryStructure::structurally_symmetric:
40 return "structurally_symmetric";