Diagnosing machine parameters. Attributes ---------- ibeta : int Radix in which numbers are represented. it : int Number of base-`ibeta` digits in the floating point mantissa M. machep : int Exponent of the smallest (most negative) power of `ibeta` t
| 15 | |
| 16 | # Deprecated 2021-10-20, NumPy 1.22 |
| 17 | class MachAr: |
| 18 | """ |
| 19 | Diagnosing machine parameters. |
| 20 | |
| 21 | Attributes |
| 22 | ---------- |
| 23 | ibeta : int |
| 24 | Radix in which numbers are represented. |
| 25 | it : int |
| 26 | Number of base-`ibeta` digits in the floating point mantissa M. |
| 27 | machep : int |
| 28 | Exponent of the smallest (most negative) power of `ibeta` that, |
| 29 | added to 1.0, gives something different from 1.0 |
| 30 | eps : float |
| 31 | Floating-point number ``beta**machep`` (floating point precision) |
| 32 | negep : int |
| 33 | Exponent of the smallest power of `ibeta` that, subtracted |
| 34 | from 1.0, gives something different from 1.0. |
| 35 | epsneg : float |
| 36 | Floating-point number ``beta**negep``. |
| 37 | iexp : int |
| 38 | Number of bits in the exponent (including its sign and bias). |
| 39 | minexp : int |
| 40 | Smallest (most negative) power of `ibeta` consistent with there |
| 41 | being no leading zeros in the mantissa. |
| 42 | xmin : float |
| 43 | Floating-point number ``beta**minexp`` (the smallest [in |
| 44 | magnitude] positive floating point number with full precision). |
| 45 | maxexp : int |
| 46 | Smallest (positive) power of `ibeta` that causes overflow. |
| 47 | xmax : float |
| 48 | ``(1-epsneg) * beta**maxexp`` (the largest [in magnitude] |
| 49 | usable floating value). |
| 50 | irnd : int |
| 51 | In ``range(6)``, information on what kind of rounding is done |
| 52 | in addition, and on how underflow is handled. |
| 53 | ngrd : int |
| 54 | Number of 'guard digits' used when truncating the product |
| 55 | of two mantissas to fit the representation. |
| 56 | epsilon : float |
| 57 | Same as `eps`. |
| 58 | tiny : float |
| 59 | An alias for `smallest_normal`, kept for backwards compatibility. |
| 60 | huge : float |
| 61 | Same as `xmax`. |
| 62 | precision : float |
| 63 | ``- int(-log10(eps))`` |
| 64 | resolution : float |
| 65 | ``- 10**(-precision)`` |
| 66 | smallest_normal : float |
| 67 | The smallest positive floating point number with 1 as leading bit in |
| 68 | the mantissa following IEEE-754. Same as `xmin`. |
| 69 | smallest_subnormal : float |
| 70 | The smallest positive floating point number with 0 as leading bit in |
| 71 | the mantissa following IEEE-754. |
| 72 | |
| 73 | Parameters |
| 74 | ---------- |
no outgoing calls