41struct std::formatter<slp::Inertia> {
46 constexpr auto parse(std::format_parse_context& ctx) {
47 return m_underlying.parse(ctx);
56 template <
typename FmtContext>
60 out = std::format_to(out,
"(");
61 out = m_underlying.format(inertia.
positive, ctx);
62 out = std::format_to(out,
", ");
63 out = m_underlying.format(inertia.
negative, ctx);
64 out = std::format_to(out,
", ");
65 out = m_underlying.format(inertia.
zero, ctx);
66 return std::format_to(out,
")");
70 std::formatter<int> m_underlying;
Definition inertia.hpp:11
int zero
The number of zero eigenvalues.
Definition inertia.hpp:18
constexpr Inertia(int positive, int negative, int zero)
Definition inertia.hpp:28
bool operator==(const Inertia &) const =default
int positive
The number of positive eigenvalues.
Definition inertia.hpp:14
int negative
The number of negative eigenvalues.
Definition inertia.hpp:16