1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/// Inertia of a symmetric matrix: counts of positive, negative, zero eigenvalues.
///
/// This is a plain triple of counts. `total()` returns their sum, which equals
/// the dimension of whatever (sub)matrix the inertia describes. The type is
/// also used for sub-blocks — e.g. the 2×2 pivot classification in
/// `dense::factor` returns inertias with `total() == 2` — so the sum is the
/// described block's order, not necessarily the global matrix order `n`. The
/// counts are caller-supplied and not validated against any dimension; keeping
/// them consistent is the caller's responsibility (see `new`).