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
40
41
42
43
44
45
46
//! Helpers for states held as PARTS arrays of f64 (part q of unknown i at `z[q][i]`), in any of multidouble's
//! precisions (`precision::Precision`: `Double`, `Quad`, `Octo`), which the residual, the Jacobian and Newton's
//! method are written over.
use Precision;
use Native;
/// The PARTS slices of a state held as owned part arrays
/// The larger of a and b, NaN when either is (`f64::max` returns the other operand for a NaN, so a fold with it
/// would drop them)
/// The smaller of a and b, NaN when either is (as `nan_max`)
/// max |x| over the scalars (hi part of the double-double rounding); NaN when any is NaN, so a residual with a NaN
/// never passes a tolerance
/// A state in more parts: the given part arrays, then zero arrays up to `parts` (a double-double state as the start
/// of a quad-double Newton, a quad-double one for octo-double)