MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::inertia_t Struct Reference

Inertia of a symmetric matrix: the counts (positive, negative, zero) of its eigenvalues. More...

#include <spectral_properties.hpp>

Public Attributes

std::size_t positive = 0
std::size_t negative = 0
std::size_t zero = 0

Detailed Description

Inertia of a symmetric matrix: the counts (positive, negative, zero) of its eigenvalues.

By Sylvester's law of inertia this triple is invariant under congruence, so it is the definiteness fingerprint of A: (n,0,0) positive definite, (0,n,0) negative definite, zero > 0 singular, and positive>0 && negative>0 indefinite. Computed from the symmetric eigenvalues; an eigenvalue is classified zero when |lambda| <= tol (default max|lambda| * n * eps; pass tol for an explicit cutoff). Precondition: A is real symmetric.

Member Data Documentation

◆ negative

std::size_t mtl::inertia_t::negative = 0

◆ positive

std::size_t mtl::inertia_t::positive = 0

◆ zero

std::size_t mtl::inertia_t::zero = 0

The documentation for this struct was generated from the following file: