@lakutata/math 0.0.0-stage → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +954 -2
- package/README.zh-CN.md +578 -0
- package/THIRD_PARTY_NOTICES.md +553 -0
- package/binding.gyp +89 -0
- package/dist/cjs/exceptions/MathArgumentException.d.ts +11 -0
- package/dist/cjs/exceptions/MathArgumentException.js +18 -0
- package/dist/cjs/exceptions/MathCancelledException.d.ts +10 -0
- package/dist/cjs/exceptions/MathCancelledException.js +17 -0
- package/dist/cjs/exceptions/MathDefinitionException.d.ts +11 -0
- package/dist/cjs/exceptions/MathDefinitionException.js +18 -0
- package/dist/cjs/exceptions/MathDivisionByZeroException.d.ts +10 -0
- package/dist/cjs/exceptions/MathDivisionByZeroException.js +17 -0
- package/dist/cjs/exceptions/MathDomainException.d.ts +11 -0
- package/dist/cjs/exceptions/MathDomainException.js +18 -0
- package/dist/cjs/exceptions/MathException.d.ts +19 -0
- package/dist/cjs/exceptions/MathException.js +22 -0
- package/dist/cjs/exceptions/MathNotSupportedException.d.ts +11 -0
- package/dist/cjs/exceptions/MathNotSupportedException.js +18 -0
- package/dist/cjs/exceptions/MathSyntaxException.d.ts +11 -0
- package/dist/cjs/exceptions/MathSyntaxException.js +18 -0
- package/dist/cjs/exceptions/MathTimeoutException.d.ts +10 -0
- package/dist/cjs/exceptions/MathTimeoutException.js +17 -0
- package/dist/cjs/exceptions/MathUnitException.d.ts +11 -0
- package/dist/cjs/exceptions/MathUnitException.js +18 -0
- package/dist/cjs/exceptions/MathUnknownFunctionException.d.ts +12 -0
- package/dist/cjs/exceptions/MathUnknownFunctionException.js +19 -0
- package/dist/cjs/exports/Math.d.ts +28 -0
- package/dist/cjs/exports/Math.js +84 -0
- package/dist/cjs/lib/Addon.d.ts +5 -0
- package/dist/cjs/lib/Addon.js +9 -0
- package/dist/cjs/lib/Context.d.ts +90 -0
- package/dist/cjs/lib/Context.js +134 -0
- package/dist/cjs/lib/Decimal.d.ts +276 -0
- package/dist/cjs/lib/Decimal.js +402 -0
- package/dist/cjs/lib/Defaults.d.ts +273 -0
- package/dist/cjs/lib/Defaults.js +308 -0
- package/dist/cjs/lib/Distribution.d.ts +177 -0
- package/dist/cjs/lib/Distribution.js +196 -0
- package/dist/cjs/lib/Expression.d.ts +791 -0
- package/dist/cjs/lib/Expression.js +991 -0
- package/dist/cjs/lib/ExpressionMatrix.d.ts +284 -0
- package/dist/cjs/lib/ExpressionMatrix.js +412 -0
- package/dist/cjs/lib/LinearAlgebra.d.ts +613 -0
- package/dist/cjs/lib/LinearAlgebra.js +712 -0
- package/dist/cjs/lib/MathScope.d.ts +268 -0
- package/dist/cjs/lib/MathScope.js +316 -0
- package/dist/cjs/lib/MathSet.d.ts +139 -0
- package/dist/cjs/lib/MathSet.js +376 -0
- package/dist/cjs/lib/Matrix.d.ts +212 -0
- package/dist/cjs/lib/Matrix.js +393 -0
- package/dist/cjs/lib/Native.d.ts +80 -0
- package/dist/cjs/lib/Native.js +61 -0
- package/dist/cjs/lib/NumberTheory.d.ts +356 -0
- package/dist/cjs/lib/NumberTheory.js +524 -0
- package/dist/cjs/lib/Numeric.d.ts +363 -0
- package/dist/cjs/lib/Numeric.js +243 -0
- package/dist/cjs/lib/Polynomials.d.ts +140 -0
- package/dist/cjs/lib/Polynomials.js +167 -0
- package/dist/cjs/lib/SparseMatrix.d.ts +125 -0
- package/dist/cjs/lib/SparseMatrix.js +341 -0
- package/dist/cjs/lib/Statistics.d.ts +366 -0
- package/dist/cjs/lib/Statistics.js +380 -0
- package/dist/cjs/lib/Unit.d.ts +342 -0
- package/dist/cjs/lib/Unit.js +1027 -0
- package/dist/cjs/lib/UnitTable.d.ts +39 -0
- package/dist/cjs/lib/UnitTable.js +634 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/exceptions/MathArgumentException.js +14 -0
- package/dist/esm/exceptions/MathCancelledException.js +13 -0
- package/dist/esm/exceptions/MathDefinitionException.js +14 -0
- package/dist/esm/exceptions/MathDivisionByZeroException.js +13 -0
- package/dist/esm/exceptions/MathDomainException.js +14 -0
- package/dist/esm/exceptions/MathException.js +18 -0
- package/dist/esm/exceptions/MathNotSupportedException.js +14 -0
- package/dist/esm/exceptions/MathSyntaxException.js +14 -0
- package/dist/esm/exceptions/MathTimeoutException.js +13 -0
- package/dist/esm/exceptions/MathUnitException.js +14 -0
- package/dist/esm/exceptions/MathUnknownFunctionException.js +15 -0
- package/dist/esm/exports/Math.js +26 -0
- package/dist/esm/lib/Addon.js +10 -0
- package/dist/esm/lib/Context.js +128 -0
- package/dist/esm/lib/Decimal.js +397 -0
- package/dist/esm/lib/Defaults.js +290 -0
- package/dist/esm/lib/Distribution.js +191 -0
- package/dist/esm/lib/Expression.js +979 -0
- package/dist/esm/lib/ExpressionMatrix.js +407 -0
- package/dist/esm/lib/LinearAlgebra.js +708 -0
- package/dist/esm/lib/MathScope.js +311 -0
- package/dist/esm/lib/MathSet.js +370 -0
- package/dist/esm/lib/Matrix.js +382 -0
- package/dist/esm/lib/Native.js +56 -0
- package/dist/esm/lib/NumberTheory.js +520 -0
- package/dist/esm/lib/Numeric.js +239 -0
- package/dist/esm/lib/Polynomials.js +163 -0
- package/dist/esm/lib/SparseMatrix.js +332 -0
- package/dist/esm/lib/Statistics.js +376 -0
- package/dist/esm/lib/Unit.js +1018 -0
- package/dist/esm/lib/UnitTable.js +631 -0
- package/dist/types/exceptions/MathArgumentException.d.ts +11 -0
- package/dist/types/exceptions/MathCancelledException.d.ts +10 -0
- package/dist/types/exceptions/MathDefinitionException.d.ts +11 -0
- package/dist/types/exceptions/MathDivisionByZeroException.d.ts +10 -0
- package/dist/types/exceptions/MathDomainException.d.ts +11 -0
- package/dist/types/exceptions/MathException.d.ts +19 -0
- package/dist/types/exceptions/MathNotSupportedException.d.ts +11 -0
- package/dist/types/exceptions/MathSyntaxException.d.ts +11 -0
- package/dist/types/exceptions/MathTimeoutException.d.ts +10 -0
- package/dist/types/exceptions/MathUnitException.d.ts +11 -0
- package/dist/types/exceptions/MathUnknownFunctionException.d.ts +12 -0
- package/dist/types/exports/Math.d.ts +28 -0
- package/dist/types/lib/Addon.d.ts +5 -0
- package/dist/types/lib/Context.d.ts +90 -0
- package/dist/types/lib/Decimal.d.ts +276 -0
- package/dist/types/lib/Defaults.d.ts +273 -0
- package/dist/types/lib/Distribution.d.ts +177 -0
- package/dist/types/lib/Expression.d.ts +791 -0
- package/dist/types/lib/ExpressionMatrix.d.ts +284 -0
- package/dist/types/lib/LinearAlgebra.d.ts +613 -0
- package/dist/types/lib/MathScope.d.ts +268 -0
- package/dist/types/lib/MathSet.d.ts +139 -0
- package/dist/types/lib/Matrix.d.ts +212 -0
- package/dist/types/lib/Native.d.ts +80 -0
- package/dist/types/lib/NumberTheory.d.ts +356 -0
- package/dist/types/lib/Numeric.d.ts +363 -0
- package/dist/types/lib/Polynomials.d.ts +140 -0
- package/dist/types/lib/SparseMatrix.d.ts +125 -0
- package/dist/types/lib/Statistics.d.ts +366 -0
- package/dist/types/lib/Unit.d.ts +342 -0
- package/dist/types/lib/UnitTable.d.ts +39 -0
- package/native/addon.cpp +1374 -0
- package/native/async/Pool.cpp +133 -0
- package/native/async/Pool.h +59 -0
- package/native/config/boost_math_policy.h +26 -0
- package/native/config/mpdecimal/mpdecimal.h +809 -0
- package/native/config/symengine/symengine_config.h +44 -0
- package/native/config/symengine/symengine_export.h +19 -0
- package/native/core/Errors.cpp +77 -0
- package/native/core/Errors.h +72 -0
- package/native/core/Handle.cpp +109 -0
- package/native/core/Handle.h +72 -0
- package/native/core/Scope.cpp +122 -0
- package/native/core/Scope.h +36 -0
- package/native/functions/Functions.cpp +468 -0
- package/native/functions/Functions.h +115 -0
- package/native/functions/Gosper.cpp +429 -0
- package/native/functions/Gosper.h +20 -0
- package/native/functions/SpecialIntegrals.cpp +329 -0
- package/native/functions/SpecialIntegrals.h +53 -0
- package/native/functions/Summation.cpp +645 -0
- package/native/functions/Summation.h +42 -0
- package/native/integrals/Integrals.cpp +1428 -0
- package/native/integrals/Integrals.h +32 -0
- package/native/limits/Gruntz.cpp +1332 -0
- package/native/limits/Gruntz.h +24 -0
- package/native/linalg/Decompositions.cpp +159 -0
- package/native/linalg/Functions.cpp +199 -0
- package/native/linalg/Linalg.cpp +123 -0
- package/native/linalg/Linalg.h +67 -0
- package/native/linalg/LinalgSupport.h +69 -0
- package/native/linalg/Sparse.cpp +172 -0
- package/native/matrix/Matrices.cpp +766 -0
- package/native/matrix/Matrices.h +74 -0
- package/native/ntheory/NumberTheory.cpp +754 -0
- package/native/ntheory/NumberTheory.h +56 -0
- package/native/numeric/Compiled.cpp +93 -0
- package/native/numeric/Compiled.h +49 -0
- package/native/numeric/Integrate.cpp +718 -0
- package/native/numeric/Numeric.h +95 -0
- package/native/numeric/ODE.cpp +542 -0
- package/native/numeric/Roots.cpp +402 -0
- package/native/ops/Decimal.cpp +776 -0
- package/native/ops/Decimal.h +182 -0
- package/native/ops/DecimalComplex.cpp +738 -0
- package/native/ops/DecimalEvaluator.h +79 -0
- package/native/ops/DecimalFunctions.cpp +439 -0
- package/native/ops/DecimalOperations.cpp +236 -0
- package/native/ops/DecimalSpecial.cpp +1028 -0
- package/native/ops/DecimalSupport.h +109 -0
- package/native/ops/Operations.cpp +969 -0
- package/native/ops/Operations.h +120 -0
- package/native/ops/Piecewise.cpp +195 -0
- package/native/ops/Piecewise.h +40 -0
- package/native/parser/Parser.cpp +853 -0
- package/native/parser/Parser.h +56 -0
- package/native/poly/Convert.cpp +210 -0
- package/native/poly/Convert.h +40 -0
- package/native/poly/Dense.cpp +1008 -0
- package/native/poly/Dense.h +136 -0
- package/native/poly/Euclid.cpp +446 -0
- package/native/poly/Euclid.h +44 -0
- package/native/poly/Factor.cpp +919 -0
- package/native/poly/Factor.h +36 -0
- package/native/poly/Galois.cpp +439 -0
- package/native/poly/Galois.h +86 -0
- package/native/poly/Inequalities.cpp +227 -0
- package/native/poly/Inequalities.h +21 -0
- package/native/poly/Poly.cpp +338 -0
- package/native/poly/Poly.h +46 -0
- package/native/poly/Rational.cpp +403 -0
- package/native/poly/Rational.h +33 -0
- package/native/poly/RealRoots.cpp +136 -0
- package/native/poly/RealRoots.h +35 -0
- package/native/printer/Printer.cpp +973 -0
- package/native/printer/Printer.h +23 -0
- package/native/simplify/Simplify.cpp +921 -0
- package/native/simplify/Simplify.h +21 -0
- package/native/stats/Distributions.cpp +392 -0
- package/native/stats/Distributions.h +33 -0
- package/native/stats/Statistics.cpp +255 -0
- package/native/stats/Statistics.h +25 -0
- package/package.json +85 -4
- package/scripts/sources.mjs +35 -0
- package/vendor/PATCHES.md +169 -0
- package/vendor/boost/config/README.md +43 -0
- package/vendor/boost/config/include/boost/config/abi/borland_prefix.hpp +27 -0
- package/vendor/boost/config/include/boost/config/abi/borland_suffix.hpp +12 -0
- package/vendor/boost/config/include/boost/config/abi/msvc_prefix.hpp +22 -0
- package/vendor/boost/config/include/boost/config/abi/msvc_suffix.hpp +8 -0
- package/vendor/boost/config/include/boost/config/abi_prefix.hpp +25 -0
- package/vendor/boost/config/include/boost/config/abi_suffix.hpp +25 -0
- package/vendor/boost/config/include/boost/config/assert_cxx03.hpp +211 -0
- package/vendor/boost/config/include/boost/config/assert_cxx11.hpp +212 -0
- package/vendor/boost/config/include/boost/config/assert_cxx14.hpp +47 -0
- package/vendor/boost/config/include/boost/config/assert_cxx17.hpp +65 -0
- package/vendor/boost/config/include/boost/config/assert_cxx20.hpp +59 -0
- package/vendor/boost/config/include/boost/config/assert_cxx23.hpp +41 -0
- package/vendor/boost/config/include/boost/config/assert_cxx98.hpp +23 -0
- package/vendor/boost/config/include/boost/config/auto_link.hpp +530 -0
- package/vendor/boost/config/include/boost/config/compiler/borland.hpp +342 -0
- package/vendor/boost/config/include/boost/config/compiler/clang.hpp +370 -0
- package/vendor/boost/config/include/boost/config/compiler/clang_version.hpp +98 -0
- package/vendor/boost/config/include/boost/config/compiler/codegear.hpp +389 -0
- package/vendor/boost/config/include/boost/config/compiler/comeau.hpp +59 -0
- package/vendor/boost/config/include/boost/config/compiler/common_edg.hpp +185 -0
- package/vendor/boost/config/include/boost/config/compiler/compaq_cxx.hpp +19 -0
- package/vendor/boost/config/include/boost/config/compiler/cray.hpp +446 -0
- package/vendor/boost/config/include/boost/config/compiler/diab.hpp +26 -0
- package/vendor/boost/config/include/boost/config/compiler/digitalmars.hpp +146 -0
- package/vendor/boost/config/include/boost/config/compiler/gcc.hpp +386 -0
- package/vendor/boost/config/include/boost/config/compiler/gcc_xml.hpp +115 -0
- package/vendor/boost/config/include/boost/config/compiler/greenhills.hpp +28 -0
- package/vendor/boost/config/include/boost/config/compiler/hp_acc.hpp +153 -0
- package/vendor/boost/config/include/boost/config/compiler/intel.hpp +577 -0
- package/vendor/boost/config/include/boost/config/compiler/kai.hpp +33 -0
- package/vendor/boost/config/include/boost/config/compiler/metrowerks.hpp +201 -0
- package/vendor/boost/config/include/boost/config/compiler/mpw.hpp +143 -0
- package/vendor/boost/config/include/boost/config/compiler/nvcc.hpp +64 -0
- package/vendor/boost/config/include/boost/config/compiler/pathscale.hpp +141 -0
- package/vendor/boost/config/include/boost/config/compiler/pgi.hpp +23 -0
- package/vendor/boost/config/include/boost/config/compiler/sgi_mipspro.hpp +29 -0
- package/vendor/boost/config/include/boost/config/compiler/sunpro_cc.hpp +225 -0
- package/vendor/boost/config/include/boost/config/compiler/vacpp.hpp +189 -0
- package/vendor/boost/config/include/boost/config/compiler/visualc.hpp +400 -0
- package/vendor/boost/config/include/boost/config/compiler/xlcpp.hpp +303 -0
- package/vendor/boost/config/include/boost/config/compiler/xlcpp_zos.hpp +174 -0
- package/vendor/boost/config/include/boost/config/detail/cxx_composite.hpp +218 -0
- package/vendor/boost/config/include/boost/config/detail/posix_features.hpp +95 -0
- package/vendor/boost/config/include/boost/config/detail/select_compiler_config.hpp +157 -0
- package/vendor/boost/config/include/boost/config/detail/select_platform_config.hpp +147 -0
- package/vendor/boost/config/include/boost/config/detail/select_stdlib_config.hpp +121 -0
- package/vendor/boost/config/include/boost/config/detail/suffix.hpp +1334 -0
- package/vendor/boost/config/include/boost/config/header_deprecated.hpp +26 -0
- package/vendor/boost/config/include/boost/config/helper_macros.hpp +37 -0
- package/vendor/boost/config/include/boost/config/no_tr1/cmath.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/complex.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/functional.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/memory.hpp +28 -0
- package/vendor/boost/config/include/boost/config/no_tr1/utility.hpp +28 -0
- package/vendor/boost/config/include/boost/config/platform/aix.hpp +33 -0
- package/vendor/boost/config/include/boost/config/platform/amigaos.hpp +15 -0
- package/vendor/boost/config/include/boost/config/platform/beos.hpp +26 -0
- package/vendor/boost/config/include/boost/config/platform/bsd.hpp +83 -0
- package/vendor/boost/config/include/boost/config/platform/cloudabi.hpp +18 -0
- package/vendor/boost/config/include/boost/config/platform/cray.hpp +18 -0
- package/vendor/boost/config/include/boost/config/platform/cygwin.hpp +71 -0
- package/vendor/boost/config/include/boost/config/platform/haiku.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/hpux.hpp +87 -0
- package/vendor/boost/config/include/boost/config/platform/irix.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/linux.hpp +106 -0
- package/vendor/boost/config/include/boost/config/platform/macos.hpp +87 -0
- package/vendor/boost/config/include/boost/config/platform/qnxnto.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/solaris.hpp +31 -0
- package/vendor/boost/config/include/boost/config/platform/symbian.hpp +97 -0
- package/vendor/boost/config/include/boost/config/platform/vms.hpp +25 -0
- package/vendor/boost/config/include/boost/config/platform/vxworks.hpp +422 -0
- package/vendor/boost/config/include/boost/config/platform/wasm.hpp +23 -0
- package/vendor/boost/config/include/boost/config/platform/win32.hpp +90 -0
- package/vendor/boost/config/include/boost/config/platform/zos.hpp +32 -0
- package/vendor/boost/config/include/boost/config/pragma_message.hpp +31 -0
- package/vendor/boost/config/include/boost/config/requires_threads.hpp +92 -0
- package/vendor/boost/config/include/boost/config/stdlib/dinkumware.hpp +324 -0
- package/vendor/boost/config/include/boost/config/stdlib/libcomo.hpp +93 -0
- package/vendor/boost/config/include/boost/config/stdlib/libcpp.hpp +185 -0
- package/vendor/boost/config/include/boost/config/stdlib/libstdcpp3.hpp +482 -0
- package/vendor/boost/config/include/boost/config/stdlib/modena.hpp +79 -0
- package/vendor/boost/config/include/boost/config/stdlib/msl.hpp +98 -0
- package/vendor/boost/config/include/boost/config/stdlib/roguewave.hpp +208 -0
- package/vendor/boost/config/include/boost/config/stdlib/sgi.hpp +168 -0
- package/vendor/boost/config/include/boost/config/stdlib/stlport.hpp +258 -0
- package/vendor/boost/config/include/boost/config/stdlib/vacpp.hpp +74 -0
- package/vendor/boost/config/include/boost/config/stdlib/xlcpp_zos.hpp +61 -0
- package/vendor/boost/config/include/boost/config/user.hpp +133 -0
- package/vendor/boost/config/include/boost/config/warning_disable.hpp +47 -0
- package/vendor/boost/config/include/boost/config/workaround.hpp +310 -0
- package/vendor/boost/config/include/boost/config.hpp +67 -0
- package/vendor/boost/config/include/boost/cstdint.hpp +556 -0
- package/vendor/boost/config/include/boost/cxx11_char_types.hpp +70 -0
- package/vendor/boost/config/include/boost/detail/workaround.hpp +10 -0
- package/vendor/boost/config/include/boost/limits.hpp +146 -0
- package/vendor/boost/config/include/boost/static_assert.hpp +179 -0
- package/vendor/boost/config/include/boost/version.hpp +32 -0
- package/vendor/boost/math/LICENSE +23 -0
- package/vendor/boost/math/README.md +184 -0
- package/vendor/boost/math/include/boost/cstdfloat.hpp +58 -0
- package/vendor/boost/math/include/boost/math/bindings/detail/big_digamma.hpp +297 -0
- package/vendor/boost/math/include/boost/math/bindings/detail/big_lanczos.hpp +777 -0
- package/vendor/boost/math/include/boost/math/bindings/mpfr.hpp +974 -0
- package/vendor/boost/math/include/boost/math/bindings/mpreal.hpp +921 -0
- package/vendor/boost/math/include/boost/math/bindings/rr.hpp +876 -0
- package/vendor/boost/math/include/boost/math/ccmath/abs.hpp +89 -0
- package/vendor/boost/math/include/boost/math/ccmath/ccmath.hpp +45 -0
- package/vendor/boost/math/include/boost/math/ccmath/ceil.hpp +78 -0
- package/vendor/boost/math/include/boost/math/ccmath/copysign.hpp +81 -0
- package/vendor/boost/math/include/boost/math/ccmath/detail/config.hpp +52 -0
- package/vendor/boost/math/include/boost/math/ccmath/detail/swap.hpp +21 -0
- package/vendor/boost/math/include/boost/math/ccmath/div.hpp +86 -0
- package/vendor/boost/math/include/boost/math/ccmath/fabs.hpp +41 -0
- package/vendor/boost/math/include/boost/math/ccmath/fdim.hpp +93 -0
- package/vendor/boost/math/include/boost/math/ccmath/floor.hpp +131 -0
- package/vendor/boost/math/include/boost/math/ccmath/fma.hpp +130 -0
- package/vendor/boost/math/include/boost/math/ccmath/fmax.hpp +89 -0
- package/vendor/boost/math/include/boost/math/ccmath/fmin.hpp +89 -0
- package/vendor/boost/math/include/boost/math/ccmath/fmod.hpp +114 -0
- package/vendor/boost/math/include/boost/math/ccmath/fpclassify.hpp +48 -0
- package/vendor/boost/math/include/boost/math/ccmath/frexp.hpp +101 -0
- package/vendor/boost/math/include/boost/math/ccmath/hypot.hpp +116 -0
- package/vendor/boost/math/include/boost/math/ccmath/ilogb.hpp +60 -0
- package/vendor/boost/math/include/boost/math/ccmath/isfinite.hpp +53 -0
- package/vendor/boost/math/include/boost/math/ccmath/isgreater.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isgreaterequal.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isinf.hpp +61 -0
- package/vendor/boost/math/include/boost/math/ccmath/isless.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/islessequal.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isnan.hpp +42 -0
- package/vendor/boost/math/include/boost/math/ccmath/isnormal.hpp +47 -0
- package/vendor/boost/math/include/boost/math/ccmath/isunordered.hpp +35 -0
- package/vendor/boost/math/include/boost/math/ccmath/ldexp.hpp +81 -0
- package/vendor/boost/math/include/boost/math/ccmath/logb.hpp +86 -0
- package/vendor/boost/math/include/boost/math/ccmath/modf.hpp +79 -0
- package/vendor/boost/math/include/boost/math/ccmath/next.hpp +458 -0
- package/vendor/boost/math/include/boost/math/ccmath/remainder.hpp +106 -0
- package/vendor/boost/math/include/boost/math/ccmath/round.hpp +179 -0
- package/vendor/boost/math/include/boost/math/ccmath/scalbln.hpp +60 -0
- package/vendor/boost/math/include/boost/math/ccmath/scalbn.hpp +81 -0
- package/vendor/boost/math/include/boost/math/ccmath/signbit.hpp +218 -0
- package/vendor/boost/math/include/boost/math/ccmath/sqrt.hpp +80 -0
- package/vendor/boost/math/include/boost/math/ccmath/trunc.hpp +70 -0
- package/vendor/boost/math/include/boost/math/common_factor.hpp +23 -0
- package/vendor/boost/math/include/boost/math/common_factor_ct.hpp +34 -0
- package/vendor/boost/math/include/boost/math/common_factor_rt.hpp +30 -0
- package/vendor/boost/math/include/boost/math/complex/acos.hpp +245 -0
- package/vendor/boost/math/include/boost/math/complex/acosh.hpp +34 -0
- package/vendor/boost/math/include/boost/math/complex/asin.hpp +252 -0
- package/vendor/boost/math/include/boost/math/complex/asinh.hpp +32 -0
- package/vendor/boost/math/include/boost/math/complex/atan.hpp +36 -0
- package/vendor/boost/math/include/boost/math/complex/atanh.hpp +214 -0
- package/vendor/boost/math/include/boost/math/complex/details.hpp +68 -0
- package/vendor/boost/math/include/boost/math/complex/fabs.hpp +23 -0
- package/vendor/boost/math/include/boost/math/complex.hpp +32 -0
- package/vendor/boost/math/include/boost/math/concepts/distributions.hpp +497 -0
- package/vendor/boost/math/include/boost/math/concepts/real_concept.hpp +400 -0
- package/vendor/boost/math/include/boost/math/concepts/real_type_concept.hpp +119 -0
- package/vendor/boost/math/include/boost/math/concepts/std_real_concept.hpp +427 -0
- package/vendor/boost/math/include/boost/math/constants/calculate_constants.hpp +1117 -0
- package/vendor/boost/math/include/boost/math/constants/constants.hpp +360 -0
- package/vendor/boost/math/include/boost/math/constants/info.hpp +169 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_cmath.hpp +1012 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_complex.hpp +38 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_complex_std.hpp +813 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_iostream.hpp +822 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_limits.hpp +87 -0
- package/vendor/boost/math/include/boost/math/cstdfloat/cstdfloat_types.hpp +441 -0
- package/vendor/boost/math/include/boost/math/differentiation/autodiff.hpp +2061 -0
- package/vendor/boost/math/include/boost/math/differentiation/autodiff_cpp11.hpp +387 -0
- package/vendor/boost/math/include/boost/math/differentiation/autodiff_reverse.hpp +811 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_basic_operator_expressions.hpp +276 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_basic_ops_et.hpp +160 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_basic_ops_no_et.hpp +154 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_comparison_operator_overloads.hpp +167 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_erf_overloads.hpp +234 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_expression_template_base.hpp +258 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_helper_functions.hpp +18 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_memory_management.hpp +462 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_stl_et.hpp +275 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_stl_expressions.hpp +852 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_stl_no_et.hpp +266 -0
- package/vendor/boost/math/include/boost/math/differentiation/detail/reverse_mode_autodiff_utilities.hpp +51 -0
- package/vendor/boost/math/include/boost/math/differentiation/finite_difference.hpp +266 -0
- package/vendor/boost/math/include/boost/math/differentiation/lanczos_smoothing.hpp +591 -0
- package/vendor/boost/math/include/boost/math/distributions/arcsine.hpp +593 -0
- package/vendor/boost/math/include/boost/math/distributions/bernoulli.hpp +349 -0
- package/vendor/boost/math/include/boost/math/distributions/beta.hpp +584 -0
- package/vendor/boost/math/include/boost/math/distributions/binomial.hpp +729 -0
- package/vendor/boost/math/include/boost/math/distributions/cauchy.hpp +379 -0
- package/vendor/boost/math/include/boost/math/distributions/chi_squared.hpp +345 -0
- package/vendor/boost/math/include/boost/math/distributions/complement.hpp +198 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/common_error_handling.hpp +228 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/derived_accessors.hpp +190 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/generic_mode.hpp +145 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/generic_quantile.hpp +100 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/hypergeometric_cdf.hpp +101 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/hypergeometric_pdf.hpp +490 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/hypergeometric_quantile.hpp +245 -0
- package/vendor/boost/math/include/boost/math/distributions/detail/inv_discrete_quantile.hpp +583 -0
- package/vendor/boost/math/include/boost/math/distributions/empirical_cumulative_distribution_function.hpp +73 -0
- package/vendor/boost/math/include/boost/math/distributions/exponential.hpp +352 -0
- package/vendor/boost/math/include/boost/math/distributions/extreme_value.hpp +388 -0
- package/vendor/boost/math/include/boost/math/distributions/find_location.hpp +141 -0
- package/vendor/boost/math/include/boost/math/distributions/find_scale.hpp +200 -0
- package/vendor/boost/math/include/boost/math/distributions/fisher_f.hpp +393 -0
- package/vendor/boost/math/include/boost/math/distributions/fwd.hpp +171 -0
- package/vendor/boost/math/include/boost/math/distributions/gamma.hpp +396 -0
- package/vendor/boost/math/include/boost/math/distributions/geometric.hpp +571 -0
- package/vendor/boost/math/include/boost/math/distributions/holtsmark.hpp +2518 -0
- package/vendor/boost/math/include/boost/math/distributions/hyperexponential.hpp +641 -0
- package/vendor/boost/math/include/boost/math/distributions/hypergeometric.hpp +313 -0
- package/vendor/boost/math/include/boost/math/distributions/inverse_chi_squared.hpp +398 -0
- package/vendor/boost/math/include/boost/math/distributions/inverse_gamma.hpp +504 -0
- package/vendor/boost/math/include/boost/math/distributions/inverse_gaussian.hpp +566 -0
- package/vendor/boost/math/include/boost/math/distributions/kolmogorov_smirnov.hpp +511 -0
- package/vendor/boost/math/include/boost/math/distributions/landau.hpp +4642 -0
- package/vendor/boost/math/include/boost/math/distributions/laplace.hpp +494 -0
- package/vendor/boost/math/include/boost/math/distributions/logistic.hpp +377 -0
- package/vendor/boost/math/include/boost/math/distributions/lognormal.hpp +361 -0
- package/vendor/boost/math/include/boost/math/distributions/mapairy.hpp +4220 -0
- package/vendor/boost/math/include/boost/math/distributions/negative_binomial.hpp +609 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_beta.hpp +981 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_chi_squared.hpp +998 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_f.hpp +712 -0
- package/vendor/boost/math/include/boost/math/distributions/non_central_t.hpp +1324 -0
- package/vendor/boost/math/include/boost/math/distributions/normal.hpp +368 -0
- package/vendor/boost/math/include/boost/math/distributions/pareto.hpp +508 -0
- package/vendor/boost/math/include/boost/math/distributions/poisson.hpp +563 -0
- package/vendor/boost/math/include/boost/math/distributions/rayleigh.hpp +381 -0
- package/vendor/boost/math/include/boost/math/distributions/saspoint5.hpp +2796 -0
- package/vendor/boost/math/include/boost/math/distributions/skew_normal.hpp +760 -0
- package/vendor/boost/math/include/boost/math/distributions/students_t.hpp +721 -0
- package/vendor/boost/math/include/boost/math/distributions/triangular.hpp +548 -0
- package/vendor/boost/math/include/boost/math/distributions/uniform.hpp +398 -0
- package/vendor/boost/math/include/boost/math/distributions/weibull.hpp +487 -0
- package/vendor/boost/math/include/boost/math/distributions.hpp +58 -0
- package/vendor/boost/math/include/boost/math/filters/daubechies.hpp +99 -0
- package/vendor/boost/math/include/boost/math/interpolators/barycentric_rational.hpp +99 -0
- package/vendor/boost/math/include/boost/math/interpolators/bezier_polynomial.hpp +60 -0
- package/vendor/boost/math/include/boost/math/interpolators/bilinear_uniform.hpp +54 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_cubic_b_spline.hpp +87 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_quadratic_b_spline.hpp +57 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_quintic_b_spline.hpp +62 -0
- package/vendor/boost/math/include/boost/math/interpolators/cardinal_trigonometric.hpp +58 -0
- package/vendor/boost/math/include/boost/math/interpolators/catmull_rom.hpp +310 -0
- package/vendor/boost/math/include/boost/math/interpolators/cubic_b_spline.hpp +90 -0
- package/vendor/boost/math/include/boost/math/interpolators/cubic_hermite.hpp +142 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/barycentric_rational_detail.hpp +215 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/bezier_polynomial_detail.hpp +167 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/bilinear_uniform_detail.hpp +137 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_cubic_b_spline_detail.hpp +331 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_quadratic_b_spline_detail.hpp +208 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_quintic_b_spline_detail.hpp +241 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cardinal_trigonometric_detail.hpp +684 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cubic_b_spline_detail.hpp +330 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/cubic_hermite_detail.hpp +439 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/quintic_hermite_detail.hpp +586 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/septic_hermite_detail.hpp +653 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/vector_barycentric_rational_detail.hpp +196 -0
- package/vendor/boost/math/include/boost/math/interpolators/detail/whittaker_shannon_detail.hpp +128 -0
- package/vendor/boost/math/include/boost/math/interpolators/makima.hpp +178 -0
- package/vendor/boost/math/include/boost/math/interpolators/pchip.hpp +136 -0
- package/vendor/boost/math/include/boost/math/interpolators/quintic_hermite.hpp +143 -0
- package/vendor/boost/math/include/boost/math/interpolators/septic_hermite.hpp +147 -0
- package/vendor/boost/math/include/boost/math/interpolators/vector_barycentric_rational.hpp +82 -0
- package/vendor/boost/math/include/boost/math/interpolators/whittaker_shannon.hpp +47 -0
- package/vendor/boost/math/include/boost/math/octonion.hpp +4254 -0
- package/vendor/boost/math/include/boost/math/optimization/cma_es.hpp +392 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/common.hpp +200 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/differentiable_opt_utilties.hpp +157 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/gradient_opt_base.hpp +92 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/line_search_policies.hpp +206 -0
- package/vendor/boost/math/include/boost/math/optimization/detail/rdiff_optimization_policies.hpp +134 -0
- package/vendor/boost/math/include/boost/math/optimization/differential_evolution.hpp +236 -0
- package/vendor/boost/math/include/boost/math/optimization/gradient_descent.hpp +202 -0
- package/vendor/boost/math/include/boost/math/optimization/gradient_optimizers.hpp +18 -0
- package/vendor/boost/math/include/boost/math/optimization/jso.hpp +465 -0
- package/vendor/boost/math/include/boost/math/optimization/lbfgs.hpp +382 -0
- package/vendor/boost/math/include/boost/math/optimization/minimizer.hpp +336 -0
- package/vendor/boost/math/include/boost/math/optimization/nesterov.hpp +208 -0
- package/vendor/boost/math/include/boost/math/optimization/random_search.hpp +145 -0
- package/vendor/boost/math/include/boost/math/policies/error_handling.hpp +1062 -0
- package/vendor/boost/math/include/boost/math/policies/policy.hpp +1034 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/exp_sinh_detail.hpp +2002 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/ooura_fourier_integrals_detail.hpp +692 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp +1353 -0
- package/vendor/boost/math/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp +879 -0
- package/vendor/boost/math/include/boost/math/quadrature/exp_sinh.hpp +180 -0
- package/vendor/boost/math/include/boost/math/quadrature/gauss.hpp +904 -0
- package/vendor/boost/math/include/boost/math/quadrature/gauss_kronrod.hpp +1317 -0
- package/vendor/boost/math/include/boost/math/quadrature/naive_monte_carlo.hpp +469 -0
- package/vendor/boost/math/include/boost/math/quadrature/ooura_fourier_integrals.hpp +68 -0
- package/vendor/boost/math/include/boost/math/quadrature/sinh_sinh.hpp +72 -0
- package/vendor/boost/math/include/boost/math/quadrature/tanh_sinh.hpp +289 -0
- package/vendor/boost/math/include/boost/math/quadrature/trapezoidal.hpp +125 -0
- package/vendor/boost/math/include/boost/math/quadrature/wavelet_transforms.hpp +47 -0
- package/vendor/boost/math/include/boost/math/quaternion.hpp +1190 -0
- package/vendor/boost/math/include/boost/math/special_functions/acosh.hpp +102 -0
- package/vendor/boost/math/include/boost/math/special_functions/airy.hpp +475 -0
- package/vendor/boost/math/include/boost/math/special_functions/asinh.hpp +110 -0
- package/vendor/boost/math/include/boost/math/special_functions/atanh.hpp +116 -0
- package/vendor/boost/math/include/boost/math/special_functions/bernoulli.hpp +149 -0
- package/vendor/boost/math/include/boost/math/special_functions/bessel.hpp +795 -0
- package/vendor/boost/math/include/boost/math/special_functions/bessel_iterators.hpp +187 -0
- package/vendor/boost/math/include/boost/math/special_functions/bessel_prime.hpp +343 -0
- package/vendor/boost/math/include/boost/math/special_functions/beta.hpp +1870 -0
- package/vendor/boost/math/include/boost/math/special_functions/binomial.hpp +87 -0
- package/vendor/boost/math/include/boost/math/special_functions/cardinal_b_spline.hpp +218 -0
- package/vendor/boost/math/include/boost/math/special_functions/cbrt.hpp +215 -0
- package/vendor/boost/math/include/boost/math/special_functions/chebyshev.hpp +314 -0
- package/vendor/boost/math/include/boost/math/special_functions/chebyshev_transform.hpp +237 -0
- package/vendor/boost/math/include/boost/math/special_functions/cos_pi.hpp +128 -0
- package/vendor/boost/math/include/boost/math/special_functions/daubechies_scaling.hpp +491 -0
- package/vendor/boost/math/include/boost/math/special_functions/daubechies_wavelet.hpp +266 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/airy_ai_bi_zero.hpp +222 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bernoulli_details.hpp +629 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_derivatives_linear.hpp +107 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_i0.hpp +550 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_i1.hpp +556 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_ik.hpp +447 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_j0.hpp +192 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_j1.hpp +179 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jn.hpp +127 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy.hpp +603 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_asym.hpp +230 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_derivatives_asym.hpp +141 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_derivatives_series.hpp +219 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_series.hpp +267 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_jy_zero.hpp +643 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_k0.hpp +485 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_k1.hpp +526 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_kn.hpp +91 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_y0.hpp +205 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_y1.hpp +183 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/bessel_yn.hpp +113 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp +244 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/erf_inv.hpp +559 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/fp_traits.hpp +562 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/gamma_inva.hpp +241 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_0F1_bessel.hpp +46 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_addition_theorems_on_z.hpp +293 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_bessel.hpp +768 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_by_ratios.hpp +678 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_cf.hpp +50 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_large_a.hpp +35 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_large_abz.hpp +492 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_negative_b_regions.hpp +521 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_recurrence.hpp +522 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_scaled_series.hpp +60 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_1F1_small_a_negative_b_by_ratio.hpp +70 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_asym.hpp +179 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_cf.hpp +228 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_pFq_checked_series.hpp +687 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_pade.hpp +131 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_rational.hpp +167 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_separated_series.hpp +50 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/hypergeometric_series.hpp +434 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/ibeta_inv_ab.hpp +331 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/ibeta_inverse.hpp +1122 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/iconv.hpp +43 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/igamma_inverse.hpp +587 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/igamma_large.hpp +823 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/lambert_w_lookup_table.ipp +162 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/lanczos_sse2.hpp +238 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/lgamma_small.hpp +569 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/polygamma.hpp +538 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/round_fwd.hpp +87 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/t_distribution_inv.hpp +567 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/unchecked_bernoulli.hpp +1305 -0
- package/vendor/boost/math/include/boost/math/special_functions/detail/unchecked_factorial.hpp +1727 -0
- package/vendor/boost/math/include/boost/math/special_functions/digamma.hpp +631 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_1.hpp +815 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_2.hpp +756 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_3.hpp +374 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_d.hpp +183 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rc.hpp +112 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rd.hpp +207 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rf.hpp +169 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rg.hpp +130 -0
- package/vendor/boost/math/include/boost/math/special_functions/ellint_rj.hpp +299 -0
- package/vendor/boost/math/include/boost/math/special_functions/erf.hpp +1334 -0
- package/vendor/boost/math/include/boost/math/special_functions/expint.hpp +1614 -0
- package/vendor/boost/math/include/boost/math/special_functions/expm1.hpp +416 -0
- package/vendor/boost/math/include/boost/math/special_functions/factorials.hpp +276 -0
- package/vendor/boost/math/include/boost/math/special_functions/fibonacci.hpp +92 -0
- package/vendor/boost/math/include/boost/math/special_functions/fourier_transform_daubechies.hpp +248 -0
- package/vendor/boost/math/include/boost/math/special_functions/fpclassify.hpp +797 -0
- package/vendor/boost/math/include/boost/math/special_functions/gamma.hpp +2628 -0
- package/vendor/boost/math/include/boost/math/special_functions/gegenbauer.hpp +84 -0
- package/vendor/boost/math/include/boost/math/special_functions/hankel.hpp +186 -0
- package/vendor/boost/math/include/boost/math/special_functions/hermite.hpp +79 -0
- package/vendor/boost/math/include/boost/math/special_functions/heuman_lambda.hpp +97 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_0F1.hpp +116 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_1F0.hpp +69 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_1F1.hpp +822 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_2F0.hpp +163 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypergeometric_pFq.hpp +205 -0
- package/vendor/boost/math/include/boost/math/special_functions/hypot.hpp +148 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi.hpp +69 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi_elliptic.hpp +319 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi_theta.hpp +802 -0
- package/vendor/boost/math/include/boost/math/special_functions/jacobi_zeta.hpp +83 -0
- package/vendor/boost/math/include/boost/math/special_functions/laguerre.hpp +139 -0
- package/vendor/boost/math/include/boost/math/special_functions/lambert_w.hpp +2171 -0
- package/vendor/boost/math/include/boost/math/special_functions/lanczos.hpp +2760 -0
- package/vendor/boost/math/include/boost/math/special_functions/legendre.hpp +380 -0
- package/vendor/boost/math/include/boost/math/special_functions/legendre_stieltjes.hpp +234 -0
- package/vendor/boost/math/include/boost/math/special_functions/log1p.hpp +417 -0
- package/vendor/boost/math/include/boost/math/special_functions/logaddexp.hpp +41 -0
- package/vendor/boost/math/include/boost/math/special_functions/logistic_sigmoid.hpp +46 -0
- package/vendor/boost/math/include/boost/math/special_functions/logit.hpp +56 -0
- package/vendor/boost/math/include/boost/math/special_functions/logsumexp.hpp +60 -0
- package/vendor/boost/math/include/boost/math/special_functions/math_fwd.hpp +1927 -0
- package/vendor/boost/math/include/boost/math/special_functions/modf.hpp +74 -0
- package/vendor/boost/math/include/boost/math/special_functions/next.hpp +886 -0
- package/vendor/boost/math/include/boost/math/special_functions/nonfinite_num_facets.hpp +588 -0
- package/vendor/boost/math/include/boost/math/special_functions/owens_t.hpp +1067 -0
- package/vendor/boost/math/include/boost/math/special_functions/polygamma.hpp +83 -0
- package/vendor/boost/math/include/boost/math/special_functions/pow.hpp +144 -0
- package/vendor/boost/math/include/boost/math/special_functions/powm1.hpp +101 -0
- package/vendor/boost/math/include/boost/math/special_functions/prime.hpp +2433 -0
- package/vendor/boost/math/include/boost/math/special_functions/relative_difference.hpp +134 -0
- package/vendor/boost/math/include/boost/math/special_functions/round.hpp +353 -0
- package/vendor/boost/math/include/boost/math/special_functions/rsqrt.hpp +52 -0
- package/vendor/boost/math/include/boost/math/special_functions/sign.hpp +241 -0
- package/vendor/boost/math/include/boost/math/special_functions/sin_pi.hpp +135 -0
- package/vendor/boost/math/include/boost/math/special_functions/sinc.hpp +123 -0
- package/vendor/boost/math/include/boost/math/special_functions/sinhc.hpp +142 -0
- package/vendor/boost/math/include/boost/math/special_functions/spherical_harmonic.hpp +205 -0
- package/vendor/boost/math/include/boost/math/special_functions/sqrt1pm1.hpp +49 -0
- package/vendor/boost/math/include/boost/math/special_functions/trigamma.hpp +448 -0
- package/vendor/boost/math/include/boost/math/special_functions/trunc.hpp +385 -0
- package/vendor/boost/math/include/boost/math/special_functions/ulp.hpp +102 -0
- package/vendor/boost/math/include/boost/math/special_functions/zeta.hpp +1081 -0
- package/vendor/boost/math/include/boost/math/special_functions.hpp +86 -0
- package/vendor/boost/math/include/boost/math/statistics/anderson_darling.hpp +112 -0
- package/vendor/boost/math/include/boost/math/statistics/bivariate_statistics.hpp +470 -0
- package/vendor/boost/math/include/boost/math/statistics/chatterjee_correlation.hpp +159 -0
- package/vendor/boost/math/include/boost/math/statistics/detail/rank.hpp +140 -0
- package/vendor/boost/math/include/boost/math/statistics/detail/single_pass.hpp +401 -0
- package/vendor/boost/math/include/boost/math/statistics/linear_regression.hpp +133 -0
- package/vendor/boost/math/include/boost/math/statistics/ljung_box.hpp +70 -0
- package/vendor/boost/math/include/boost/math/statistics/runs_test.hpp +121 -0
- package/vendor/boost/math/include/boost/math/statistics/signal_statistics.hpp +350 -0
- package/vendor/boost/math/include/boost/math/statistics/t_test.hpp +275 -0
- package/vendor/boost/math/include/boost/math/statistics/univariate_statistics.hpp +1184 -0
- package/vendor/boost/math/include/boost/math/statistics/z_test.hpp +161 -0
- package/vendor/boost/math/include/boost/math/tools/agm.hpp +47 -0
- package/vendor/boost/math/include/boost/math/tools/array.hpp +41 -0
- package/vendor/boost/math/include/boost/math/tools/assert.hpp +49 -0
- package/vendor/boost/math/include/boost/math/tools/atomic.hpp +50 -0
- package/vendor/boost/math/include/boost/math/tools/big_constant.hpp +110 -0
- package/vendor/boost/math/include/boost/math/tools/bivariate_statistics.hpp +96 -0
- package/vendor/boost/math/include/boost/math/tools/centered_continued_fraction.hpp +173 -0
- package/vendor/boost/math/include/boost/math/tools/cohen_acceleration.hpp +51 -0
- package/vendor/boost/math/include/boost/math/tools/color_maps.hpp +1943 -0
- package/vendor/boost/math/include/boost/math/tools/complex.hpp +115 -0
- package/vendor/boost/math/include/boost/math/tools/concepts.hpp +24 -0
- package/vendor/boost/math/include/boost/math/tools/condition_numbers.hpp +144 -0
- package/vendor/boost/math/include/boost/math/tools/config.hpp +856 -0
- package/vendor/boost/math/include/boost/math/tools/convert_from_string.hpp +85 -0
- package/vendor/boost/math/include/boost/math/tools/cstdint.hpp +107 -0
- package/vendor/boost/math/include/boost/math/tools/cubic_roots.hpp +198 -0
- package/vendor/boost/math/include/boost/math/tools/cxx03_warn.hpp +95 -0
- package/vendor/boost/math/include/boost/math/tools/detail/is_const_iterable.hpp +38 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_10.hpp +84 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_11.hpp +90 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_12.hpp +96 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_13.hpp +102 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_14.hpp +108 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_15.hpp +114 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_16.hpp +120 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_17.hpp +126 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_18.hpp +132 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_19.hpp +138 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_2.hpp +36 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_20.hpp +144 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_3.hpp +42 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_5.hpp +54 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_6.hpp +60 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_7.hpp +66 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_8.hpp +72 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner1_9.hpp +78 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_10.hpp +90 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_11.hpp +97 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_12.hpp +104 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_13.hpp +111 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_14.hpp +118 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_15.hpp +125 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_16.hpp +132 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_17.hpp +139 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_18.hpp +146 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_19.hpp +153 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_20.hpp +160 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_5.hpp +55 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_6.hpp +62 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_7.hpp +69 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_8.hpp +76 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner2_9.hpp +83 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_10.hpp +156 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_11.hpp +181 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_12.hpp +208 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_13.hpp +237 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_14.hpp +268 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_15.hpp +301 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_16.hpp +336 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_17.hpp +373 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_18.hpp +412 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_19.hpp +453 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_20.hpp +496 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_5.hpp +61 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_6.hpp +76 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_7.hpp +93 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_8.hpp +112 -0
- package/vendor/boost/math/include/boost/math/tools/detail/polynomial_horner3_9.hpp +133 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_10.hpp +138 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_11.hpp +150 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_12.hpp +162 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_13.hpp +174 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_14.hpp +186 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_15.hpp +198 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_16.hpp +210 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_17.hpp +222 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_18.hpp +234 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_19.hpp +246 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_2.hpp +42 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_20.hpp +258 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_3.hpp +54 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_4.hpp +66 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_5.hpp +78 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_6.hpp +90 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_7.hpp +102 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_8.hpp +114 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner1_9.hpp +126 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_10.hpp +144 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_11.hpp +160 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_12.hpp +176 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_13.hpp +192 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_14.hpp +208 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_15.hpp +224 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_16.hpp +240 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_17.hpp +256 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_18.hpp +272 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_19.hpp +288 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_20.hpp +304 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_5.hpp +64 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_6.hpp +80 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_7.hpp +96 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_8.hpp +112 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner2_9.hpp +128 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_10.hpp +396 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_11.hpp +482 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_12.hpp +576 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_13.hpp +678 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_14.hpp +788 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_15.hpp +906 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_16.hpp +1032 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_17.hpp +1166 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_18.hpp +1308 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_19.hpp +1458 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_2.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_20.hpp +1616 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_3.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_4.hpp +48 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_5.hpp +86 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_6.hpp +132 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_7.hpp +186 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_8.hpp +248 -0
- package/vendor/boost/math/include/boost/math/tools/detail/rational_horner3_9.hpp +318 -0
- package/vendor/boost/math/include/boost/math/tools/engel_expansion.hpp +124 -0
- package/vendor/boost/math/include/boost/math/tools/estrin.hpp +72 -0
- package/vendor/boost/math/include/boost/math/tools/fraction.hpp +354 -0
- package/vendor/boost/math/include/boost/math/tools/header_deprecated.hpp +27 -0
- package/vendor/boost/math/include/boost/math/tools/is_constant_evaluated.hpp +51 -0
- package/vendor/boost/math/include/boost/math/tools/is_detected.hpp +56 -0
- package/vendor/boost/math/include/boost/math/tools/is_standalone.hpp +18 -0
- package/vendor/boost/math/include/boost/math/tools/luroth_expansion.hpp +147 -0
- package/vendor/boost/math/include/boost/math/tools/minima.hpp +164 -0
- package/vendor/boost/math/include/boost/math/tools/mp.hpp +423 -0
- package/vendor/boost/math/include/boost/math/tools/norms.hpp +638 -0
- package/vendor/boost/math/include/boost/math/tools/nothrow.hpp +27 -0
- package/vendor/boost/math/include/boost/math/tools/numeric_limits.hpp +888 -0
- package/vendor/boost/math/include/boost/math/tools/numerical_differentiation.hpp +12 -0
- package/vendor/boost/math/include/boost/math/tools/polynomial.hpp +862 -0
- package/vendor/boost/math/include/boost/math/tools/polynomial_gcd.hpp +268 -0
- package/vendor/boost/math/include/boost/math/tools/precision.hpp +418 -0
- package/vendor/boost/math/include/boost/math/tools/promotion.hpp +135 -0
- package/vendor/boost/math/include/boost/math/tools/quartic_roots.hpp +157 -0
- package/vendor/boost/math/include/boost/math/tools/random_vector.hpp +101 -0
- package/vendor/boost/math/include/boost/math/tools/rational.hpp +346 -0
- package/vendor/boost/math/include/boost/math/tools/real_cast.hpp +31 -0
- package/vendor/boost/math/include/boost/math/tools/recurrence.hpp +330 -0
- package/vendor/boost/math/include/boost/math/tools/roots.hpp +1072 -0
- package/vendor/boost/math/include/boost/math/tools/series.hpp +221 -0
- package/vendor/boost/math/include/boost/math/tools/signal_statistics.hpp +353 -0
- package/vendor/boost/math/include/boost/math/tools/simple_continued_fraction.hpp +177 -0
- package/vendor/boost/math/include/boost/math/tools/stats.hpp +87 -0
- package/vendor/boost/math/include/boost/math/tools/test_value.hpp +143 -0
- package/vendor/boost/math/include/boost/math/tools/throw_exception.hpp +43 -0
- package/vendor/boost/math/include/boost/math/tools/toms748_solve.hpp +636 -0
- package/vendor/boost/math/include/boost/math/tools/traits.hpp +140 -0
- package/vendor/boost/math/include/boost/math/tools/tuple.hpp +88 -0
- package/vendor/boost/math/include/boost/math/tools/type_traits.hpp +489 -0
- package/vendor/boost/math/include/boost/math/tools/ulps_plot.hpp +598 -0
- package/vendor/boost/math/include/boost/math/tools/univariate_statistics.hpp +437 -0
- package/vendor/boost/math/include/boost/math/tools/user.hpp +105 -0
- package/vendor/boost/math/include/boost/math/tools/utility.hpp +69 -0
- package/vendor/boost/math/include/boost/math/tools/workaround.hpp +42 -0
- package/vendor/boost/math/include/boost/math/tr1.hpp +1121 -0
- package/vendor/boost/math/include/boost/math/tr1_c_macros.ipp +810 -0
- package/vendor/boost/math/include/boost/math_fwd.hpp +42 -0
- package/vendor/boost/multiprecision/LICENSE +23 -0
- package/vendor/boost/multiprecision/README.md +168 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/borland_prefix.hpp +27 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/borland_suffix.hpp +12 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/msvc_prefix.hpp +22 -0
- package/vendor/boost/multiprecision/include/boost/config/abi/msvc_suffix.hpp +8 -0
- package/vendor/boost/multiprecision/include/boost/config/abi_prefix.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/config/abi_suffix.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx03.hpp +211 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx11.hpp +212 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx14.hpp +47 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx17.hpp +65 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx20.hpp +59 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx23.hpp +41 -0
- package/vendor/boost/multiprecision/include/boost/config/assert_cxx98.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/config/auto_link.hpp +530 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/borland.hpp +342 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/clang.hpp +370 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/clang_version.hpp +98 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/codegear.hpp +389 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/comeau.hpp +59 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/common_edg.hpp +185 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/compaq_cxx.hpp +19 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/cray.hpp +446 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/diab.hpp +26 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/digitalmars.hpp +146 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/gcc.hpp +386 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/gcc_xml.hpp +115 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/greenhills.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/hp_acc.hpp +153 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/intel.hpp +577 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/kai.hpp +33 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/metrowerks.hpp +201 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/mpw.hpp +143 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/nvcc.hpp +64 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/pathscale.hpp +141 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/pgi.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/sgi_mipspro.hpp +29 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/sunpro_cc.hpp +225 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/vacpp.hpp +189 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/visualc.hpp +400 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/xlcpp.hpp +303 -0
- package/vendor/boost/multiprecision/include/boost/config/compiler/xlcpp_zos.hpp +174 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/cxx_composite.hpp +218 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/posix_features.hpp +95 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/select_compiler_config.hpp +157 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/select_platform_config.hpp +147 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/select_stdlib_config.hpp +121 -0
- package/vendor/boost/multiprecision/include/boost/config/detail/suffix.hpp +1334 -0
- package/vendor/boost/multiprecision/include/boost/config/header_deprecated.hpp +26 -0
- package/vendor/boost/multiprecision/include/boost/config/helper_macros.hpp +37 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/cmath.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/complex.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/functional.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/memory.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/no_tr1/utility.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/aix.hpp +33 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/amigaos.hpp +15 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/beos.hpp +26 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/bsd.hpp +83 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/cloudabi.hpp +18 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/cray.hpp +18 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/cygwin.hpp +71 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/haiku.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/hpux.hpp +87 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/irix.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/linux.hpp +106 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/macos.hpp +87 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/qnxnto.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/solaris.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/symbian.hpp +97 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/vms.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/vxworks.hpp +422 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/wasm.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/win32.hpp +90 -0
- package/vendor/boost/multiprecision/include/boost/config/platform/zos.hpp +32 -0
- package/vendor/boost/multiprecision/include/boost/config/pragma_message.hpp +31 -0
- package/vendor/boost/multiprecision/include/boost/config/requires_threads.hpp +92 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/dinkumware.hpp +324 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/libcomo.hpp +93 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/libcpp.hpp +185 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/libstdcpp3.hpp +482 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/modena.hpp +79 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/msl.hpp +98 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/roguewave.hpp +208 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/sgi.hpp +168 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/stlport.hpp +258 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/vacpp.hpp +74 -0
- package/vendor/boost/multiprecision/include/boost/config/stdlib/xlcpp_zos.hpp +61 -0
- package/vendor/boost/multiprecision/include/boost/config/user.hpp +133 -0
- package/vendor/boost/multiprecision/include/boost/config/warning_disable.hpp +47 -0
- package/vendor/boost/multiprecision/include/boost/config/workaround.hpp +310 -0
- package/vendor/boost/multiprecision/include/boost/config.hpp +67 -0
- package/vendor/boost/multiprecision/include/boost/cstdint.hpp +556 -0
- package/vendor/boost/multiprecision/include/boost/cxx11_char_types.hpp +70 -0
- package/vendor/boost/multiprecision/include/boost/detail/workaround.hpp +10 -0
- package/vendor/boost/multiprecision/include/boost/limits.hpp +146 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/complex128.hpp +24 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/complex_adaptor.hpp +1049 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/concepts/mp_number_archetypes.hpp +257 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_bin_float/io.hpp +700 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_bin_float/transcendental.hpp +157 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_bin_float.hpp +2374 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_complex.hpp +12 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_dec_float.hpp +3807 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail.hpp +177 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fabs.hpp +27 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_floor.hpp +116 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fma.hpp +65 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fpclassify.hpp +52 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_frexp.hpp +93 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_isinf.hpp +24 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_isnan.hpp +21 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_ldexp.hpp +71 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_limits.hpp +218 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_log.hpp +172 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_sqrt.hpp +57 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_constants.hpp +80 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_double_fp.hpp +2690 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/add.hpp +368 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/add_unsigned.hpp +387 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/bitwise.hpp +896 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/checked.hpp +178 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/comparison.hpp +374 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/cpp_int_config.hpp +161 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/divide.hpp +703 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/import_export.hpp +248 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/intel_intrinsics.hpp +138 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/limits.hpp +292 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/literals.hpp +296 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/misc.hpp +1462 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/multiply.hpp +848 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/serialize.hpp +209 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int/value_pack.hpp +42 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/cpp_int.hpp +2360 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/debug_adaptor.hpp +760 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/assert.hpp +29 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/atomic.hpp +62 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/bitscan.hpp +317 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/check_cpp11_config.hpp +64 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/constexpr.hpp +88 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/default_ops.hpp +4077 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/digits.hpp +49 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/dynamic_array.hpp +44 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/empty_value.hpp +87 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/endian.hpp +35 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/et_ops.hpp +1831 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/float128_functions.hpp +95 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/float_string_cvt.hpp +333 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/fpclassify.hpp +101 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/constants.hpp +289 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/pow.hpp +941 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/trig.hpp +1064 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/functions/trunc.hpp +82 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/generic_interconvert.hpp +687 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/hash.hpp +56 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/integer_ops.hpp +474 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/itos.hpp +39 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/min_max.hpp +106 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/no_et_ops.hpp +661 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/no_exceptions_support.hpp +55 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/number_base.hpp +1656 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/number_compare.hpp +848 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/precision.hpp +313 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/rebind.hpp +19 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/standalone_config.hpp +165 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/static_array.hpp +42 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/string_helpers.hpp +48 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/tables.hpp +80 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/ublas_interop.hpp +75 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/uniform_int_distribution.hpp +212 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/detail/utype_helper.hpp +374 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/eigen.hpp +248 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/float128.hpp +960 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/fwd.hpp +268 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/gmp.hpp +4100 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/integer.hpp +363 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/logged_adaptor.hpp +834 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/miller_rabin.hpp +221 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/mpc.hpp +1721 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/mpfi.hpp +2579 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/mpfr.hpp +3668 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/number.hpp +2491 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/random.hpp +23 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/rational_adaptor.hpp +1289 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/tommath.hpp +1044 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/explicit_conversion.hpp +67 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/extract_exponent_type.hpp +28 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_backend.hpp +91 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_byte_container.hpp +51 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_complex.hpp +22 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_convertible_arithmetic.hpp +51 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_restricted_conversion.hpp +47 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/is_variable_precision.hpp +25 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/max_digits10.hpp +79 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/std_integer_traits.hpp +95 -0
- package/vendor/boost/multiprecision/include/boost/multiprecision/traits/transcendental_reduction_type.hpp +21 -0
- package/vendor/boost/multiprecision/include/boost/static_assert.hpp +179 -0
- package/vendor/boost/multiprecision/include/boost/version.hpp +32 -0
- package/vendor/eigen/COPYING.APACHE +203 -0
- package/vendor/eigen/COPYING.BSD +26 -0
- package/vendor/eigen/COPYING.MPL2 +373 -0
- package/vendor/eigen/COPYING.README +6 -0
- package/vendor/eigen/Eigen/AccelerateSupport +52 -0
- package/vendor/eigen/Eigen/Cholesky +43 -0
- package/vendor/eigen/Eigen/CholmodSupport +48 -0
- package/vendor/eigen/Eigen/Core +451 -0
- package/vendor/eigen/Eigen/Dense +7 -0
- package/vendor/eigen/Eigen/Eigen +2 -0
- package/vendor/eigen/Eigen/Eigenvalues +63 -0
- package/vendor/eigen/Eigen/Geometry +59 -0
- package/vendor/eigen/Eigen/Householder +31 -0
- package/vendor/eigen/Eigen/IterativeLinearSolvers +52 -0
- package/vendor/eigen/Eigen/Jacobi +33 -0
- package/vendor/eigen/Eigen/KLUSupport +43 -0
- package/vendor/eigen/Eigen/LU +46 -0
- package/vendor/eigen/Eigen/MetisSupport +35 -0
- package/vendor/eigen/Eigen/OrderingMethods +73 -0
- package/vendor/eigen/Eigen/PaStiXSupport +51 -0
- package/vendor/eigen/Eigen/PardisoSupport +38 -0
- package/vendor/eigen/Eigen/QR +48 -0
- package/vendor/eigen/Eigen/QtAlignedMalloc +32 -0
- package/vendor/eigen/Eigen/SPQRSupport +41 -0
- package/vendor/eigen/Eigen/SVD +56 -0
- package/vendor/eigen/Eigen/Sparse +33 -0
- package/vendor/eigen/Eigen/SparseCholesky +40 -0
- package/vendor/eigen/Eigen/SparseCore +70 -0
- package/vendor/eigen/Eigen/SparseLU +50 -0
- package/vendor/eigen/Eigen/SparseQR +38 -0
- package/vendor/eigen/Eigen/StdDeque +30 -0
- package/vendor/eigen/Eigen/StdList +29 -0
- package/vendor/eigen/Eigen/StdVector +30 -0
- package/vendor/eigen/Eigen/SuperLUSupport +70 -0
- package/vendor/eigen/Eigen/ThreadPool +80 -0
- package/vendor/eigen/Eigen/UmfPackSupport +42 -0
- package/vendor/eigen/Eigen/Version +14 -0
- package/vendor/eigen/Eigen/src/AccelerateSupport/AccelerateSupport.h +423 -0
- package/vendor/eigen/Eigen/src/AccelerateSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Cholesky/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Cholesky/LDLT.h +649 -0
- package/vendor/eigen/Eigen/src/Cholesky/LLT.h +514 -0
- package/vendor/eigen/Eigen/src/Cholesky/LLT_LAPACKE.h +124 -0
- package/vendor/eigen/Eigen/src/CholmodSupport/CholmodSupport.h +738 -0
- package/vendor/eigen/Eigen/src/CholmodSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Core/ArithmeticSequence.h +239 -0
- package/vendor/eigen/Eigen/src/Core/Array.h +376 -0
- package/vendor/eigen/Eigen/src/Core/ArrayBase.h +213 -0
- package/vendor/eigen/Eigen/src/Core/ArrayWrapper.h +165 -0
- package/vendor/eigen/Eigen/src/Core/Assign.h +80 -0
- package/vendor/eigen/Eigen/src/Core/AssignEvaluator.h +1057 -0
- package/vendor/eigen/Eigen/src/Core/Assign_MKL.h +183 -0
- package/vendor/eigen/Eigen/src/Core/BandMatrix.h +338 -0
- package/vendor/eigen/Eigen/src/Core/Block.h +429 -0
- package/vendor/eigen/Eigen/src/Core/CommaInitializer.h +149 -0
- package/vendor/eigen/Eigen/src/Core/ConditionEstimator.h +173 -0
- package/vendor/eigen/Eigen/src/Core/CoreEvaluators.h +2018 -0
- package/vendor/eigen/Eigen/src/Core/CoreIterators.h +141 -0
- package/vendor/eigen/Eigen/src/Core/CwiseBinaryOp.h +166 -0
- package/vendor/eigen/Eigen/src/Core/CwiseNullaryOp.h +975 -0
- package/vendor/eigen/Eigen/src/Core/CwiseTernaryOp.h +171 -0
- package/vendor/eigen/Eigen/src/Core/CwiseUnaryOp.h +91 -0
- package/vendor/eigen/Eigen/src/Core/CwiseUnaryView.h +167 -0
- package/vendor/eigen/Eigen/src/Core/DenseBase.h +673 -0
- package/vendor/eigen/Eigen/src/Core/DenseCoeffsBase.h +568 -0
- package/vendor/eigen/Eigen/src/Core/DenseStorage.h +573 -0
- package/vendor/eigen/Eigen/src/Core/DeviceWrapper.h +153 -0
- package/vendor/eigen/Eigen/src/Core/Diagonal.h +219 -0
- package/vendor/eigen/Eigen/src/Core/DiagonalMatrix.h +420 -0
- package/vendor/eigen/Eigen/src/Core/DiagonalProduct.h +30 -0
- package/vendor/eigen/Eigen/src/Core/Dot.h +268 -0
- package/vendor/eigen/Eigen/src/Core/EigenBase.h +149 -0
- package/vendor/eigen/Eigen/src/Core/Fill.h +138 -0
- package/vendor/eigen/Eigen/src/Core/FindCoeff.h +464 -0
- package/vendor/eigen/Eigen/src/Core/ForceAlignedAccess.h +127 -0
- package/vendor/eigen/Eigen/src/Core/Fuzzy.h +132 -0
- package/vendor/eigen/Eigen/src/Core/GeneralProduct.h +519 -0
- package/vendor/eigen/Eigen/src/Core/GenericPacketMath.h +1702 -0
- package/vendor/eigen/Eigen/src/Core/GlobalFunctions.h +230 -0
- package/vendor/eigen/Eigen/src/Core/IO.h +233 -0
- package/vendor/eigen/Eigen/src/Core/IndexedView.h +321 -0
- package/vendor/eigen/Eigen/src/Core/InnerProduct.h +260 -0
- package/vendor/eigen/Eigen/src/Core/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Core/Inverse.h +108 -0
- package/vendor/eigen/Eigen/src/Core/Map.h +153 -0
- package/vendor/eigen/Eigen/src/Core/MapBase.h +283 -0
- package/vendor/eigen/Eigen/src/Core/MathFunctions.h +2103 -0
- package/vendor/eigen/Eigen/src/Core/MathFunctionsImpl.h +263 -0
- package/vendor/eigen/Eigen/src/Core/Matrix.h +534 -0
- package/vendor/eigen/Eigen/src/Core/MatrixBase.h +545 -0
- package/vendor/eigen/Eigen/src/Core/NestByValue.h +91 -0
- package/vendor/eigen/Eigen/src/Core/NoAlias.h +102 -0
- package/vendor/eigen/Eigen/src/Core/NumTraits.h +335 -0
- package/vendor/eigen/Eigen/src/Core/PartialReduxEvaluator.h +253 -0
- package/vendor/eigen/Eigen/src/Core/PermutationMatrix.h +555 -0
- package/vendor/eigen/Eigen/src/Core/PlainObjectBase.h +1014 -0
- package/vendor/eigen/Eigen/src/Core/Product.h +307 -0
- package/vendor/eigen/Eigen/src/Core/ProductEvaluators.h +1287 -0
- package/vendor/eigen/Eigen/src/Core/Random.h +207 -0
- package/vendor/eigen/Eigen/src/Core/RandomImpl.h +262 -0
- package/vendor/eigen/Eigen/src/Core/RealView.h +250 -0
- package/vendor/eigen/Eigen/src/Core/Redux.h +535 -0
- package/vendor/eigen/Eigen/src/Core/Ref.h +383 -0
- package/vendor/eigen/Eigen/src/Core/Replicate.h +130 -0
- package/vendor/eigen/Eigen/src/Core/Reshaped.h +398 -0
- package/vendor/eigen/Eigen/src/Core/ReturnByValue.h +111 -0
- package/vendor/eigen/Eigen/src/Core/Reverse.h +202 -0
- package/vendor/eigen/Eigen/src/Core/Select.h +92 -0
- package/vendor/eigen/Eigen/src/Core/SelfAdjointView.h +329 -0
- package/vendor/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h +50 -0
- package/vendor/eigen/Eigen/src/Core/SkewSymmetricMatrix3.h +382 -0
- package/vendor/eigen/Eigen/src/Core/Solve.h +174 -0
- package/vendor/eigen/Eigen/src/Core/SolveTriangular.h +237 -0
- package/vendor/eigen/Eigen/src/Core/SolverBase.h +167 -0
- package/vendor/eigen/Eigen/src/Core/StableNorm.h +217 -0
- package/vendor/eigen/Eigen/src/Core/StlIterators.h +619 -0
- package/vendor/eigen/Eigen/src/Core/Stride.h +114 -0
- package/vendor/eigen/Eigen/src/Core/Swap.h +99 -0
- package/vendor/eigen/Eigen/src/Core/Transpose.h +427 -0
- package/vendor/eigen/Eigen/src/Core/Transpositions.h +323 -0
- package/vendor/eigen/Eigen/src/Core/TriangularMatrix.h +900 -0
- package/vendor/eigen/Eigen/src/Core/VectorBlock.h +83 -0
- package/vendor/eigen/Eigen/src/Core/VectorwiseOp.h +733 -0
- package/vendor/eigen/Eigen/src/Core/Visitor.h +537 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/Complex.h +565 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/MathFunctions.h +130 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/PacketMath.h +3081 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/Reductions.h +353 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX/TypeCasting.h +308 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/Complex.h +472 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/GemmKernel.h +1245 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/MathFunctions.h +141 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/MathFunctionsFP16.h +75 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/PacketMath.h +3146 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/PacketMathFP16.h +1413 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/Reductions.h +297 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TrsmKernel.h +1167 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TrsmUnrolls.inc +1219 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TypeCasting.h +277 -0
- package/vendor/eigen/Eigen/src/Core/arch/AVX512/TypeCastingFP16.h +130 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/Complex.h +653 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MathFunctions.h +81 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +3686 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +205 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +901 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixProductMMAbfloat16.h +742 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/MatrixVectorProduct.inc +2818 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h +3729 -0
- package/vendor/eigen/Eigen/src/Core/arch/AltiVec/TypeCasting.h +153 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/BFloat16.h +866 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/ConjHelper.h +128 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +2634 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +227 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/Half.h +1091 -0
- package/vendor/eigen/Eigen/src/Core/arch/Default/Settings.h +47 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/Complex.h +244 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/MathFunctions.h +104 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/PacketMath.h +1712 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/Tuple.h +268 -0
- package/vendor/eigen/Eigen/src/Core/arch/GPU/TypeCasting.h +77 -0
- package/vendor/eigen/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- package/vendor/eigen/Eigen/src/Core/arch/HVX/PacketMath.h +1088 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/Complex.h +520 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/GeneralBlockPanelKernel.h +23 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/MathFunctions.h +43 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/PacketMath.h +2866 -0
- package/vendor/eigen/Eigen/src/Core/arch/LSX/TypeCasting.h +526 -0
- package/vendor/eigen/Eigen/src/Core/arch/MSA/Complex.h +620 -0
- package/vendor/eigen/Eigen/src/Core/arch/MSA/MathFunctions.h +379 -0
- package/vendor/eigen/Eigen/src/Core/arch/MSA/PacketMath.h +1237 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/Complex.h +732 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +243 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/MathFunctions.h +68 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/PacketMath.h +6096 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/TypeCasting.h +1642 -0
- package/vendor/eigen/Eigen/src/Core/arch/NEON/UnaryFunctors.h +57 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/Complex.h +503 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/MathFunctions.h +88 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/PacketMath.h +2384 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/Reductions.h +324 -0
- package/vendor/eigen/Eigen/src/Core/arch/SSE/TypeCasting.h +230 -0
- package/vendor/eigen/Eigen/src/Core/arch/SVE/MathFunctions.h +48 -0
- package/vendor/eigen/Eigen/src/Core/arch/SVE/PacketMath.h +674 -0
- package/vendor/eigen/Eigen/src/Core/arch/SVE/TypeCasting.h +52 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/InteropHeaders.h +227 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/MathFunctions.h +303 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/PacketMath.h +576 -0
- package/vendor/eigen/Eigen/src/Core/arch/SYCL/TypeCasting.h +83 -0
- package/vendor/eigen/Eigen/src/Core/arch/ZVector/Complex.h +570 -0
- package/vendor/eigen/Eigen/src/Core/arch/ZVector/MathFunctions.h +244 -0
- package/vendor/eigen/Eigen/src/Core/arch/ZVector/PacketMath.h +1413 -0
- package/vendor/eigen/Eigen/src/Core/functors/AssignmentFunctors.h +174 -0
- package/vendor/eigen/Eigen/src/Core/functors/BinaryFunctors.h +747 -0
- package/vendor/eigen/Eigen/src/Core/functors/NullaryFunctors.h +274 -0
- package/vendor/eigen/Eigen/src/Core/functors/StlFunctors.h +149 -0
- package/vendor/eigen/Eigen/src/Core/functors/TernaryFunctors.h +52 -0
- package/vendor/eigen/Eigen/src/Core/functors/UnaryFunctors.h +1420 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralBlockPanelKernel.h +3153 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrix.h +459 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +330 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +148 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +205 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixVector.h +473 -0
- package/vendor/eigen/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +139 -0
- package/vendor/eigen/Eigen/src/Core/products/Parallelizer.h +282 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +483 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +277 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixVector.h +253 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +115 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- package/vendor/eigen/Eigen/src/Core/products/SelfadjointRank2Update.h +95 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixMatrix.h +397 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +325 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixVector.h +347 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +275 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularSolverMatrix.h +388 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +166 -0
- package/vendor/eigen/Eigen/src/Core/products/TriangularSolverVector.h +122 -0
- package/vendor/eigen/Eigen/src/Core/util/Assert.h +158 -0
- package/vendor/eigen/Eigen/src/Core/util/BlasUtil.h +622 -0
- package/vendor/eigen/Eigen/src/Core/util/ConfigureVectorization.h +543 -0
- package/vendor/eigen/Eigen/src/Core/util/Constants.h +598 -0
- package/vendor/eigen/Eigen/src/Core/util/DisableStupidWarnings.h +146 -0
- package/vendor/eigen/Eigen/src/Core/util/EmulateArray.h +270 -0
- package/vendor/eigen/Eigen/src/Core/util/ForwardDeclarations.h +524 -0
- package/vendor/eigen/Eigen/src/Core/util/GpuHipCudaDefines.inc +101 -0
- package/vendor/eigen/Eigen/src/Core/util/GpuHipCudaUndefines.inc +45 -0
- package/vendor/eigen/Eigen/src/Core/util/IndexedViewHelper.h +487 -0
- package/vendor/eigen/Eigen/src/Core/util/IntegralConstant.h +279 -0
- package/vendor/eigen/Eigen/src/Core/util/MKL_support.h +139 -0
- package/vendor/eigen/Eigen/src/Core/util/Macros.h +1346 -0
- package/vendor/eigen/Eigen/src/Core/util/MaxSizeVector.h +139 -0
- package/vendor/eigen/Eigen/src/Core/util/Memory.h +1385 -0
- package/vendor/eigen/Eigen/src/Core/util/Meta.h +760 -0
- package/vendor/eigen/Eigen/src/Core/util/MoreMeta.h +638 -0
- package/vendor/eigen/Eigen/src/Core/util/ReenableStupidWarnings.h +44 -0
- package/vendor/eigen/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- package/vendor/eigen/Eigen/src/Core/util/Serializer.h +209 -0
- package/vendor/eigen/Eigen/src/Core/util/StaticAssert.h +105 -0
- package/vendor/eigen/Eigen/src/Core/util/SymbolicIndex.h +445 -0
- package/vendor/eigen/Eigen/src/Core/util/XprHelper.h +1093 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/ComplexEigenSolver.h +315 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/ComplexSchur.h +442 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +95 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/EigenSolver.h +579 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +402 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +212 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/HessenbergDecomposition.h +356 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +142 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/RealQZ.h +587 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/RealSchur.h +519 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +83 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +850 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +90 -0
- package/vendor/eigen/Eigen/src/Eigenvalues/Tridiagonalization.h +529 -0
- package/vendor/eigen/Eigen/src/Geometry/AlignedBox.h +485 -0
- package/vendor/eigen/Eigen/src/Geometry/AngleAxis.h +245 -0
- package/vendor/eigen/Eigen/src/Geometry/EulerAngles.h +203 -0
- package/vendor/eigen/Eigen/src/Geometry/Homogeneous.h +453 -0
- package/vendor/eigen/Eigen/src/Geometry/Hyperplane.h +273 -0
- package/vendor/eigen/Eigen/src/Geometry/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Geometry/OrthoMethods.h +257 -0
- package/vendor/eigen/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- package/vendor/eigen/Eigen/src/Geometry/Quaternion.h +930 -0
- package/vendor/eigen/Eigen/src/Geometry/Rotation2D.h +201 -0
- package/vendor/eigen/Eigen/src/Geometry/RotationBase.h +209 -0
- package/vendor/eigen/Eigen/src/Geometry/Scaling.h +195 -0
- package/vendor/eigen/Eigen/src/Geometry/Transform.h +1485 -0
- package/vendor/eigen/Eigen/src/Geometry/Translation.h +204 -0
- package/vendor/eigen/Eigen/src/Geometry/Umeyama.h +161 -0
- package/vendor/eigen/Eigen/src/Geometry/arch/Geometry_SIMD.h +154 -0
- package/vendor/eigen/Eigen/src/Householder/BlockHouseholder.h +115 -0
- package/vendor/eigen/Eigen/src/Householder/Householder.h +154 -0
- package/vendor/eigen/Eigen/src/Householder/HouseholderSequence.h +504 -0
- package/vendor/eigen/Eigen/src/Householder/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +213 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +220 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +217 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +402 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +449 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +395 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +193 -0
- package/vendor/eigen/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +111 -0
- package/vendor/eigen/Eigen/src/Jacobi/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/Jacobi/Jacobi.h +427 -0
- package/vendor/eigen/Eigen/src/KLUSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/KLUSupport/KLUSupport.h +339 -0
- package/vendor/eigen/Eigen/src/LU/Determinant.h +98 -0
- package/vendor/eigen/Eigen/src/LU/FullPivLU.h +826 -0
- package/vendor/eigen/Eigen/src/LU/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/LU/InverseImpl.h +353 -0
- package/vendor/eigen/Eigen/src/LU/PartialPivLU.h +586 -0
- package/vendor/eigen/Eigen/src/LU/PartialPivLU_LAPACKE.h +97 -0
- package/vendor/eigen/Eigen/src/LU/arch/InverseSize4.h +353 -0
- package/vendor/eigen/Eigen/src/MetisSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/MetisSupport/MetisSupport.h +125 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/Amd.h +413 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/Eigen_Colamd.h +1690 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/OrderingMethods/Ordering.h +146 -0
- package/vendor/eigen/Eigen/src/PaStiXSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/PaStiXSupport/PaStiXSupport.h +632 -0
- package/vendor/eigen/Eigen/src/PardisoSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/PardisoSupport/PardisoSupport.h +500 -0
- package/vendor/eigen/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- package/vendor/eigen/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +161 -0
- package/vendor/eigen/Eigen/src/QR/CompleteOrthogonalDecomposition.h +648 -0
- package/vendor/eigen/Eigen/src/QR/FullPivHouseholderQR.h +733 -0
- package/vendor/eigen/Eigen/src/QR/HouseholderQR.h +543 -0
- package/vendor/eigen/Eigen/src/QR/HouseholderQR_LAPACKE.h +77 -0
- package/vendor/eigen/Eigen/src/QR/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SPQRSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +315 -0
- package/vendor/eigen/Eigen/src/SVD/BDCSVD.h +1470 -0
- package/vendor/eigen/Eigen/src/SVD/BDCSVD_LAPACKE.h +174 -0
- package/vendor/eigen/Eigen/src/SVD/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SVD/JacobiSVD.h +846 -0
- package/vendor/eigen/Eigen/src/SVD/JacobiSVD_LAPACKE.h +127 -0
- package/vendor/eigen/Eigen/src/SVD/SVDBase.h +436 -0
- package/vendor/eigen/Eigen/src/SVD/UpperBidiagonalization.h +379 -0
- package/vendor/eigen/Eigen/src/SparseCholesky/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseCholesky/SimplicialCholesky.h +868 -0
- package/vendor/eigen/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +388 -0
- package/vendor/eigen/Eigen/src/SparseCore/AmbiVector.h +329 -0
- package/vendor/eigen/Eigen/src/SparseCore/CompressedStorage.h +206 -0
- package/vendor/eigen/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +308 -0
- package/vendor/eigen/Eigen/src/SparseCore/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseAssign.h +279 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseBlock.h +534 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseColEtree.h +194 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseCompressedBase.h +592 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +938 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +142 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseDenseProduct.h +314 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseDot.h +100 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseFuzzy.h +31 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseMap.h +295 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseMatrix.h +1876 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseMatrixBase.h +451 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparsePermutation.h +249 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseProduct.h +178 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseRedux.h +47 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseRef.h +370 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseSelfAdjointView.h +613 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseSolverBase.h +115 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +184 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseTranspose.h +83 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseTriangularView.h +177 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseUtil.h +209 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseVector.h +532 -0
- package/vendor/eigen/Eigen/src/SparseCore/SparseView.h +225 -0
- package/vendor/eigen/Eigen/src/SparseCore/TriangularSolver.h +274 -0
- package/vendor/eigen/Eigen/src/SparseLU/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU.h +969 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLUImpl.h +79 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_Memory.h +210 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_Structs.h +113 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +319 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_Utils.h +75 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_column_bmod.h +177 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_column_dfs.h +168 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +106 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +114 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +133 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_panel_bmod.h +215 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_panel_dfs.h +235 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_pivotL.h +136 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_pruneL.h +130 -0
- package/vendor/eigen/Eigen/src/SparseLU/SparseLU_relax_snode.h +81 -0
- package/vendor/eigen/Eigen/src/SparseQR/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SparseQR/SparseQR.h +706 -0
- package/vendor/eigen/Eigen/src/StlSupport/StdDeque.h +51 -0
- package/vendor/eigen/Eigen/src/StlSupport/StdList.h +50 -0
- package/vendor/eigen/Eigen/src/StlSupport/StdVector.h +51 -0
- package/vendor/eigen/Eigen/src/StlSupport/details.h +82 -0
- package/vendor/eigen/Eigen/src/SuperLUSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/SuperLUSupport/SuperLUSupport.h +929 -0
- package/vendor/eigen/Eigen/src/ThreadPool/Barrier.h +70 -0
- package/vendor/eigen/Eigen/src/ThreadPool/CoreThreadPoolDevice.h +336 -0
- package/vendor/eigen/Eigen/src/ThreadPool/EventCount.h +241 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ForkJoin.h +140 -0
- package/vendor/eigen/Eigen/src/ThreadPool/InternalHeaderCheck.h +4 -0
- package/vendor/eigen/Eigen/src/ThreadPool/NonBlockingThreadPool.h +587 -0
- package/vendor/eigen/Eigen/src/ThreadPool/RunQueue.h +230 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadCancel.h +21 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadEnvironment.h +43 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadLocal.h +289 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadPoolInterface.h +50 -0
- package/vendor/eigen/Eigen/src/ThreadPool/ThreadYield.h +16 -0
- package/vendor/eigen/Eigen/src/UmfPackSupport/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/UmfPackSupport/UmfPackSupport.h +606 -0
- package/vendor/eigen/Eigen/src/misc/Image.h +80 -0
- package/vendor/eigen/Eigen/src/misc/InternalHeaderCheck.h +3 -0
- package/vendor/eigen/Eigen/src/misc/Kernel.h +77 -0
- package/vendor/eigen/Eigen/src/misc/RealSvd2x2.h +53 -0
- package/vendor/eigen/Eigen/src/misc/blas.h +97 -0
- package/vendor/eigen/Eigen/src/misc/lapacke.h +10085 -0
- package/vendor/eigen/Eigen/src/misc/lapacke_helpers.h +163 -0
- package/vendor/eigen/Eigen/src/misc/lapacke_mangling.h +16 -0
- package/vendor/eigen/Eigen/src/plugins/ArrayCwiseBinaryOps.inc +344 -0
- package/vendor/eigen/Eigen/src/plugins/ArrayCwiseUnaryOps.inc +544 -0
- package/vendor/eigen/Eigen/src/plugins/BlockMethods.inc +1370 -0
- package/vendor/eigen/Eigen/src/plugins/CommonCwiseBinaryOps.inc +116 -0
- package/vendor/eigen/Eigen/src/plugins/CommonCwiseUnaryOps.inc +167 -0
- package/vendor/eigen/Eigen/src/plugins/IndexedViewMethods.inc +192 -0
- package/vendor/eigen/Eigen/src/plugins/InternalHeaderCheck.inc +3 -0
- package/vendor/eigen/Eigen/src/plugins/MatrixCwiseBinaryOps.inc +331 -0
- package/vendor/eigen/Eigen/src/plugins/MatrixCwiseUnaryOps.inc +118 -0
- package/vendor/eigen/Eigen/src/plugins/ReshapedMethods.inc +133 -0
- package/vendor/eigen/README.md +5 -0
- package/vendor/mpdecimal/COPYRIGHT.txt +23 -0
- package/vendor/mpdecimal/README.txt +53 -0
- package/vendor/mpdecimal/libmpdec/.objs/README.txt +8 -0
- package/vendor/mpdecimal/libmpdec/.objs/symbols32.exp +343 -0
- package/vendor/mpdecimal/libmpdec/.objs/symbols64.exp +347 -0
- package/vendor/mpdecimal/libmpdec/.pc/libmpdec.pc.in +11 -0
- package/vendor/mpdecimal/libmpdec/.profile/train.sh +35 -0
- package/vendor/mpdecimal/libmpdec/README.txt +84 -0
- package/vendor/mpdecimal/libmpdec/basearith.c +649 -0
- package/vendor/mpdecimal/libmpdec/basearith.h +217 -0
- package/vendor/mpdecimal/libmpdec/bits.h +188 -0
- package/vendor/mpdecimal/libmpdec/constants.c +129 -0
- package/vendor/mpdecimal/libmpdec/constants.h +88 -0
- package/vendor/mpdecimal/libmpdec/context.c +285 -0
- package/vendor/mpdecimal/libmpdec/convolute.c +172 -0
- package/vendor/mpdecimal/libmpdec/convolute.h +48 -0
- package/vendor/mpdecimal/libmpdec/crt.c +178 -0
- package/vendor/mpdecimal/libmpdec/crt.h +45 -0
- package/vendor/mpdecimal/libmpdec/difradix2.c +171 -0
- package/vendor/mpdecimal/libmpdec/difradix2.h +46 -0
- package/vendor/mpdecimal/libmpdec/fnt.c +77 -0
- package/vendor/mpdecimal/libmpdec/fnt.h +46 -0
- package/vendor/mpdecimal/libmpdec/fourstep.c +242 -0
- package/vendor/mpdecimal/libmpdec/fourstep.h +46 -0
- package/vendor/mpdecimal/libmpdec/io.c +1610 -0
- package/vendor/mpdecimal/libmpdec/io.h +61 -0
- package/vendor/mpdecimal/libmpdec/mpalloc.c +347 -0
- package/vendor/mpdecimal/libmpdec/mpalloc.h +53 -0
- package/vendor/mpdecimal/libmpdec/mpdecimal.c +9155 -0
- package/vendor/mpdecimal/libmpdec/mpdecimal.h.in +804 -0
- package/vendor/mpdecimal/libmpdec/mpsignal.c +966 -0
- package/vendor/mpdecimal/libmpdec/numbertheory.c +129 -0
- package/vendor/mpdecimal/libmpdec/numbertheory.h +75 -0
- package/vendor/mpdecimal/libmpdec/sixstep.c +212 -0
- package/vendor/mpdecimal/libmpdec/sixstep.h +46 -0
- package/vendor/mpdecimal/libmpdec/transpose.c +275 -0
- package/vendor/mpdecimal/libmpdec/transpose.h +60 -0
- package/vendor/mpdecimal/libmpdec/typearith.h +661 -0
- package/vendor/mpdecimal/libmpdec/umodarith.h +645 -0
- package/vendor/symengine/AUTHORS +101 -0
- package/vendor/symengine/LICENSE +254 -0
- package/vendor/symengine/README.md +199 -0
- package/vendor/symengine/symengine/add.cpp +508 -0
- package/vendor/symengine/symengine/add.h +187 -0
- package/vendor/symengine/symengine/as_real_imag.cpp +289 -0
- package/vendor/symengine/symengine/assumptions.cpp +202 -0
- package/vendor/symengine/symengine/assumptions.h +47 -0
- package/vendor/symengine/symengine/basic-inl.h +152 -0
- package/vendor/symengine/symengine/basic-methods.inc +9 -0
- package/vendor/symengine/symengine/basic.cpp +110 -0
- package/vendor/symengine/symengine/basic.h +356 -0
- package/vendor/symengine/symengine/complex.cpp +198 -0
- package/vendor/symengine/symengine/complex.h +396 -0
- package/vendor/symengine/symengine/complex_double.cpp +72 -0
- package/vendor/symengine/symengine/complex_double.h +570 -0
- package/vendor/symengine/symengine/complex_mpc.h +406 -0
- package/vendor/symengine/symengine/constants.cpp +130 -0
- package/vendor/symengine/symengine/constants.h +81 -0
- package/vendor/symengine/symengine/cse.cpp +556 -0
- package/vendor/symengine/symengine/cwrapper.h +949 -0
- package/vendor/symengine/symengine/dense_matrix.cpp +2100 -0
- package/vendor/symengine/symengine/derivative.cpp +841 -0
- package/vendor/symengine/symengine/derivative.h +137 -0
- package/vendor/symengine/symengine/dict.cpp +125 -0
- package/vendor/symengine/symengine/dict.h +333 -0
- package/vendor/symengine/symengine/diophantine.cpp +139 -0
- package/vendor/symengine/symengine/diophantine.h +20 -0
- package/vendor/symengine/symengine/eval.cpp +109 -0
- package/vendor/symengine/symengine/eval.h +40 -0
- package/vendor/symengine/symengine/eval_arb.h +31 -0
- package/vendor/symengine/symengine/eval_double.cpp +959 -0
- package/vendor/symengine/symengine/eval_double.h +28 -0
- package/vendor/symengine/symengine/eval_mpc.h +29 -0
- package/vendor/symengine/symengine/eval_mpfr.h +26 -0
- package/vendor/symengine/symengine/expand.cpp +379 -0
- package/vendor/symengine/symengine/expression.cpp +24 -0
- package/vendor/symengine/symengine/expression.h +375 -0
- package/vendor/symengine/symengine/fields.cpp +861 -0
- package/vendor/symengine/symengine/fields.h +647 -0
- package/vendor/symengine/symengine/finitediff.cpp +70 -0
- package/vendor/symengine/symengine/finitediff.h +21 -0
- package/vendor/symengine/symengine/flint_wrapper.h +1010 -0
- package/vendor/symengine/symengine/functions.cpp +3913 -0
- package/vendor/symengine/symengine/functions.h +1321 -0
- package/vendor/symengine/symengine/infinity.cpp +537 -0
- package/vendor/symengine/symengine/infinity.h +118 -0
- package/vendor/symengine/symengine/integer.cpp +153 -0
- package/vendor/symengine/symengine/integer.h +227 -0
- package/vendor/symengine/symengine/interruption.cpp +9 -0
- package/vendor/symengine/symengine/interruption.h +19 -0
- package/vendor/symengine/symengine/lambda_double.h +918 -0
- package/vendor/symengine/symengine/limits.h +35 -0
- package/vendor/symengine/symengine/llvm_double.h +201 -0
- package/vendor/symengine/symengine/logic.cpp +812 -0
- package/vendor/symengine/symengine/logic.h +281 -0
- package/vendor/symengine/symengine/matrices/conjugate_matrix.cpp +139 -0
- package/vendor/symengine/symengine/matrices/conjugate_matrix.h +39 -0
- package/vendor/symengine/symengine/matrices/diagonal_matrix.cpp +79 -0
- package/vendor/symengine/symengine/matrices/diagonal_matrix.h +52 -0
- package/vendor/symengine/symengine/matrices/hadamard_product.cpp +151 -0
- package/vendor/symengine/symengine/matrices/hadamard_product.h +42 -0
- package/vendor/symengine/symengine/matrices/identity_matrix.cpp +63 -0
- package/vendor/symengine/symengine/matrices/identity_matrix.h +40 -0
- package/vendor/symengine/symengine/matrices/immutable_dense_matrix.cpp +143 -0
- package/vendor/symengine/symengine/matrices/immutable_dense_matrix.h +65 -0
- package/vendor/symengine/symengine/matrices/is_diagonal.cpp +115 -0
- package/vendor/symengine/symengine/matrices/is_lower.cpp +110 -0
- package/vendor/symengine/symengine/matrices/is_real.cpp +78 -0
- package/vendor/symengine/symengine/matrices/is_square.cpp +85 -0
- package/vendor/symengine/symengine/matrices/is_symmetric.cpp +112 -0
- package/vendor/symengine/symengine/matrices/is_toeplitz.cpp +104 -0
- package/vendor/symengine/symengine/matrices/is_upper.cpp +108 -0
- package/vendor/symengine/symengine/matrices/is_zero.cpp +81 -0
- package/vendor/symengine/symengine/matrices/matrix_add.cpp +176 -0
- package/vendor/symengine/symengine/matrices/matrix_add.h +42 -0
- package/vendor/symengine/symengine/matrices/matrix_expr.h +19 -0
- package/vendor/symengine/symengine/matrices/matrix_mul.cpp +258 -0
- package/vendor/symengine/symengine/matrices/matrix_mul.h +55 -0
- package/vendor/symengine/symengine/matrices/matrix_symbol.cpp +34 -0
- package/vendor/symengine/symengine/matrices/matrix_symbol.h +41 -0
- package/vendor/symengine/symengine/matrices/size.cpp +121 -0
- package/vendor/symengine/symengine/matrices/size.h +15 -0
- package/vendor/symengine/symengine/matrices/trace.cpp +112 -0
- package/vendor/symengine/symengine/matrices/trace.h +31 -0
- package/vendor/symengine/symengine/matrices/transpose.cpp +126 -0
- package/vendor/symengine/symengine/matrices/transpose.h +39 -0
- package/vendor/symengine/symengine/matrices/zero_matrix.cpp +94 -0
- package/vendor/symengine/symengine/matrices/zero_matrix.h +47 -0
- package/vendor/symengine/symengine/matrix.cpp +33 -0
- package/vendor/symengine/symengine/matrix.h +675 -0
- package/vendor/symengine/symengine/matrix_expressions.h +51 -0
- package/vendor/symengine/symengine/monomials.cpp +33 -0
- package/vendor/symengine/symengine/monomials.h +20 -0
- package/vendor/symengine/symengine/mp_boost.cpp +635 -0
- package/vendor/symengine/symengine/mp_class.h +1286 -0
- package/vendor/symengine/symengine/mp_wrapper.h +510 -0
- package/vendor/symengine/symengine/mul.cpp +629 -0
- package/vendor/symengine/symengine/mul.h +146 -0
- package/vendor/symengine/symengine/nan.cpp +234 -0
- package/vendor/symengine/symengine/nan.h +82 -0
- package/vendor/symengine/symengine/ntheory.cpp +1700 -0
- package/vendor/symengine/symengine/ntheory.h +213 -0
- package/vendor/symengine/symengine/ntheory_funcs.cpp +189 -0
- package/vendor/symengine/symengine/ntheory_funcs.h +78 -0
- package/vendor/symengine/symengine/number.cpp +36 -0
- package/vendor/symengine/symengine/number.h +256 -0
- package/vendor/symengine/symengine/numer_denom.cpp +149 -0
- package/vendor/symengine/symengine/parser/parser.cpp +367 -0
- package/vendor/symengine/symengine/parser/parser.h +56 -0
- package/vendor/symengine/symengine/parser/parser.tab.cc +1495 -0
- package/vendor/symengine/symengine/parser/parser.tab.hh +1410 -0
- package/vendor/symengine/symengine/parser/parser_old.cpp +688 -0
- package/vendor/symengine/symengine/parser/tokenizer.cpp +435 -0
- package/vendor/symengine/symengine/parser/tokenizer.h +35 -0
- package/vendor/symengine/symengine/parser.h +25 -0
- package/vendor/symengine/symengine/polys/basic_conversions.cpp +178 -0
- package/vendor/symengine/symengine/polys/basic_conversions.h +575 -0
- package/vendor/symengine/symengine/polys/cancel.h +39 -0
- package/vendor/symengine/symengine/polys/msymenginepoly.cpp +130 -0
- package/vendor/symengine/symengine/polys/msymenginepoly.h +536 -0
- package/vendor/symengine/symengine/polys/uexprpoly.cpp +90 -0
- package/vendor/symengine/symengine/polys/uexprpoly.h +205 -0
- package/vendor/symengine/symengine/polys/uintpoly.cpp +62 -0
- package/vendor/symengine/symengine/polys/uintpoly.h +134 -0
- package/vendor/symengine/symengine/polys/uintpoly_flint.h +228 -0
- package/vendor/symengine/symengine/polys/uintpoly_piranha.h +373 -0
- package/vendor/symengine/symengine/polys/upolybase.h +769 -0
- package/vendor/symengine/symengine/polys/uratpoly.cpp +59 -0
- package/vendor/symengine/symengine/polys/uratpoly.h +58 -0
- package/vendor/symengine/symengine/polys/usymenginepoly.h +139 -0
- package/vendor/symengine/symengine/pow.cpp +303 -0
- package/vendor/symengine/symengine/pow.h +76 -0
- package/vendor/symengine/symengine/prime_sieve.cpp +143 -0
- package/vendor/symengine/symengine/prime_sieve.h +64 -0
- package/vendor/symengine/symengine/printers/codegen.cpp +716 -0
- package/vendor/symengine/symengine/printers/codegen.h +168 -0
- package/vendor/symengine/symengine/printers/latex.cpp +630 -0
- package/vendor/symengine/symengine/printers/latex.h +76 -0
- package/vendor/symengine/symengine/printers/mathml.cpp +358 -0
- package/vendor/symengine/symengine/printers/mathml.h +62 -0
- package/vendor/symengine/symengine/printers/stringbox.cpp +276 -0
- package/vendor/symengine/symengine/printers/stringbox.h +60 -0
- package/vendor/symengine/symengine/printers/strprinter.cpp +1212 -0
- package/vendor/symengine/symengine/printers/strprinter.h +217 -0
- package/vendor/symengine/symengine/printers/unicode.cpp +730 -0
- package/vendor/symengine/symengine/printers/unicode.h +84 -0
- package/vendor/symengine/symengine/printers.h +46 -0
- package/vendor/symengine/symengine/rational.cpp +365 -0
- package/vendor/symengine/symengine/rational.h +341 -0
- package/vendor/symengine/symengine/real_double.cpp +388 -0
- package/vendor/symengine/symengine/real_double.h +492 -0
- package/vendor/symengine/symengine/real_mpfr.h +379 -0
- package/vendor/symengine/symengine/refine.cpp +213 -0
- package/vendor/symengine/symengine/refine.h +43 -0
- package/vendor/symengine/symengine/rewrite.cpp +235 -0
- package/vendor/symengine/symengine/rings.cpp +107 -0
- package/vendor/symengine/symengine/rings.h +24 -0
- package/vendor/symengine/symengine/serialize-cereal.h +964 -0
- package/vendor/symengine/symengine/series.cpp +85 -0
- package/vendor/symengine/symengine/series.h +727 -0
- package/vendor/symengine/symengine/series_flint.h +214 -0
- package/vendor/symengine/symengine/series_generic.cpp +247 -0
- package/vendor/symengine/symengine/series_generic.h +86 -0
- package/vendor/symengine/symengine/series_piranha.h +95 -0
- package/vendor/symengine/symengine/series_visitor.h +357 -0
- package/vendor/symengine/symengine/set_funcs.cpp +296 -0
- package/vendor/symengine/symengine/sets.cpp +1854 -0
- package/vendor/symengine/symengine/sets.h +696 -0
- package/vendor/symengine/symengine/simplify.cpp +62 -0
- package/vendor/symengine/symengine/simplify.h +34 -0
- package/vendor/symengine/symengine/solve.cpp +665 -0
- package/vendor/symengine/symengine/solve.h +117 -0
- package/vendor/symengine/symengine/sparse_matrix.cpp +776 -0
- package/vendor/symengine/symengine/special_boost.cpp +85 -0
- package/vendor/symengine/symengine/special_double.h +570 -0
- package/vendor/symengine/symengine/subs.h +579 -0
- package/vendor/symengine/symengine/symbol.cpp +88 -0
- package/vendor/symengine/symengine/symbol.h +116 -0
- package/vendor/symengine/symengine/symengine_assert.h +50 -0
- package/vendor/symengine/symengine/symengine_casts.h +139 -0
- package/vendor/symengine/symengine/symengine_exception.h +101 -0
- package/vendor/symengine/symengine/symengine_rcp.cpp +21 -0
- package/vendor/symengine/symengine/symengine_rcp.h +384 -0
- package/vendor/symengine/symengine/test_visitors.cpp +1083 -0
- package/vendor/symengine/symengine/test_visitors.h +466 -0
- package/vendor/symengine/symengine/tribool.h +85 -0
- package/vendor/symengine/symengine/tuple.cpp +47 -0
- package/vendor/symengine/symengine/tuple.h +32 -0
- package/vendor/symengine/symengine/type_codes.inc +139 -0
- package/vendor/symengine/symengine/utilities/cereal/LICENSE +24 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/access.hpp +351 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/adapters.hpp +163 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/binary.hpp +169 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/json.hpp +1024 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/portable_binary.hpp +334 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/archives/xml.hpp +956 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/cereal.hpp +1120 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/helpers.hpp +422 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/polymorphic_impl.hpp +825 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/polymorphic_impl_fwd.hpp +65 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/static_object.hpp +128 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/traits.hpp +1411 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/details/util.hpp +84 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/macros.hpp +156 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/specialize.hpp +139 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/array.hpp +79 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/atomic.hpp +55 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/base_class.hpp +203 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/bitset.hpp +176 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/boost_variant.hpp +164 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/chrono.hpp +72 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/common.hpp +129 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/complex.hpp +56 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/concepts/pair_associative_container.hpp +73 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/deque.hpp +62 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/forward_list.hpp +68 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/functional.hpp +43 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/list.hpp +62 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/map.hpp +36 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/memory.hpp +425 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/optional.hpp +65 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/polymorphic.hpp +483 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/queue.hpp +132 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/set.hpp +103 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/stack.hpp +76 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/string.hpp +61 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/tuple.hpp +123 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/unordered_map.hpp +36 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/unordered_set.hpp +99 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/utility.hpp +47 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/valarray.hpp +89 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/variant.hpp +108 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/types/vector.hpp +112 -0
- package/vendor/symengine/symengine/utilities/cereal/include/cereal/version.hpp +52 -0
- package/vendor/symengine/symengine/utilities/fast_float/include/fast_float/fast_float.h +3720 -0
- package/vendor/symengine/symengine/utilities/stream_fmt.h +25 -0
- package/vendor/symengine/symengine/visitor.cpp +348 -0
- package/vendor/symengine/symengine/visitor.h +425 -0
|
@@ -0,0 +1,1610 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2008-2025 Stefan Krah. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Redistribution and use in source and binary forms, with or without
|
|
5
|
+
* modification, are permitted provided that the following conditions
|
|
6
|
+
* are met:
|
|
7
|
+
*
|
|
8
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
* notice, this list of conditions and the following disclaimer.
|
|
10
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
* documentation and/or other materials provided with the distribution.
|
|
13
|
+
*
|
|
14
|
+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
15
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
16
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
17
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
18
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
19
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
20
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
21
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
22
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
23
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
24
|
+
* SUCH DAMAGE.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#include <assert.h>
|
|
29
|
+
#include <ctype.h>
|
|
30
|
+
#include <errno.h>
|
|
31
|
+
#include <limits.h>
|
|
32
|
+
#include <locale.h>
|
|
33
|
+
#include <stdio.h>
|
|
34
|
+
#include <stdlib.h>
|
|
35
|
+
#include <string.h>
|
|
36
|
+
|
|
37
|
+
#include "io.h"
|
|
38
|
+
#include "mpdecimal.h"
|
|
39
|
+
#include "typearith.h"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/* This file contains functions for decimal <-> string conversions, including
|
|
43
|
+
PEP-3101 formatting for numeric types. */
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 7
|
|
47
|
+
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
|
48
|
+
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
|
|
49
|
+
#pragma GCC diagnostic ignored "-Warray-bounds"
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* Work around the behavior of tolower() and strcasecmp() in certain
|
|
55
|
+
* locales. For example, in tr_TR.utf8:
|
|
56
|
+
*
|
|
57
|
+
* tolower((unsigned char)'I') == 'I'
|
|
58
|
+
*
|
|
59
|
+
* u is the exact uppercase version of l; n is strlen(l) or strlen(l)+1
|
|
60
|
+
*/
|
|
61
|
+
static inline int
|
|
62
|
+
_mpd_strneq(const char *s, const char *l, const char *u, size_t n)
|
|
63
|
+
{
|
|
64
|
+
while (--n != SIZE_MAX) {
|
|
65
|
+
if (*s != *l && *s != *u) {
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
s++; u++; l++;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static mpd_ssize_t
|
|
75
|
+
strtoexp(const char *s)
|
|
76
|
+
{
|
|
77
|
+
char *end;
|
|
78
|
+
mpd_ssize_t retval;
|
|
79
|
+
|
|
80
|
+
errno = 0;
|
|
81
|
+
retval = mpd_strtossize(s, &end, 10);
|
|
82
|
+
if (errno == 0 && !(*s != '\0' && *end == '\0'))
|
|
83
|
+
errno = EINVAL;
|
|
84
|
+
|
|
85
|
+
return retval;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/*
|
|
89
|
+
* Scan 'len' words. The most significant word contains 'r' digits,
|
|
90
|
+
* the remaining words are full words. Skip dpoint. The string 's' must
|
|
91
|
+
* consist of digits and an optional single decimal point at 'dpoint'.
|
|
92
|
+
*/
|
|
93
|
+
static void
|
|
94
|
+
string_to_coeff(mpd_uint_t *data, const char *s, const char *dpoint, int r,
|
|
95
|
+
size_t len)
|
|
96
|
+
{
|
|
97
|
+
int j;
|
|
98
|
+
|
|
99
|
+
if (r > 0) {
|
|
100
|
+
data[--len] = 0;
|
|
101
|
+
for (j = 0; j < r; j++, s++) {
|
|
102
|
+
if (s == dpoint) s++;
|
|
103
|
+
data[len] = 10 * data[len] + (*s - '0');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
while (--len != SIZE_MAX) {
|
|
108
|
+
data[len] = 0;
|
|
109
|
+
for (j = 0; j < MPD_RDIGITS; j++, s++) {
|
|
110
|
+
if (s == dpoint) s++;
|
|
111
|
+
data[len] = 10 * data[len] + (*s - '0');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/*
|
|
117
|
+
* Partially verify a numeric string of the form:
|
|
118
|
+
*
|
|
119
|
+
* [cdigits][.][cdigits][eE][+-][edigits]
|
|
120
|
+
*
|
|
121
|
+
* If successful, return a pointer to the location of the first
|
|
122
|
+
* relevant coefficient digit. This digit is either non-zero or
|
|
123
|
+
* part of one of the following patterns:
|
|
124
|
+
*
|
|
125
|
+
* ["0\x00", "0.\x00", "0.E", "0.e", "0E", "0e"]
|
|
126
|
+
*
|
|
127
|
+
* The locations of a single optional dot or indicator are stored
|
|
128
|
+
* in 'dpoint' and 'exp'.
|
|
129
|
+
*
|
|
130
|
+
* The end of the string is stored in 'end'. If an indicator [eE]
|
|
131
|
+
* occurs without trailing [edigits], the condition is caught
|
|
132
|
+
* later by strtoexp().
|
|
133
|
+
*/
|
|
134
|
+
static const char *
|
|
135
|
+
scan_dpoint_exp(const char *s, const char **dpoint, const char **exp,
|
|
136
|
+
const char **end)
|
|
137
|
+
{
|
|
138
|
+
const char *coeff = NULL;
|
|
139
|
+
|
|
140
|
+
*dpoint = NULL;
|
|
141
|
+
*exp = NULL;
|
|
142
|
+
for (; *s != '\0'; s++) {
|
|
143
|
+
switch (*s) {
|
|
144
|
+
case '.':
|
|
145
|
+
if (*dpoint != NULL || *exp != NULL)
|
|
146
|
+
return NULL;
|
|
147
|
+
*dpoint = s;
|
|
148
|
+
break;
|
|
149
|
+
case 'E': case 'e':
|
|
150
|
+
if (*exp != NULL)
|
|
151
|
+
return NULL;
|
|
152
|
+
*exp = s;
|
|
153
|
+
if (*(s+1) == '+' || *(s+1) == '-')
|
|
154
|
+
s++;
|
|
155
|
+
break;
|
|
156
|
+
default:
|
|
157
|
+
if (!isdigit((unsigned char)*s))
|
|
158
|
+
return NULL;
|
|
159
|
+
if (coeff == NULL && *exp == NULL) {
|
|
160
|
+
if (*s == '0') {
|
|
161
|
+
if (!isdigit((unsigned char)*(s+1)))
|
|
162
|
+
if (!(*(s+1) == '.' &&
|
|
163
|
+
isdigit((unsigned char)*(s+2))))
|
|
164
|
+
coeff = s;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
coeff = s;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
break;
|
|
171
|
+
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
*end = s;
|
|
176
|
+
return coeff;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* scan the payload of a NaN */
|
|
180
|
+
static const char *
|
|
181
|
+
scan_payload(const char *s, const char **end)
|
|
182
|
+
{
|
|
183
|
+
const char *coeff;
|
|
184
|
+
|
|
185
|
+
while (*s == '0')
|
|
186
|
+
s++;
|
|
187
|
+
coeff = s;
|
|
188
|
+
|
|
189
|
+
while (isdigit((unsigned char)*s))
|
|
190
|
+
s++;
|
|
191
|
+
*end = s;
|
|
192
|
+
|
|
193
|
+
return (*s == '\0') ? coeff : NULL;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* convert a character string to a decimal */
|
|
197
|
+
void
|
|
198
|
+
mpd_qset_string(mpd_t *dec, const char *s, const mpd_context_t *ctx,
|
|
199
|
+
uint32_t *status)
|
|
200
|
+
{
|
|
201
|
+
mpd_ssize_t q, r, len;
|
|
202
|
+
const char *coeff, *end;
|
|
203
|
+
const char *dpoint = NULL, *exp = NULL;
|
|
204
|
+
size_t digits;
|
|
205
|
+
uint8_t sign = MPD_POS;
|
|
206
|
+
|
|
207
|
+
mpd_set_flags(dec, 0);
|
|
208
|
+
dec->len = 0;
|
|
209
|
+
dec->exp = 0;
|
|
210
|
+
|
|
211
|
+
/* sign */
|
|
212
|
+
if (*s == '+') {
|
|
213
|
+
s++;
|
|
214
|
+
}
|
|
215
|
+
else if (*s == '-') {
|
|
216
|
+
mpd_set_negative(dec);
|
|
217
|
+
sign = MPD_NEG;
|
|
218
|
+
s++;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (_mpd_strneq(s, "nan", "NAN", 3)) { /* NaN */
|
|
222
|
+
s += 3;
|
|
223
|
+
mpd_setspecial(dec, sign, MPD_NAN);
|
|
224
|
+
if (*s == '\0')
|
|
225
|
+
return;
|
|
226
|
+
/* validate payload: digits only */
|
|
227
|
+
if ((coeff = scan_payload(s, &end)) == NULL)
|
|
228
|
+
goto conversion_error;
|
|
229
|
+
/* payload consists entirely of zeros */
|
|
230
|
+
if (*coeff == '\0')
|
|
231
|
+
return;
|
|
232
|
+
digits = end - coeff;
|
|
233
|
+
/* prec >= 1, clamp is 0 or 1 */
|
|
234
|
+
if (digits > (size_t)(ctx->prec-ctx->clamp))
|
|
235
|
+
goto conversion_error;
|
|
236
|
+
} /* sNaN */
|
|
237
|
+
else if (_mpd_strneq(s, "snan", "SNAN", 4)) {
|
|
238
|
+
s += 4;
|
|
239
|
+
mpd_setspecial(dec, sign, MPD_SNAN);
|
|
240
|
+
if (*s == '\0')
|
|
241
|
+
return;
|
|
242
|
+
/* validate payload: digits only */
|
|
243
|
+
if ((coeff = scan_payload(s, &end)) == NULL)
|
|
244
|
+
goto conversion_error;
|
|
245
|
+
/* payload consists entirely of zeros */
|
|
246
|
+
if (*coeff == '\0')
|
|
247
|
+
return;
|
|
248
|
+
digits = end - coeff;
|
|
249
|
+
if (digits > (size_t)(ctx->prec-ctx->clamp))
|
|
250
|
+
goto conversion_error;
|
|
251
|
+
}
|
|
252
|
+
else if (_mpd_strneq(s, "inf", "INF", 3)) {
|
|
253
|
+
s += 3;
|
|
254
|
+
if (*s == '\0' || _mpd_strneq(s, "inity", "INITY", 6)) {
|
|
255
|
+
/* numeric-value: infinity */
|
|
256
|
+
mpd_setspecial(dec, sign, MPD_INF);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
goto conversion_error;
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
/* scan for start of coefficient, decimal point, indicator, end */
|
|
263
|
+
if ((coeff = scan_dpoint_exp(s, &dpoint, &exp, &end)) == NULL)
|
|
264
|
+
goto conversion_error;
|
|
265
|
+
|
|
266
|
+
/* numeric-value: [exponent-part] */
|
|
267
|
+
if (exp) {
|
|
268
|
+
/* exponent-part */
|
|
269
|
+
end = exp; exp++;
|
|
270
|
+
dec->exp = strtoexp(exp);
|
|
271
|
+
if (errno) {
|
|
272
|
+
if (!(errno == ERANGE &&
|
|
273
|
+
(dec->exp == MPD_SSIZE_MAX ||
|
|
274
|
+
dec->exp == MPD_SSIZE_MIN)))
|
|
275
|
+
goto conversion_error;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
digits = end - coeff;
|
|
280
|
+
if (dpoint) {
|
|
281
|
+
size_t fracdigits = end-dpoint-1;
|
|
282
|
+
if (dpoint > coeff) digits--;
|
|
283
|
+
|
|
284
|
+
if (fracdigits > MPD_MAX_PREC) {
|
|
285
|
+
goto conversion_error;
|
|
286
|
+
}
|
|
287
|
+
if (dec->exp < MPD_SSIZE_MIN+(mpd_ssize_t)fracdigits) {
|
|
288
|
+
dec->exp = MPD_SSIZE_MIN;
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
dec->exp -= (mpd_ssize_t)fracdigits;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (digits > MPD_MAX_PREC) {
|
|
295
|
+
goto conversion_error;
|
|
296
|
+
}
|
|
297
|
+
if (dec->exp > MPD_EXP_INF) {
|
|
298
|
+
dec->exp = MPD_EXP_INF;
|
|
299
|
+
}
|
|
300
|
+
if (dec->exp == MPD_SSIZE_MIN) {
|
|
301
|
+
dec->exp = MPD_SSIZE_MIN+1;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
_mpd_idiv_word(&q, &r, (mpd_ssize_t)digits, MPD_RDIGITS);
|
|
306
|
+
|
|
307
|
+
len = (r == 0) ? q : q+1;
|
|
308
|
+
if (len == 0) {
|
|
309
|
+
goto conversion_error; /* GCOV_NOT_REACHED */
|
|
310
|
+
}
|
|
311
|
+
if (!mpd_qresize(dec, len, status)) {
|
|
312
|
+
mpd_seterror(dec, MPD_Malloc_error, status);
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
dec->len = len;
|
|
316
|
+
|
|
317
|
+
string_to_coeff(dec->data, coeff, dpoint, (int)r, len);
|
|
318
|
+
|
|
319
|
+
mpd_setdigits(dec);
|
|
320
|
+
mpd_qfinalize(dec, ctx, status);
|
|
321
|
+
return;
|
|
322
|
+
|
|
323
|
+
conversion_error:
|
|
324
|
+
/* standard wants a positive NaN */
|
|
325
|
+
mpd_seterror(dec, MPD_Conversion_syntax, status);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* convert a character string to a decimal, use a maxcontext for conversion */
|
|
329
|
+
void
|
|
330
|
+
mpd_qset_string_exact(mpd_t *dec, const char *s, uint32_t *status)
|
|
331
|
+
{
|
|
332
|
+
mpd_context_t maxcontext;
|
|
333
|
+
uint32_t workstatus = 0;
|
|
334
|
+
|
|
335
|
+
mpd_maxcontext(&maxcontext);
|
|
336
|
+
mpd_qset_string(dec, s, &maxcontext, &workstatus);
|
|
337
|
+
|
|
338
|
+
if (workstatus & (MPD_Inexact|MPD_Rounded|MPD_Clamped)) {
|
|
339
|
+
/* we want exact results */
|
|
340
|
+
mpd_seterror(dec, MPD_Invalid_operation, status);
|
|
341
|
+
}
|
|
342
|
+
*status |= (workstatus&MPD_Errors);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* Print word x with n decimal digits to string s. dot is either NULL
|
|
346
|
+
or the location of a decimal point. */
|
|
347
|
+
#define EXTRACT_DIGIT(s, x, d, dot) \
|
|
348
|
+
if (s == dot) *s++ = '.'; *s++ = '0' + (char)(x / d); x %= d
|
|
349
|
+
static inline char *
|
|
350
|
+
word_to_string(char *s, mpd_uint_t x, int n, char *dot)
|
|
351
|
+
{
|
|
352
|
+
switch(n) {
|
|
353
|
+
#ifdef CONFIG_64
|
|
354
|
+
case 20: EXTRACT_DIGIT(s, x, 10000000000000000000ULL, dot); /* GCOV_NOT_REACHED */
|
|
355
|
+
case 19: EXTRACT_DIGIT(s, x, 1000000000000000000ULL, dot);
|
|
356
|
+
case 18: EXTRACT_DIGIT(s, x, 100000000000000000ULL, dot);
|
|
357
|
+
case 17: EXTRACT_DIGIT(s, x, 10000000000000000ULL, dot);
|
|
358
|
+
case 16: EXTRACT_DIGIT(s, x, 1000000000000000ULL, dot);
|
|
359
|
+
case 15: EXTRACT_DIGIT(s, x, 100000000000000ULL, dot);
|
|
360
|
+
case 14: EXTRACT_DIGIT(s, x, 10000000000000ULL, dot);
|
|
361
|
+
case 13: EXTRACT_DIGIT(s, x, 1000000000000ULL, dot);
|
|
362
|
+
case 12: EXTRACT_DIGIT(s, x, 100000000000ULL, dot);
|
|
363
|
+
case 11: EXTRACT_DIGIT(s, x, 10000000000ULL, dot);
|
|
364
|
+
#endif
|
|
365
|
+
case 10: EXTRACT_DIGIT(s, x, 1000000000UL, dot);
|
|
366
|
+
case 9: EXTRACT_DIGIT(s, x, 100000000UL, dot);
|
|
367
|
+
case 8: EXTRACT_DIGIT(s, x, 10000000UL, dot);
|
|
368
|
+
case 7: EXTRACT_DIGIT(s, x, 1000000UL, dot);
|
|
369
|
+
case 6: EXTRACT_DIGIT(s, x, 100000UL, dot);
|
|
370
|
+
case 5: EXTRACT_DIGIT(s, x, 10000UL, dot);
|
|
371
|
+
case 4: EXTRACT_DIGIT(s, x, 1000UL, dot);
|
|
372
|
+
case 3: EXTRACT_DIGIT(s, x, 100UL, dot);
|
|
373
|
+
case 2: EXTRACT_DIGIT(s, x, 10UL, dot);
|
|
374
|
+
default: if (s == dot) *s++ = '.'; *s++ = '0' + (char)x;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
*s = '\0';
|
|
378
|
+
return s;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* Print exponent x to string s. Undefined for MPD_SSIZE_MIN. */
|
|
382
|
+
static inline char *
|
|
383
|
+
exp_to_string(char *s, mpd_ssize_t x)
|
|
384
|
+
{
|
|
385
|
+
char sign = '+';
|
|
386
|
+
|
|
387
|
+
if (x < 0) {
|
|
388
|
+
sign = '-';
|
|
389
|
+
x = -x;
|
|
390
|
+
}
|
|
391
|
+
*s++ = sign;
|
|
392
|
+
|
|
393
|
+
return word_to_string(s, x, mpd_word_digits(x), NULL);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* Print the coefficient of dec to string s. len(dec) > 0. */
|
|
397
|
+
static inline char *
|
|
398
|
+
coeff_to_string(char *s, const mpd_t *dec)
|
|
399
|
+
{
|
|
400
|
+
mpd_uint_t x;
|
|
401
|
+
mpd_ssize_t i;
|
|
402
|
+
|
|
403
|
+
/* most significant word */
|
|
404
|
+
x = mpd_msword(dec);
|
|
405
|
+
s = word_to_string(s, x, mpd_word_digits(x), NULL);
|
|
406
|
+
|
|
407
|
+
/* remaining full words */
|
|
408
|
+
for (i=dec->len-2; i >= 0; --i) {
|
|
409
|
+
x = dec->data[i];
|
|
410
|
+
s = word_to_string(s, x, MPD_RDIGITS, NULL);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return s;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Print the coefficient of dec to string s. len(dec) > 0. dot is either
|
|
417
|
+
NULL or a pointer to the location of a decimal point. */
|
|
418
|
+
static inline char *
|
|
419
|
+
coeff_to_string_dot(char *s, char *dot, const mpd_t *dec)
|
|
420
|
+
{
|
|
421
|
+
mpd_uint_t x;
|
|
422
|
+
mpd_ssize_t i;
|
|
423
|
+
|
|
424
|
+
/* most significant word */
|
|
425
|
+
x = mpd_msword(dec);
|
|
426
|
+
s = word_to_string(s, x, mpd_word_digits(x), dot);
|
|
427
|
+
|
|
428
|
+
/* remaining full words */
|
|
429
|
+
for (i=dec->len-2; i >= 0; --i) {
|
|
430
|
+
x = dec->data[i];
|
|
431
|
+
s = word_to_string(s, x, MPD_RDIGITS, dot);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
return s;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* Format type */
|
|
438
|
+
#define MPD_FMT_LOWER 0x00000000
|
|
439
|
+
#define MPD_FMT_UPPER 0x00000001
|
|
440
|
+
#define MPD_FMT_TOSCI 0x00000002
|
|
441
|
+
#define MPD_FMT_TOENG 0x00000004
|
|
442
|
+
#define MPD_FMT_EXP 0x00000008
|
|
443
|
+
#define MPD_FMT_FIXED 0x00000010
|
|
444
|
+
#define MPD_FMT_PERCENT 0x00000020
|
|
445
|
+
#define MPD_FMT_SIGN_SPACE 0x00000040
|
|
446
|
+
#define MPD_FMT_SIGN_PLUS 0x00000080
|
|
447
|
+
#define MPD_FMT_SIGN_COERCE 0x00000100
|
|
448
|
+
|
|
449
|
+
/* Default place of the decimal point for MPD_FMT_TOSCI, MPD_FMT_EXP */
|
|
450
|
+
#define MPD_DEFAULT_DOTPLACE 1
|
|
451
|
+
|
|
452
|
+
/*
|
|
453
|
+
* Set *result to the string representation of a decimal. Return the length
|
|
454
|
+
* of *result, not including the terminating '\0' character.
|
|
455
|
+
*
|
|
456
|
+
* Formatting is done according to 'flags'. A return value of -1 with *result
|
|
457
|
+
* set to NULL indicates MPD_Malloc_error.
|
|
458
|
+
*
|
|
459
|
+
* 'dplace' is the default place of the decimal point. It is always set to
|
|
460
|
+
* MPD_DEFAULT_DOTPLACE except for zeros in combination with MPD_FMT_EXP.
|
|
461
|
+
*/
|
|
462
|
+
static mpd_ssize_t
|
|
463
|
+
_mpd_to_string(char **result, const mpd_t *dec, int flags, mpd_ssize_t dplace)
|
|
464
|
+
{
|
|
465
|
+
char *decstring = NULL, *cp = NULL;
|
|
466
|
+
mpd_ssize_t ldigits;
|
|
467
|
+
mpd_ssize_t mem = 0, k;
|
|
468
|
+
|
|
469
|
+
if (mpd_isspecial(dec)) {
|
|
470
|
+
|
|
471
|
+
mem = sizeof "-Infinity%";
|
|
472
|
+
if (mpd_isnan(dec) && dec->len > 0) {
|
|
473
|
+
/* diagnostic code */
|
|
474
|
+
mem += dec->digits;
|
|
475
|
+
}
|
|
476
|
+
cp = decstring = mpd_alloc(mem, sizeof *decstring);
|
|
477
|
+
if (cp == NULL) {
|
|
478
|
+
*result = NULL;
|
|
479
|
+
return -1;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (mpd_isnegative(dec)) {
|
|
483
|
+
*cp++ = '-';
|
|
484
|
+
}
|
|
485
|
+
else if (flags&MPD_FMT_SIGN_SPACE) {
|
|
486
|
+
*cp++ = ' ';
|
|
487
|
+
}
|
|
488
|
+
else if (flags&MPD_FMT_SIGN_PLUS) {
|
|
489
|
+
*cp++ = '+';
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (mpd_isnan(dec)) {
|
|
493
|
+
if (mpd_isqnan(dec)) {
|
|
494
|
+
strcpy(cp, "NaN");
|
|
495
|
+
cp += 3;
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
strcpy(cp, "sNaN");
|
|
499
|
+
cp += 4;
|
|
500
|
+
}
|
|
501
|
+
if (dec->len > 0) { /* diagnostic code */
|
|
502
|
+
cp = coeff_to_string(cp, dec);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
else if (mpd_isinfinite(dec)) {
|
|
506
|
+
strcpy(cp, "Infinity");
|
|
507
|
+
cp += 8;
|
|
508
|
+
}
|
|
509
|
+
else { /* debug */
|
|
510
|
+
abort(); /* GCOV_NOT_REACHED */
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
assert(dec->len > 0);
|
|
515
|
+
|
|
516
|
+
/*
|
|
517
|
+
* For easier manipulation of the decimal point's location
|
|
518
|
+
* and the exponent that is finally printed, the number is
|
|
519
|
+
* rescaled to a virtual representation with exp = 0. Here
|
|
520
|
+
* ldigits denotes the number of decimal digits to the left
|
|
521
|
+
* of the decimal point and remains constant once initialized.
|
|
522
|
+
*
|
|
523
|
+
* dplace is the location of the decimal point relative to
|
|
524
|
+
* the start of the coefficient. Note that 3) always holds
|
|
525
|
+
* when dplace is shifted.
|
|
526
|
+
*
|
|
527
|
+
* 1) ldigits := dec->digits - dec->exp
|
|
528
|
+
* 2) dplace := ldigits (initially)
|
|
529
|
+
* 3) exp := ldigits - dplace (initially exp = 0)
|
|
530
|
+
*
|
|
531
|
+
* 0.00000_.____._____000000.
|
|
532
|
+
* ^ ^ ^ ^
|
|
533
|
+
* | | | |
|
|
534
|
+
* | | | `- dplace >= digits
|
|
535
|
+
* | | `- dplace in the middle of the coefficient
|
|
536
|
+
* | ` dplace = 1 (after the first coefficient digit)
|
|
537
|
+
* `- dplace <= 0
|
|
538
|
+
*/
|
|
539
|
+
|
|
540
|
+
ldigits = dec->digits + dec->exp;
|
|
541
|
+
|
|
542
|
+
if (flags&MPD_FMT_EXP) {
|
|
543
|
+
;
|
|
544
|
+
}
|
|
545
|
+
else if (flags&MPD_FMT_FIXED || (dec->exp <= 0 && ldigits > -6)) {
|
|
546
|
+
/* MPD_FMT_FIXED: always use fixed point notation.
|
|
547
|
+
* MPD_FMT_TOSCI, MPD_FMT_TOENG: for a certain range,
|
|
548
|
+
* override exponent notation. */
|
|
549
|
+
dplace = ldigits;
|
|
550
|
+
}
|
|
551
|
+
else if (flags&MPD_FMT_TOENG) {
|
|
552
|
+
if (mpd_iszero(dec)) {
|
|
553
|
+
/* If the exponent is divisible by three,
|
|
554
|
+
* dplace = 1. Otherwise, move dplace one
|
|
555
|
+
* or two places to the left. */
|
|
556
|
+
dplace = -1 + mod_mpd_ssize_t(dec->exp+2, 3);
|
|
557
|
+
}
|
|
558
|
+
else { /* ldigits-1 is the adjusted exponent, which
|
|
559
|
+
* should be divisible by three. If not, move
|
|
560
|
+
* dplace one or two places to the right. */
|
|
561
|
+
dplace += mod_mpd_ssize_t(ldigits-1, 3);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/*
|
|
566
|
+
* Basic space requirements:
|
|
567
|
+
*
|
|
568
|
+
* [-][.][coeffdigits][E][-][expdigits+1][%]['\0']
|
|
569
|
+
*
|
|
570
|
+
* If the decimal point lies outside of the coefficient digits,
|
|
571
|
+
* space is adjusted accordingly.
|
|
572
|
+
*/
|
|
573
|
+
if (dplace <= 0) {
|
|
574
|
+
mem = -dplace + dec->digits + 2;
|
|
575
|
+
}
|
|
576
|
+
else if (dplace >= dec->digits) {
|
|
577
|
+
mem = dplace;
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
mem = dec->digits;
|
|
581
|
+
}
|
|
582
|
+
mem += (MPD_EXPDIGITS+1+6);
|
|
583
|
+
|
|
584
|
+
cp = decstring = mpd_alloc(mem, sizeof *decstring);
|
|
585
|
+
if (cp == NULL) {
|
|
586
|
+
*result = NULL;
|
|
587
|
+
return -1;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
if (mpd_isnegative(dec) && !(flags&MPD_FMT_SIGN_COERCE && mpd_iszero(dec))) {
|
|
592
|
+
*cp++ = '-';
|
|
593
|
+
}
|
|
594
|
+
else if (flags&MPD_FMT_SIGN_SPACE) {
|
|
595
|
+
*cp++ = ' ';
|
|
596
|
+
}
|
|
597
|
+
else if (flags&MPD_FMT_SIGN_PLUS) {
|
|
598
|
+
*cp++ = '+';
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
if (dplace <= 0) {
|
|
602
|
+
/* space: -dplace+dec->digits+2 */
|
|
603
|
+
*cp++ = '0';
|
|
604
|
+
*cp++ = '.';
|
|
605
|
+
for (k = 0; k < -dplace; k++) {
|
|
606
|
+
*cp++ = '0';
|
|
607
|
+
}
|
|
608
|
+
cp = coeff_to_string(cp, dec);
|
|
609
|
+
}
|
|
610
|
+
else if (dplace >= dec->digits) {
|
|
611
|
+
/* space: dplace */
|
|
612
|
+
cp = coeff_to_string(cp, dec);
|
|
613
|
+
for (k = 0; k < dplace-dec->digits; k++) {
|
|
614
|
+
*cp++ = '0';
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
/* space: dec->digits+1 */
|
|
619
|
+
cp = coeff_to_string_dot(cp, cp+dplace, dec);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/*
|
|
623
|
+
* Conditions for printing an exponent:
|
|
624
|
+
*
|
|
625
|
+
* MPD_FMT_TOSCI, MPD_FMT_TOENG: only if ldigits != dplace
|
|
626
|
+
* MPD_FMT_FIXED: never (ldigits == dplace)
|
|
627
|
+
* MPD_FMT_EXP: always
|
|
628
|
+
*/
|
|
629
|
+
if (ldigits != dplace || flags&MPD_FMT_EXP) {
|
|
630
|
+
/* space: expdigits+2 */
|
|
631
|
+
*cp++ = (flags&MPD_FMT_UPPER) ? 'E' : 'e';
|
|
632
|
+
cp = exp_to_string(cp, ldigits-dplace);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (flags&MPD_FMT_PERCENT) {
|
|
637
|
+
*cp++ = '%';
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
assert(cp < decstring+mem);
|
|
641
|
+
assert(cp-decstring < MPD_SSIZE_MAX);
|
|
642
|
+
|
|
643
|
+
*cp = '\0';
|
|
644
|
+
*result = decstring;
|
|
645
|
+
return (mpd_ssize_t)(cp-decstring);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
char *
|
|
649
|
+
mpd_to_sci(const mpd_t *dec, int fmt)
|
|
650
|
+
{
|
|
651
|
+
char *res;
|
|
652
|
+
int flags = MPD_FMT_TOSCI;
|
|
653
|
+
|
|
654
|
+
flags |= fmt ? MPD_FMT_UPPER : MPD_FMT_LOWER;
|
|
655
|
+
(void)_mpd_to_string(&res, dec, flags, MPD_DEFAULT_DOTPLACE);
|
|
656
|
+
return res;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
char *
|
|
660
|
+
mpd_to_eng(const mpd_t *dec, int fmt)
|
|
661
|
+
{
|
|
662
|
+
char *res;
|
|
663
|
+
int flags = MPD_FMT_TOENG;
|
|
664
|
+
|
|
665
|
+
flags |= fmt ? MPD_FMT_UPPER : MPD_FMT_LOWER;
|
|
666
|
+
(void)_mpd_to_string(&res, dec, flags, MPD_DEFAULT_DOTPLACE);
|
|
667
|
+
return res;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
mpd_ssize_t
|
|
671
|
+
mpd_to_sci_size(char **res, const mpd_t *dec, int fmt)
|
|
672
|
+
{
|
|
673
|
+
int flags = MPD_FMT_TOSCI;
|
|
674
|
+
|
|
675
|
+
flags |= fmt ? MPD_FMT_UPPER : MPD_FMT_LOWER;
|
|
676
|
+
return _mpd_to_string(res, dec, flags, MPD_DEFAULT_DOTPLACE);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
mpd_ssize_t
|
|
680
|
+
mpd_to_eng_size(char **res, const mpd_t *dec, int fmt)
|
|
681
|
+
{
|
|
682
|
+
int flags = MPD_FMT_TOENG;
|
|
683
|
+
|
|
684
|
+
flags |= fmt ? MPD_FMT_UPPER : MPD_FMT_LOWER;
|
|
685
|
+
return _mpd_to_string(res, dec, flags, MPD_DEFAULT_DOTPLACE);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* Copy a single UTF-8 char to dest. See: The Unicode Standard, version 5.2,
|
|
689
|
+
chapter 3.9: Well-formed UTF-8 byte sequences. */
|
|
690
|
+
static int
|
|
691
|
+
_mpd_copy_utf8(char dest[5], const char *s)
|
|
692
|
+
{
|
|
693
|
+
const unsigned char *cp = (const unsigned char *)s;
|
|
694
|
+
unsigned char lb, ub;
|
|
695
|
+
int count, i;
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
if (*cp == 0) {
|
|
699
|
+
/* empty string */
|
|
700
|
+
dest[0] = '\0';
|
|
701
|
+
return 0;
|
|
702
|
+
}
|
|
703
|
+
else if (*cp <= 0x7f) {
|
|
704
|
+
/* ascii */
|
|
705
|
+
dest[0] = *cp;
|
|
706
|
+
dest[1] = '\0';
|
|
707
|
+
return 1;
|
|
708
|
+
}
|
|
709
|
+
else if (0xc2 <= *cp && *cp <= 0xdf) {
|
|
710
|
+
lb = 0x80; ub = 0xbf;
|
|
711
|
+
count = 2;
|
|
712
|
+
}
|
|
713
|
+
else if (*cp == 0xe0) {
|
|
714
|
+
lb = 0xa0; ub = 0xbf;
|
|
715
|
+
count = 3;
|
|
716
|
+
}
|
|
717
|
+
else if (*cp <= 0xec) {
|
|
718
|
+
lb = 0x80; ub = 0xbf;
|
|
719
|
+
count = 3;
|
|
720
|
+
}
|
|
721
|
+
else if (*cp == 0xed) {
|
|
722
|
+
lb = 0x80; ub = 0x9f;
|
|
723
|
+
count = 3;
|
|
724
|
+
}
|
|
725
|
+
else if (*cp <= 0xef) {
|
|
726
|
+
lb = 0x80; ub = 0xbf;
|
|
727
|
+
count = 3;
|
|
728
|
+
}
|
|
729
|
+
else if (*cp == 0xf0) {
|
|
730
|
+
lb = 0x90; ub = 0xbf;
|
|
731
|
+
count = 4;
|
|
732
|
+
}
|
|
733
|
+
else if (*cp <= 0xf3) {
|
|
734
|
+
lb = 0x80; ub = 0xbf;
|
|
735
|
+
count = 4;
|
|
736
|
+
}
|
|
737
|
+
else if (*cp == 0xf4) {
|
|
738
|
+
lb = 0x80; ub = 0x8f;
|
|
739
|
+
count = 4;
|
|
740
|
+
}
|
|
741
|
+
else {
|
|
742
|
+
/* invalid */
|
|
743
|
+
goto error;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
dest[0] = (char)*cp++;
|
|
747
|
+
if (*cp < lb || ub < *cp) {
|
|
748
|
+
goto error;
|
|
749
|
+
}
|
|
750
|
+
dest[1] = (char)*cp++;
|
|
751
|
+
for (i = 2; i < count; i++) {
|
|
752
|
+
if (*cp < 0x80 || 0xbf < *cp) {
|
|
753
|
+
goto error;
|
|
754
|
+
}
|
|
755
|
+
dest[i] = (char)*cp++;
|
|
756
|
+
}
|
|
757
|
+
dest[i] = '\0';
|
|
758
|
+
|
|
759
|
+
return count;
|
|
760
|
+
|
|
761
|
+
error:
|
|
762
|
+
dest[0] = '\0';
|
|
763
|
+
return -1;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
int
|
|
767
|
+
mpd_validate_lconv(mpd_spec_t *spec)
|
|
768
|
+
{
|
|
769
|
+
size_t n;
|
|
770
|
+
#if CHAR_MAX == SCHAR_MAX
|
|
771
|
+
const char *cp = spec->grouping;
|
|
772
|
+
while (*cp != '\0') {
|
|
773
|
+
if (*cp++ < 0) {
|
|
774
|
+
return -1;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
#endif
|
|
778
|
+
n = strlen(spec->dot);
|
|
779
|
+
if (n == 0 || n > 4) {
|
|
780
|
+
return -1;
|
|
781
|
+
}
|
|
782
|
+
if (strlen(spec->sep) > 4) {
|
|
783
|
+
return -1;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return 0;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
int
|
|
790
|
+
mpd_parse_fmt_str(mpd_spec_t *spec, const char *fmt, int caps)
|
|
791
|
+
{
|
|
792
|
+
char *cp = (char *)fmt;
|
|
793
|
+
int have_align = 0, n;
|
|
794
|
+
|
|
795
|
+
/* defaults */
|
|
796
|
+
spec->min_width = 0;
|
|
797
|
+
spec->prec = -1;
|
|
798
|
+
spec->type = caps ? 'G' : 'g';
|
|
799
|
+
spec->align = '>';
|
|
800
|
+
spec->sign = '-';
|
|
801
|
+
spec->sign_coerce = 0;
|
|
802
|
+
spec->dot = "";
|
|
803
|
+
spec->sep = "";
|
|
804
|
+
spec->grouping = "";
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
/* presume that the first character is a UTF-8 fill character */
|
|
808
|
+
if ((n = _mpd_copy_utf8(spec->fill, cp)) < 0) {
|
|
809
|
+
return 0;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/* alignment directive, prefixed by a fill character */
|
|
813
|
+
if (*cp && (*(cp+n) == '<' || *(cp+n) == '>' ||
|
|
814
|
+
*(cp+n) == '=' || *(cp+n) == '^')) {
|
|
815
|
+
cp += n;
|
|
816
|
+
spec->align = *cp++;
|
|
817
|
+
have_align = 1;
|
|
818
|
+
} /* alignment directive */
|
|
819
|
+
else {
|
|
820
|
+
/* default fill character */
|
|
821
|
+
spec->fill[0] = ' ';
|
|
822
|
+
spec->fill[1] = '\0';
|
|
823
|
+
if (*cp == '<' || *cp == '>' ||
|
|
824
|
+
*cp == '=' || *cp == '^') {
|
|
825
|
+
spec->align = *cp++;
|
|
826
|
+
have_align = 1;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/* sign formatting */
|
|
831
|
+
if (*cp == '+' || *cp == '-' || *cp == ' ') {
|
|
832
|
+
spec->sign = *cp++;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/* coerce to positive zero */
|
|
836
|
+
if (*cp == 'z') {
|
|
837
|
+
spec->sign_coerce = 1;
|
|
838
|
+
cp++;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/* zero padding */
|
|
842
|
+
if (*cp == '0') {
|
|
843
|
+
/* zero padding implies alignment, which should not be
|
|
844
|
+
* specified twice. */
|
|
845
|
+
if (have_align) {
|
|
846
|
+
return 0;
|
|
847
|
+
}
|
|
848
|
+
spec->align = 'z';
|
|
849
|
+
spec->fill[0] = *cp++;
|
|
850
|
+
spec->fill[1] = '\0';
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/* minimum width */
|
|
854
|
+
if (isdigit((unsigned char)*cp)) {
|
|
855
|
+
if (*cp == '0') {
|
|
856
|
+
return 0;
|
|
857
|
+
}
|
|
858
|
+
errno = 0;
|
|
859
|
+
spec->min_width = mpd_strtossize(cp, &cp, 10);
|
|
860
|
+
if (errno == ERANGE || errno == EINVAL) {
|
|
861
|
+
return 0;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/* thousands separator */
|
|
866
|
+
if (*cp == ',') {
|
|
867
|
+
spec->dot = ".";
|
|
868
|
+
spec->sep = ",";
|
|
869
|
+
spec->grouping = "\003\003";
|
|
870
|
+
cp++;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/* fraction digits or significant digits */
|
|
874
|
+
if (*cp == '.') {
|
|
875
|
+
cp++;
|
|
876
|
+
if (!isdigit((unsigned char)*cp)) {
|
|
877
|
+
return 0;
|
|
878
|
+
}
|
|
879
|
+
errno = 0;
|
|
880
|
+
spec->prec = mpd_strtossize(cp, &cp, 10);
|
|
881
|
+
if (errno == ERANGE || errno == EINVAL) {
|
|
882
|
+
return 0;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/* type */
|
|
887
|
+
if (*cp == 'E' || *cp == 'e' || *cp == 'F' || *cp == 'f' ||
|
|
888
|
+
*cp == 'G' || *cp == 'g' || *cp == '%') {
|
|
889
|
+
spec->type = *cp++;
|
|
890
|
+
}
|
|
891
|
+
else if (*cp == 'N' || *cp == 'n') {
|
|
892
|
+
/* locale specific conversion */
|
|
893
|
+
struct lconv *lc;
|
|
894
|
+
/* separator has already been specified */
|
|
895
|
+
if (*spec->sep) {
|
|
896
|
+
return 0;
|
|
897
|
+
}
|
|
898
|
+
spec->type = *cp++;
|
|
899
|
+
spec->type = (spec->type == 'N') ? 'G' : 'g';
|
|
900
|
+
lc = localeconv();
|
|
901
|
+
spec->dot = lc->decimal_point;
|
|
902
|
+
spec->sep = lc->thousands_sep;
|
|
903
|
+
spec->grouping = lc->grouping;
|
|
904
|
+
if (mpd_validate_lconv(spec) < 0) {
|
|
905
|
+
return 0; /* GCOV_NOT_REACHED */
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/* check correctness */
|
|
910
|
+
if (*cp != '\0') {
|
|
911
|
+
return 0;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
return 1;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/*
|
|
918
|
+
* The following functions assume that spec->min_width <= MPD_MAX_PREC, which
|
|
919
|
+
* is made sure in mpd_qformat_spec. Then, even with a spec that inserts a
|
|
920
|
+
* four-byte separator after each digit, nbytes in the following struct
|
|
921
|
+
* cannot overflow.
|
|
922
|
+
*/
|
|
923
|
+
|
|
924
|
+
/* Multibyte string */
|
|
925
|
+
typedef struct {
|
|
926
|
+
mpd_ssize_t nbytes; /* length in bytes */
|
|
927
|
+
mpd_ssize_t nchars; /* length in chars */
|
|
928
|
+
mpd_ssize_t cur; /* current write index */
|
|
929
|
+
char *data;
|
|
930
|
+
} mpd_mbstr_t;
|
|
931
|
+
|
|
932
|
+
static inline void
|
|
933
|
+
_mpd_bcopy(char *dest, const char *src, mpd_ssize_t n)
|
|
934
|
+
{
|
|
935
|
+
while (--n >= 0) {
|
|
936
|
+
dest[n] = src[n];
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
static inline void
|
|
941
|
+
_mbstr_copy_char(mpd_mbstr_t *dest, const char *src, mpd_ssize_t n)
|
|
942
|
+
{
|
|
943
|
+
dest->nbytes += n;
|
|
944
|
+
dest->nchars += (n > 0 ? 1 : 0);
|
|
945
|
+
dest->cur -= n;
|
|
946
|
+
|
|
947
|
+
if (dest->data != NULL) {
|
|
948
|
+
_mpd_bcopy(dest->data+dest->cur, src, n);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
static inline void
|
|
953
|
+
_mbstr_copy_ascii(mpd_mbstr_t *dest, const char *src, mpd_ssize_t n)
|
|
954
|
+
{
|
|
955
|
+
dest->nbytes += n;
|
|
956
|
+
dest->nchars += n;
|
|
957
|
+
dest->cur -= n;
|
|
958
|
+
|
|
959
|
+
if (dest->data != NULL) {
|
|
960
|
+
_mpd_bcopy(dest->data+dest->cur, src, n);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
static inline void
|
|
965
|
+
_mbstr_copy_pad(mpd_mbstr_t *dest, mpd_ssize_t n)
|
|
966
|
+
{
|
|
967
|
+
dest->nbytes += n;
|
|
968
|
+
dest->nchars += n;
|
|
969
|
+
dest->cur -= n;
|
|
970
|
+
|
|
971
|
+
if (dest->data != NULL) {
|
|
972
|
+
char *cp = dest->data + dest->cur;
|
|
973
|
+
while (--n >= 0) {
|
|
974
|
+
cp[n] = '0';
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/*
|
|
980
|
+
* Copy a numeric string to dest->data, adding separators in the integer
|
|
981
|
+
* part according to spec->grouping. If leading zero padding is enabled
|
|
982
|
+
* and the result is smaller than spec->min_width, continue adding zeros
|
|
983
|
+
* and separators until the minimum width is reached.
|
|
984
|
+
*
|
|
985
|
+
* The final length of dest->data is stored in dest->nbytes. The number
|
|
986
|
+
* of UTF-8 characters is stored in dest->nchars.
|
|
987
|
+
*
|
|
988
|
+
* First run (dest->data == NULL): determine the length of the result
|
|
989
|
+
* string and store it in dest->nbytes.
|
|
990
|
+
*
|
|
991
|
+
* Second run (write to dest->data): data is written in chunks and in
|
|
992
|
+
* reverse order, starting with the rest of the numeric string.
|
|
993
|
+
*/
|
|
994
|
+
static void
|
|
995
|
+
_mpd_add_sep_dot(mpd_mbstr_t *dest,
|
|
996
|
+
const char *sign, /* location of optional sign */
|
|
997
|
+
const char *src, mpd_ssize_t n_src, /* integer part and length */
|
|
998
|
+
const char *dot, /* location of optional decimal point */
|
|
999
|
+
const char *rest, mpd_ssize_t n_rest, /* remaining part and length */
|
|
1000
|
+
const mpd_spec_t *spec)
|
|
1001
|
+
{
|
|
1002
|
+
mpd_ssize_t n_sep, n_sign, consume;
|
|
1003
|
+
const char *g;
|
|
1004
|
+
int pad = 0;
|
|
1005
|
+
|
|
1006
|
+
n_sign = sign ? 1 : 0;
|
|
1007
|
+
n_sep = (mpd_ssize_t)strlen(spec->sep);
|
|
1008
|
+
/* Initial write index: set to location of '\0' in the output string.
|
|
1009
|
+
* Irrelevant for the first run. */
|
|
1010
|
+
dest->cur = dest->nbytes;
|
|
1011
|
+
dest->nbytes = dest->nchars = 0;
|
|
1012
|
+
|
|
1013
|
+
_mbstr_copy_ascii(dest, rest, n_rest);
|
|
1014
|
+
|
|
1015
|
+
if (dot) {
|
|
1016
|
+
_mbstr_copy_char(dest, dot, (mpd_ssize_t)strlen(dot));
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
g = spec->grouping;
|
|
1020
|
+
consume = *g;
|
|
1021
|
+
while (1) {
|
|
1022
|
+
/* If the group length is 0 or CHAR_MAX or greater than the
|
|
1023
|
+
* number of source bytes, consume all remaining bytes. */
|
|
1024
|
+
if (*g == 0 || *g == CHAR_MAX || consume > n_src) {
|
|
1025
|
+
consume = n_src;
|
|
1026
|
+
}
|
|
1027
|
+
n_src -= consume;
|
|
1028
|
+
if (pad) {
|
|
1029
|
+
_mbstr_copy_pad(dest, consume);
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
_mbstr_copy_ascii(dest, src+n_src, consume);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
if (n_src == 0) {
|
|
1036
|
+
/* Either the real source of intpart digits or the virtual
|
|
1037
|
+
* source of padding zeros is exhausted. */
|
|
1038
|
+
if (spec->align == 'z' &&
|
|
1039
|
+
dest->nchars + n_sign < spec->min_width) {
|
|
1040
|
+
/* Zero padding is set and length < min_width:
|
|
1041
|
+
* Generate n_src additional characters. */
|
|
1042
|
+
n_src = spec->min_width - (dest->nchars + n_sign);
|
|
1043
|
+
/* Next iteration:
|
|
1044
|
+
* case *g == 0 || *g == CHAR_MAX:
|
|
1045
|
+
* consume all padding characters
|
|
1046
|
+
* case consume < g*:
|
|
1047
|
+
* fill remainder of current group
|
|
1048
|
+
* case consume == g*
|
|
1049
|
+
* copying is a no-op */
|
|
1050
|
+
consume = *g - consume;
|
|
1051
|
+
/* Switch on virtual source of zeros. */
|
|
1052
|
+
pad = 1;
|
|
1053
|
+
continue;
|
|
1054
|
+
}
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
if (n_sep > 0) {
|
|
1059
|
+
/* If padding is switched on, separators are counted
|
|
1060
|
+
* as padding characters. This rule does not apply if
|
|
1061
|
+
* the separator would be the first character of the
|
|
1062
|
+
* result string. */
|
|
1063
|
+
if (pad && n_src > 1) n_src -= 1;
|
|
1064
|
+
_mbstr_copy_char(dest, spec->sep, n_sep);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
/* If non-NUL, use the next value for grouping. */
|
|
1068
|
+
if (*g && *(g+1)) g++;
|
|
1069
|
+
consume = *g;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
if (sign) {
|
|
1073
|
+
_mbstr_copy_ascii(dest, sign, 1);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
if (dest->data) {
|
|
1077
|
+
dest->data[dest->nbytes] = '\0';
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/*
|
|
1082
|
+
* Convert a numeric-string to its locale-specific appearance.
|
|
1083
|
+
* The string must have one of these forms:
|
|
1084
|
+
*
|
|
1085
|
+
* 1) [sign] digits [exponent-part]
|
|
1086
|
+
* 2) [sign] digits '.' [digits] [exponent-part]
|
|
1087
|
+
*
|
|
1088
|
+
* Not allowed, since _mpd_to_string() never returns this form:
|
|
1089
|
+
*
|
|
1090
|
+
* 3) [sign] '.' digits [exponent-part]
|
|
1091
|
+
*
|
|
1092
|
+
* Input: result->data := original numeric string (ASCII)
|
|
1093
|
+
* result->bytes := strlen(result->data)
|
|
1094
|
+
* result->nchars := strlen(result->data)
|
|
1095
|
+
*
|
|
1096
|
+
* Output: result->data := modified or original string
|
|
1097
|
+
* result->bytes := strlen(result->data)
|
|
1098
|
+
* result->nchars := number of characters (possibly UTF-8)
|
|
1099
|
+
*/
|
|
1100
|
+
static int
|
|
1101
|
+
_mpd_apply_lconv(mpd_mbstr_t *result, const mpd_spec_t *spec, uint32_t *status)
|
|
1102
|
+
{
|
|
1103
|
+
const char *sign = NULL, *intpart = NULL, *dot = NULL;
|
|
1104
|
+
const char *rest, *dp;
|
|
1105
|
+
char *decstring;
|
|
1106
|
+
mpd_ssize_t n_int, n_rest;
|
|
1107
|
+
|
|
1108
|
+
/* original numeric string */
|
|
1109
|
+
dp = result->data;
|
|
1110
|
+
|
|
1111
|
+
/* sign */
|
|
1112
|
+
if (*dp == '+' || *dp == '-' || *dp == ' ') {
|
|
1113
|
+
sign = dp++;
|
|
1114
|
+
}
|
|
1115
|
+
/* integer part */
|
|
1116
|
+
assert(isdigit((unsigned char)*dp));
|
|
1117
|
+
intpart = dp++;
|
|
1118
|
+
while (isdigit((unsigned char)*dp)) {
|
|
1119
|
+
dp++;
|
|
1120
|
+
}
|
|
1121
|
+
n_int = (mpd_ssize_t)(dp-intpart);
|
|
1122
|
+
/* decimal point */
|
|
1123
|
+
if (*dp == '.') {
|
|
1124
|
+
dp++; dot = spec->dot;
|
|
1125
|
+
}
|
|
1126
|
+
/* rest */
|
|
1127
|
+
rest = dp;
|
|
1128
|
+
n_rest = result->nbytes - (mpd_ssize_t)(dp-result->data);
|
|
1129
|
+
|
|
1130
|
+
if (dot == NULL && (*spec->sep == '\0' || *spec->grouping == '\0')) {
|
|
1131
|
+
/* _mpd_add_sep_dot() would not change anything */
|
|
1132
|
+
return 1;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/* Determine the size of the new decimal string after inserting the
|
|
1136
|
+
* decimal point, optional separators and optional padding. */
|
|
1137
|
+
decstring = result->data;
|
|
1138
|
+
result->data = NULL;
|
|
1139
|
+
_mpd_add_sep_dot(result, sign, intpart, n_int, dot,
|
|
1140
|
+
rest, n_rest, spec);
|
|
1141
|
+
|
|
1142
|
+
result->data = mpd_alloc(result->nbytes+1, 1);
|
|
1143
|
+
if (result->data == NULL) {
|
|
1144
|
+
*status |= MPD_Malloc_error;
|
|
1145
|
+
mpd_free(decstring);
|
|
1146
|
+
return 0;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/* Perform actual writes. */
|
|
1150
|
+
_mpd_add_sep_dot(result, sign, intpart, n_int, dot,
|
|
1151
|
+
rest, n_rest, spec);
|
|
1152
|
+
|
|
1153
|
+
mpd_free(decstring);
|
|
1154
|
+
return 1;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
/* Add padding to the formatted string if necessary. */
|
|
1158
|
+
static int
|
|
1159
|
+
_mpd_add_pad(mpd_mbstr_t *result, const mpd_spec_t *spec, uint32_t *status)
|
|
1160
|
+
{
|
|
1161
|
+
if (result->nchars < spec->min_width) {
|
|
1162
|
+
mpd_ssize_t add_chars, add_bytes;
|
|
1163
|
+
size_t lpad = 0, rpad = 0;
|
|
1164
|
+
size_t n_fill, len, i, j;
|
|
1165
|
+
char align = spec->align;
|
|
1166
|
+
uint8_t err = 0;
|
|
1167
|
+
char *cp;
|
|
1168
|
+
|
|
1169
|
+
n_fill = strlen(spec->fill);
|
|
1170
|
+
add_chars = (spec->min_width - result->nchars);
|
|
1171
|
+
/* max value: MPD_MAX_PREC * 4 */
|
|
1172
|
+
add_bytes = add_chars * (mpd_ssize_t)n_fill;
|
|
1173
|
+
|
|
1174
|
+
cp = result->data = mpd_realloc(result->data,
|
|
1175
|
+
result->nbytes+add_bytes+1,
|
|
1176
|
+
sizeof *result->data, &err);
|
|
1177
|
+
if (err) {
|
|
1178
|
+
*status |= MPD_Malloc_error;
|
|
1179
|
+
mpd_free(result->data);
|
|
1180
|
+
return 0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
if (align == 'z') {
|
|
1184
|
+
align = '=';
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
if (align == '<') {
|
|
1188
|
+
rpad = add_chars;
|
|
1189
|
+
}
|
|
1190
|
+
else if (align == '>' || align == '=') {
|
|
1191
|
+
lpad = add_chars;
|
|
1192
|
+
}
|
|
1193
|
+
else { /* align == '^' */
|
|
1194
|
+
lpad = add_chars/2;
|
|
1195
|
+
rpad = add_chars-lpad;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
len = result->nbytes;
|
|
1199
|
+
if (align == '=' && (*cp == '-' || *cp == '+' || *cp == ' ')) {
|
|
1200
|
+
/* leave sign in the leading position */
|
|
1201
|
+
cp++; len--;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
memmove(cp+n_fill*lpad, cp, len);
|
|
1205
|
+
for (i = 0; i < lpad; i++) {
|
|
1206
|
+
for (j = 0; j < n_fill; j++) {
|
|
1207
|
+
cp[i*n_fill+j] = spec->fill[j];
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
cp += (n_fill*lpad + len);
|
|
1211
|
+
for (i = 0; i < rpad; i++) {
|
|
1212
|
+
for (j = 0; j < n_fill; j++) {
|
|
1213
|
+
cp[i*n_fill+j] = spec->fill[j];
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
result->nbytes += add_bytes;
|
|
1218
|
+
result->nchars += add_chars;
|
|
1219
|
+
result->data[result->nbytes] = '\0';
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
return 1;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/* Round a number to prec digits. The adjusted exponent stays the same
|
|
1226
|
+
or increases by one if rounding up crosses a power of ten boundary.
|
|
1227
|
+
If result->digits would exceed MPD_MAX_PREC+1, MPD_Invalid_operation
|
|
1228
|
+
is set and the result is NaN. */
|
|
1229
|
+
static inline void
|
|
1230
|
+
_mpd_round(mpd_t *result, const mpd_t *a, mpd_ssize_t prec,
|
|
1231
|
+
const mpd_context_t *ctx, uint32_t *status)
|
|
1232
|
+
{
|
|
1233
|
+
mpd_ssize_t exp = a->exp + a->digits - prec;
|
|
1234
|
+
|
|
1235
|
+
if (prec <= 0) {
|
|
1236
|
+
mpd_seterror(result, MPD_Invalid_operation, status); /* GCOV_NOT_REACHED */
|
|
1237
|
+
return; /* GCOV_NOT_REACHED */
|
|
1238
|
+
}
|
|
1239
|
+
if (mpd_isspecial(a) || mpd_iszero(a)) {
|
|
1240
|
+
mpd_qcopy(result, a, status); /* GCOV_NOT_REACHED */
|
|
1241
|
+
return; /* GCOV_NOT_REACHED */
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
mpd_qrescale_fmt(result, a, exp, ctx, status);
|
|
1245
|
+
if (result->digits > prec) {
|
|
1246
|
+
mpd_qrescale_fmt(result, result, exp+1, ctx, status);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/*
|
|
1251
|
+
* Return the string representation of an mpd_t, formatted according to 'spec'.
|
|
1252
|
+
* The format specification is assumed to be valid. Memory errors are indicated
|
|
1253
|
+
* as usual. This function is quiet.
|
|
1254
|
+
*/
|
|
1255
|
+
char *
|
|
1256
|
+
mpd_qformat_spec(const mpd_t *dec, const mpd_spec_t *spec,
|
|
1257
|
+
const mpd_context_t *ctx, uint32_t *status)
|
|
1258
|
+
{
|
|
1259
|
+
mpd_uint_t dt[MPD_MINALLOC_MAX];
|
|
1260
|
+
mpd_t tmp = {MPD_STATIC|MPD_STATIC_DATA,0,0,0,MPD_MINALLOC_MAX,dt};
|
|
1261
|
+
mpd_ssize_t dplace = MPD_DEFAULT_DOTPLACE;
|
|
1262
|
+
mpd_mbstr_t result;
|
|
1263
|
+
mpd_spec_t stackspec;
|
|
1264
|
+
char type = spec->type;
|
|
1265
|
+
int flags = 0;
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
if (spec->min_width > MPD_MAX_PREC) {
|
|
1269
|
+
*status |= MPD_Invalid_operation;
|
|
1270
|
+
return NULL;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
if (isupper((unsigned char)type)) {
|
|
1274
|
+
type = (char)tolower((unsigned char)type);
|
|
1275
|
+
flags |= MPD_FMT_UPPER;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (spec->sign_coerce) {
|
|
1279
|
+
flags |= MPD_FMT_SIGN_COERCE;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
if (spec->sign == ' ') {
|
|
1283
|
+
flags |= MPD_FMT_SIGN_SPACE;
|
|
1284
|
+
}
|
|
1285
|
+
else if (spec->sign == '+') {
|
|
1286
|
+
flags |= MPD_FMT_SIGN_PLUS;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
if (mpd_isspecial(dec)) {
|
|
1290
|
+
if (spec->align == 'z') {
|
|
1291
|
+
stackspec = *spec;
|
|
1292
|
+
stackspec.fill[0] = ' ';
|
|
1293
|
+
stackspec.fill[1] = '\0';
|
|
1294
|
+
stackspec.align = '>';
|
|
1295
|
+
spec = &stackspec;
|
|
1296
|
+
}
|
|
1297
|
+
if (type == '%') {
|
|
1298
|
+
flags |= MPD_FMT_PERCENT;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
uint32_t workstatus = 0;
|
|
1303
|
+
mpd_ssize_t prec;
|
|
1304
|
+
|
|
1305
|
+
switch (type) {
|
|
1306
|
+
case 'g': flags |= MPD_FMT_TOSCI; break;
|
|
1307
|
+
case 'e': flags |= MPD_FMT_EXP; break;
|
|
1308
|
+
case '%': flags |= MPD_FMT_PERCENT;
|
|
1309
|
+
if (!mpd_qcopy(&tmp, dec, status)) {
|
|
1310
|
+
return NULL;
|
|
1311
|
+
}
|
|
1312
|
+
tmp.exp += 2;
|
|
1313
|
+
dec = &tmp;
|
|
1314
|
+
type = 'f'; /* fall through */
|
|
1315
|
+
case 'f': flags |= MPD_FMT_FIXED; break;
|
|
1316
|
+
default: abort(); /* debug: GCOV_NOT_REACHED */
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
if (spec->prec >= 0) {
|
|
1320
|
+
if (spec->prec > MPD_MAX_PREC) {
|
|
1321
|
+
*status |= MPD_Invalid_operation;
|
|
1322
|
+
goto error;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
switch (type) {
|
|
1326
|
+
case 'g':
|
|
1327
|
+
prec = (spec->prec == 0) ? 1 : spec->prec;
|
|
1328
|
+
if (dec->digits > prec) {
|
|
1329
|
+
_mpd_round(&tmp, dec, prec, ctx,
|
|
1330
|
+
&workstatus);
|
|
1331
|
+
dec = &tmp;
|
|
1332
|
+
}
|
|
1333
|
+
break;
|
|
1334
|
+
case 'e':
|
|
1335
|
+
if (mpd_iszero(dec)) {
|
|
1336
|
+
dplace = 1-spec->prec;
|
|
1337
|
+
}
|
|
1338
|
+
else {
|
|
1339
|
+
_mpd_round(&tmp, dec, spec->prec+1, ctx,
|
|
1340
|
+
&workstatus);
|
|
1341
|
+
dec = &tmp;
|
|
1342
|
+
}
|
|
1343
|
+
break;
|
|
1344
|
+
case 'f':
|
|
1345
|
+
mpd_qrescale(&tmp, dec, -spec->prec, ctx,
|
|
1346
|
+
&workstatus);
|
|
1347
|
+
dec = &tmp;
|
|
1348
|
+
break;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
if (type == 'f') {
|
|
1353
|
+
if (mpd_iszero(dec) && dec->exp > 0) {
|
|
1354
|
+
mpd_qrescale(&tmp, dec, 0, ctx, &workstatus);
|
|
1355
|
+
dec = &tmp;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
if (workstatus&MPD_Errors) {
|
|
1360
|
+
*status |= (workstatus&MPD_Errors);
|
|
1361
|
+
goto error;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
/*
|
|
1366
|
+
* At this point, for all scaled or non-scaled decimals:
|
|
1367
|
+
* 1) 1 <= digits <= MAX_PREC+1
|
|
1368
|
+
* 2) adjexp(scaled) = adjexp(orig) [+1]
|
|
1369
|
+
* 3) case 'g': MIN_ETINY <= exp <= MAX_EMAX+1
|
|
1370
|
+
* case 'e': MIN_ETINY-MAX_PREC <= exp <= MAX_EMAX+1
|
|
1371
|
+
* case 'f': MIN_ETINY <= exp <= MAX_EMAX+1
|
|
1372
|
+
* 4) max memory alloc in _mpd_to_string:
|
|
1373
|
+
* case 'g': MAX_PREC+36
|
|
1374
|
+
* case 'e': MAX_PREC+36
|
|
1375
|
+
* case 'f': 2*MPD_MAX_PREC+30
|
|
1376
|
+
*/
|
|
1377
|
+
result.nbytes = _mpd_to_string(&result.data, dec, flags, dplace);
|
|
1378
|
+
result.nchars = result.nbytes;
|
|
1379
|
+
if (result.nbytes < 0) {
|
|
1380
|
+
*status |= MPD_Malloc_error;
|
|
1381
|
+
goto error;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
if (*spec->dot != '\0' && !mpd_isspecial(dec)) {
|
|
1385
|
+
if (result.nchars > MPD_MAX_PREC+36) {
|
|
1386
|
+
/* Since a group length of one is not explicitly
|
|
1387
|
+
* disallowed, ensure that it is always possible to
|
|
1388
|
+
* insert a four byte separator after each digit. */
|
|
1389
|
+
*status |= MPD_Invalid_operation;
|
|
1390
|
+
mpd_free(result.data);
|
|
1391
|
+
goto error;
|
|
1392
|
+
}
|
|
1393
|
+
if (!_mpd_apply_lconv(&result, spec, status)) {
|
|
1394
|
+
goto error;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
if (spec->min_width) {
|
|
1399
|
+
if (!_mpd_add_pad(&result, spec, status)) {
|
|
1400
|
+
goto error;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
mpd_del(&tmp);
|
|
1405
|
+
return result.data;
|
|
1406
|
+
|
|
1407
|
+
error:
|
|
1408
|
+
mpd_del(&tmp);
|
|
1409
|
+
return NULL;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
char *
|
|
1413
|
+
mpd_qformat(const mpd_t *dec, const char *fmt, const mpd_context_t *ctx,
|
|
1414
|
+
uint32_t *status)
|
|
1415
|
+
{
|
|
1416
|
+
mpd_spec_t spec;
|
|
1417
|
+
|
|
1418
|
+
if (!mpd_parse_fmt_str(&spec, fmt, 1)) {
|
|
1419
|
+
*status |= MPD_Invalid_operation;
|
|
1420
|
+
return NULL;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
return mpd_qformat_spec(dec, &spec, ctx, status);
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/*
|
|
1427
|
+
* The specification has a *condition* called Invalid_operation and an
|
|
1428
|
+
* IEEE *signal* called Invalid_operation. The former corresponds to
|
|
1429
|
+
* MPD_Invalid_operation, the latter to MPD_IEEE_Invalid_operation.
|
|
1430
|
+
* MPD_IEEE_Invalid_operation comprises the following conditions:
|
|
1431
|
+
*
|
|
1432
|
+
* [MPD_Conversion_syntax, MPD_Division_impossible, MPD_Division_undefined,
|
|
1433
|
+
* MPD_Fpu_error, MPD_Invalid_context, MPD_Invalid_operation,
|
|
1434
|
+
* MPD_Malloc_error]
|
|
1435
|
+
*
|
|
1436
|
+
* In the following functions, 'flag' denotes the condition, 'signal'
|
|
1437
|
+
* denotes the IEEE signal.
|
|
1438
|
+
*/
|
|
1439
|
+
|
|
1440
|
+
static const char *mpd_flag_string[MPD_NUM_FLAGS] = {
|
|
1441
|
+
"Clamped",
|
|
1442
|
+
"Conversion_syntax",
|
|
1443
|
+
"Division_by_zero",
|
|
1444
|
+
"Division_impossible",
|
|
1445
|
+
"Division_undefined",
|
|
1446
|
+
"Fpu_error",
|
|
1447
|
+
"Inexact",
|
|
1448
|
+
"Invalid_context",
|
|
1449
|
+
"Invalid_operation",
|
|
1450
|
+
"Malloc_error",
|
|
1451
|
+
"Not_implemented",
|
|
1452
|
+
"Overflow",
|
|
1453
|
+
"Rounded",
|
|
1454
|
+
"Subnormal",
|
|
1455
|
+
"Underflow",
|
|
1456
|
+
};
|
|
1457
|
+
|
|
1458
|
+
static const char *mpd_signal_string[MPD_NUM_FLAGS] = {
|
|
1459
|
+
"Clamped",
|
|
1460
|
+
"IEEE_Invalid_operation",
|
|
1461
|
+
"Division_by_zero",
|
|
1462
|
+
"IEEE_Invalid_operation",
|
|
1463
|
+
"IEEE_Invalid_operation",
|
|
1464
|
+
"IEEE_Invalid_operation",
|
|
1465
|
+
"Inexact",
|
|
1466
|
+
"IEEE_Invalid_operation",
|
|
1467
|
+
"IEEE_Invalid_operation",
|
|
1468
|
+
"IEEE_Invalid_operation",
|
|
1469
|
+
"Not_implemented",
|
|
1470
|
+
"Overflow",
|
|
1471
|
+
"Rounded",
|
|
1472
|
+
"Subnormal",
|
|
1473
|
+
"Underflow",
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1476
|
+
/* print conditions to buffer, separated by spaces */
|
|
1477
|
+
int
|
|
1478
|
+
mpd_snprint_flags(char *dest, int nmemb, uint32_t flags)
|
|
1479
|
+
{
|
|
1480
|
+
char *cp;
|
|
1481
|
+
int n, j;
|
|
1482
|
+
|
|
1483
|
+
assert(nmemb >= MPD_MAX_FLAG_STRING);
|
|
1484
|
+
|
|
1485
|
+
*dest = '\0'; cp = dest;
|
|
1486
|
+
for (j = 0; j < MPD_NUM_FLAGS; j++) {
|
|
1487
|
+
if (flags & (1U<<j)) {
|
|
1488
|
+
n = snprintf(cp, nmemb, "%s ", mpd_flag_string[j]);
|
|
1489
|
+
if (n < 0 || n >= nmemb) return -1;
|
|
1490
|
+
cp += n; nmemb -= n;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
if (cp != dest) {
|
|
1495
|
+
*(--cp) = '\0';
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
return (int)(cp-dest);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/* print conditions to buffer, in list form */
|
|
1502
|
+
int
|
|
1503
|
+
mpd_lsnprint_flags(char *dest, int nmemb, uint32_t flags, const char *flag_string[])
|
|
1504
|
+
{
|
|
1505
|
+
char *cp;
|
|
1506
|
+
int n, j;
|
|
1507
|
+
|
|
1508
|
+
assert(nmemb >= MPD_MAX_FLAG_LIST);
|
|
1509
|
+
if (flag_string == NULL) {
|
|
1510
|
+
flag_string = mpd_flag_string;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
*dest = '[';
|
|
1514
|
+
*(dest+1) = '\0';
|
|
1515
|
+
cp = dest+1;
|
|
1516
|
+
--nmemb;
|
|
1517
|
+
|
|
1518
|
+
for (j = 0; j < MPD_NUM_FLAGS; j++) {
|
|
1519
|
+
if (flags & (1U<<j)) {
|
|
1520
|
+
n = snprintf(cp, nmemb, "%s, ", flag_string[j]);
|
|
1521
|
+
if (n < 0 || n >= nmemb) return -1;
|
|
1522
|
+
cp += n; nmemb -= n;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
/* erase the last ", " */
|
|
1527
|
+
if (cp != dest+1) {
|
|
1528
|
+
cp -= 2;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
*cp++ = ']';
|
|
1532
|
+
*cp = '\0';
|
|
1533
|
+
|
|
1534
|
+
return (int)(cp-dest); /* strlen, without NUL terminator */
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
/* print signals to buffer, in list form */
|
|
1538
|
+
int
|
|
1539
|
+
mpd_lsnprint_signals(char *dest, int nmemb, uint32_t flags, const char *signal_string[])
|
|
1540
|
+
{
|
|
1541
|
+
char *cp;
|
|
1542
|
+
int n, j;
|
|
1543
|
+
int ieee_invalid_done = 0;
|
|
1544
|
+
|
|
1545
|
+
assert(nmemb >= MPD_MAX_SIGNAL_LIST);
|
|
1546
|
+
if (signal_string == NULL) {
|
|
1547
|
+
signal_string = mpd_signal_string;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
*dest = '[';
|
|
1551
|
+
*(dest+1) = '\0';
|
|
1552
|
+
cp = dest+1;
|
|
1553
|
+
--nmemb;
|
|
1554
|
+
|
|
1555
|
+
for (j = 0; j < MPD_NUM_FLAGS; j++) {
|
|
1556
|
+
uint32_t f = flags & (1U<<j);
|
|
1557
|
+
if (f) {
|
|
1558
|
+
if (f&MPD_IEEE_Invalid_operation) {
|
|
1559
|
+
if (ieee_invalid_done) {
|
|
1560
|
+
continue;
|
|
1561
|
+
}
|
|
1562
|
+
ieee_invalid_done = 1;
|
|
1563
|
+
}
|
|
1564
|
+
n = snprintf(cp, nmemb, "%s, ", signal_string[j]);
|
|
1565
|
+
if (n < 0 || n >= nmemb) return -1;
|
|
1566
|
+
cp += n; nmemb -= n;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/* erase the last ", " */
|
|
1571
|
+
if (cp != dest+1) {
|
|
1572
|
+
cp -= 2;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
*cp++ = ']';
|
|
1576
|
+
*cp = '\0';
|
|
1577
|
+
|
|
1578
|
+
return (int)(cp-dest); /* strlen, without NUL terminator */
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
/* The following two functions are mainly intended for debugging. */
|
|
1582
|
+
void
|
|
1583
|
+
mpd_fprint(FILE *file, const mpd_t *dec)
|
|
1584
|
+
{
|
|
1585
|
+
char *decstring;
|
|
1586
|
+
|
|
1587
|
+
decstring = mpd_to_sci(dec, 1);
|
|
1588
|
+
if (decstring != NULL) {
|
|
1589
|
+
fprintf(file, "%s\n", decstring);
|
|
1590
|
+
mpd_free(decstring);
|
|
1591
|
+
}
|
|
1592
|
+
else {
|
|
1593
|
+
fputs("mpd_fprint: output error\n", file); /* GCOV_NOT_REACHED */
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
void
|
|
1598
|
+
mpd_print(const mpd_t *dec)
|
|
1599
|
+
{
|
|
1600
|
+
char *decstring;
|
|
1601
|
+
|
|
1602
|
+
decstring = mpd_to_sci(dec, 1);
|
|
1603
|
+
if (decstring != NULL) {
|
|
1604
|
+
printf("%s\n", decstring);
|
|
1605
|
+
mpd_free(decstring);
|
|
1606
|
+
}
|
|
1607
|
+
else {
|
|
1608
|
+
fputs("mpd_fprint: output error\n", stderr); /* GCOV_NOT_REACHED */
|
|
1609
|
+
}
|
|
1610
|
+
}
|