@lakutata/math 0.0.0-stage → 3.1.3
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 +195 -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 +190 -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,1870 @@
|
|
|
1
|
+
// (C) Copyright John Maddock 2006.
|
|
2
|
+
// (C) Copyright Matt Borland 2024.
|
|
3
|
+
// Use, modification and distribution are subject to the
|
|
4
|
+
// Boost Software License, Version 1.0. (See accompanying file
|
|
5
|
+
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
6
|
+
|
|
7
|
+
#ifndef BOOST_MATH_SPECIAL_BETA_HPP
|
|
8
|
+
#define BOOST_MATH_SPECIAL_BETA_HPP
|
|
9
|
+
|
|
10
|
+
#ifdef _MSC_VER
|
|
11
|
+
#pragma once
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
#include <boost/math/tools/config.hpp>
|
|
15
|
+
#include <boost/math/tools/type_traits.hpp>
|
|
16
|
+
#include <boost/math/tools/assert.hpp>
|
|
17
|
+
#include <boost/math/tools/precision.hpp>
|
|
18
|
+
#include <boost/math/tools/numeric_limits.hpp>
|
|
19
|
+
#include <boost/math/tools/cstdint.hpp>
|
|
20
|
+
#include <boost/math/tools/tuple.hpp>
|
|
21
|
+
#include <boost/math/tools/promotion.hpp>
|
|
22
|
+
#include <boost/math/special_functions/gamma.hpp>
|
|
23
|
+
#include <boost/math/special_functions/erf.hpp>
|
|
24
|
+
#include <boost/math/special_functions/log1p.hpp>
|
|
25
|
+
#include <boost/math/special_functions/expm1.hpp>
|
|
26
|
+
#include <boost/math/special_functions/trunc.hpp>
|
|
27
|
+
#include <boost/math/special_functions/lanczos.hpp>
|
|
28
|
+
#include <boost/math/policies/policy.hpp>
|
|
29
|
+
#include <boost/math/policies/error_handling.hpp>
|
|
30
|
+
#include <boost/math/constants/constants.hpp>
|
|
31
|
+
#include <boost/math/special_functions/math_fwd.hpp>
|
|
32
|
+
#include <boost/math/special_functions/binomial.hpp>
|
|
33
|
+
#include <boost/math/special_functions/factorials.hpp>
|
|
34
|
+
#include <boost/math/tools/roots.hpp>
|
|
35
|
+
|
|
36
|
+
namespace boost{ namespace math{
|
|
37
|
+
|
|
38
|
+
namespace detail{
|
|
39
|
+
|
|
40
|
+
//
|
|
41
|
+
// Implementation of Beta(a,b) using the Lanczos approximation:
|
|
42
|
+
//
|
|
43
|
+
template <class T, class Lanczos, class Policy>
|
|
44
|
+
BOOST_MATH_GPU_ENABLED T beta_imp(T a, T b, const Lanczos&, const Policy& pol)
|
|
45
|
+
{
|
|
46
|
+
BOOST_MATH_STD_USING // for ADL of std names
|
|
47
|
+
|
|
48
|
+
if(a <= 0)
|
|
49
|
+
return policies::raise_domain_error<T>("boost::math::beta<%1%>(%1%,%1%)", "The arguments to the beta function must be greater than zero (got a=%1%).", a, pol);
|
|
50
|
+
if(b <= 0)
|
|
51
|
+
return policies::raise_domain_error<T>("boost::math::beta<%1%>(%1%,%1%)", "The arguments to the beta function must be greater than zero (got b=%1%).", b, pol);
|
|
52
|
+
|
|
53
|
+
T result; // LCOV_EXCL_LINE
|
|
54
|
+
|
|
55
|
+
T prefix = 1;
|
|
56
|
+
T c = a + b;
|
|
57
|
+
|
|
58
|
+
// Special cases:
|
|
59
|
+
if((c == a) && (b < tools::epsilon<T>()))
|
|
60
|
+
return 1 / b;
|
|
61
|
+
else if((c == b) && (a < tools::epsilon<T>()))
|
|
62
|
+
return 1 / a;
|
|
63
|
+
if(b == 1)
|
|
64
|
+
return 1/a;
|
|
65
|
+
else if(a == 1)
|
|
66
|
+
return 1/b;
|
|
67
|
+
else if(c < tools::epsilon<T>())
|
|
68
|
+
{
|
|
69
|
+
result = c / a;
|
|
70
|
+
result /= b;
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
//
|
|
76
|
+
// This code appears to be no longer necessary: it was
|
|
77
|
+
// used to offset errors introduced from the Lanczos
|
|
78
|
+
// approximation, but the current Lanczos approximations
|
|
79
|
+
// are sufficiently accurate for all z that we can ditch
|
|
80
|
+
// this. It remains in the file for future reference...
|
|
81
|
+
//
|
|
82
|
+
// If a or b are less than 1, shift to greater than 1:
|
|
83
|
+
if(a < 1)
|
|
84
|
+
{
|
|
85
|
+
prefix *= c / a;
|
|
86
|
+
c += 1;
|
|
87
|
+
a += 1;
|
|
88
|
+
}
|
|
89
|
+
if(b < 1)
|
|
90
|
+
{
|
|
91
|
+
prefix *= c / b;
|
|
92
|
+
c += 1;
|
|
93
|
+
b += 1;
|
|
94
|
+
}
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
if(a < b)
|
|
98
|
+
{
|
|
99
|
+
BOOST_MATH_GPU_SAFE_SWAP(a, b);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Lanczos calculation:
|
|
103
|
+
T agh = static_cast<T>(a + Lanczos::g() - 0.5f);
|
|
104
|
+
T bgh = static_cast<T>(b + Lanczos::g() - 0.5f);
|
|
105
|
+
T cgh = static_cast<T>(c + Lanczos::g() - 0.5f);
|
|
106
|
+
result = Lanczos::lanczos_sum_expG_scaled(a) * (Lanczos::lanczos_sum_expG_scaled(b) / Lanczos::lanczos_sum_expG_scaled(c));
|
|
107
|
+
T ambh = a - 0.5f - b;
|
|
108
|
+
if((fabs(b * ambh) < (cgh * 100)) && (a > 100))
|
|
109
|
+
{
|
|
110
|
+
// Special case where the base of the power term is close to 1
|
|
111
|
+
// compute (1+x)^y instead:
|
|
112
|
+
result *= exp(ambh * boost::math::log1p(-b / cgh, pol));
|
|
113
|
+
}
|
|
114
|
+
else
|
|
115
|
+
{
|
|
116
|
+
result *= pow(agh / cgh, a - T(0.5) - b);
|
|
117
|
+
}
|
|
118
|
+
if(cgh > 1e10f)
|
|
119
|
+
// this avoids possible overflow, but appears to be marginally less accurate:
|
|
120
|
+
result *= pow((agh / cgh) * (bgh / cgh), b);
|
|
121
|
+
else
|
|
122
|
+
result *= pow((agh * bgh) / (cgh * cgh), b);
|
|
123
|
+
result *= sqrt(boost::math::constants::e<T>() / bgh);
|
|
124
|
+
|
|
125
|
+
// If a and b were originally less than 1 we need to scale the result:
|
|
126
|
+
result *= prefix;
|
|
127
|
+
|
|
128
|
+
return result;
|
|
129
|
+
} // template <class T, class Lanczos> beta_imp(T a, T b, const Lanczos&)
|
|
130
|
+
|
|
131
|
+
//
|
|
132
|
+
// Generic implementation of Beta(a,b) without Lanczos approximation support
|
|
133
|
+
// (Caution this is slow!!!):
|
|
134
|
+
//
|
|
135
|
+
#ifndef BOOST_MATH_HAS_GPU_SUPPORT
|
|
136
|
+
template <class T, class Policy>
|
|
137
|
+
BOOST_MATH_GPU_ENABLED T beta_imp(T a, T b, const lanczos::undefined_lanczos& l, const Policy& pol)
|
|
138
|
+
{
|
|
139
|
+
BOOST_MATH_STD_USING
|
|
140
|
+
|
|
141
|
+
if(a <= 0)
|
|
142
|
+
return policies::raise_domain_error<T>("boost::math::beta<%1%>(%1%,%1%)", "The arguments to the beta function must be greater than zero (got a=%1%).", a, pol);
|
|
143
|
+
if(b <= 0)
|
|
144
|
+
return policies::raise_domain_error<T>("boost::math::beta<%1%>(%1%,%1%)", "The arguments to the beta function must be greater than zero (got b=%1%).", b, pol);
|
|
145
|
+
|
|
146
|
+
const T c = a + b;
|
|
147
|
+
|
|
148
|
+
// Special cases:
|
|
149
|
+
if ((c == a) && (b < tools::epsilon<T>()))
|
|
150
|
+
return 1 / b;
|
|
151
|
+
else if ((c == b) && (a < tools::epsilon<T>()))
|
|
152
|
+
return 1 / a;
|
|
153
|
+
if (b == 1)
|
|
154
|
+
return 1 / a;
|
|
155
|
+
else if (a == 1)
|
|
156
|
+
return 1 / b;
|
|
157
|
+
else if (c < tools::epsilon<T>())
|
|
158
|
+
{
|
|
159
|
+
T result = c / a;
|
|
160
|
+
result /= b;
|
|
161
|
+
return result;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Regular cases start here:
|
|
165
|
+
const T min_sterling = minimum_argument_for_bernoulli_recursion<T>();
|
|
166
|
+
|
|
167
|
+
long shift_a = 0;
|
|
168
|
+
long shift_b = 0;
|
|
169
|
+
|
|
170
|
+
if(a < min_sterling)
|
|
171
|
+
shift_a = 1 + ltrunc(min_sterling - a);
|
|
172
|
+
if(b < min_sterling)
|
|
173
|
+
shift_b = 1 + ltrunc(min_sterling - b);
|
|
174
|
+
long shift_c = shift_a + shift_b;
|
|
175
|
+
|
|
176
|
+
if ((shift_a == 0) && (shift_b == 0))
|
|
177
|
+
{
|
|
178
|
+
return pow(a / c, a) * pow(b / c, b) * scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol) / scaled_tgamma_no_lanczos(c, pol);
|
|
179
|
+
}
|
|
180
|
+
else if ((a < 1) && (b < 1))
|
|
181
|
+
{
|
|
182
|
+
return boost::math::tgamma(a, pol) * (boost::math::tgamma(b, pol) / boost::math::tgamma(c));
|
|
183
|
+
}
|
|
184
|
+
else if(a < 1)
|
|
185
|
+
return boost::math::tgamma(a, pol) * boost::math::tgamma_delta_ratio(b, a, pol);
|
|
186
|
+
else if(b < 1)
|
|
187
|
+
return boost::math::tgamma(b, pol) * boost::math::tgamma_delta_ratio(a, b, pol);
|
|
188
|
+
else
|
|
189
|
+
{
|
|
190
|
+
T result = beta_imp(T(a + shift_a), T(b + shift_b), l, pol);
|
|
191
|
+
//
|
|
192
|
+
// Recursion:
|
|
193
|
+
//
|
|
194
|
+
for (long i = 0; i < shift_c; ++i)
|
|
195
|
+
{
|
|
196
|
+
result *= c + i;
|
|
197
|
+
if (i < shift_a)
|
|
198
|
+
result /= a + i;
|
|
199
|
+
if (i < shift_b)
|
|
200
|
+
result /= b + i;
|
|
201
|
+
}
|
|
202
|
+
return result;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
} // template <class T>T beta_imp(T a, T b, const lanczos::undefined_lanczos& l)
|
|
206
|
+
#endif
|
|
207
|
+
|
|
208
|
+
//
|
|
209
|
+
// Compute the leading power terms in the incomplete Beta:
|
|
210
|
+
//
|
|
211
|
+
// (x^a)(y^b)/Beta(a,b) when normalised, and
|
|
212
|
+
// (x^a)(y^b) otherwise.
|
|
213
|
+
//
|
|
214
|
+
// Almost all of the error in the incomplete beta comes from this
|
|
215
|
+
// function: particularly when a and b are large. Computing large
|
|
216
|
+
// powers are *hard* though, and using logarithms just leads to
|
|
217
|
+
// horrendous cancellation errors.
|
|
218
|
+
//
|
|
219
|
+
template <class T, class Lanczos, class Policy>
|
|
220
|
+
BOOST_MATH_GPU_ENABLED T ibeta_power_terms(T a,
|
|
221
|
+
T b,
|
|
222
|
+
T x,
|
|
223
|
+
T y,
|
|
224
|
+
const Lanczos&,
|
|
225
|
+
bool normalised,
|
|
226
|
+
const Policy& pol,
|
|
227
|
+
T prefix = 1,
|
|
228
|
+
const char* function = "boost::math::ibeta<%1%>(%1%, %1%, %1%)")
|
|
229
|
+
{
|
|
230
|
+
BOOST_MATH_STD_USING
|
|
231
|
+
|
|
232
|
+
if(!normalised)
|
|
233
|
+
{
|
|
234
|
+
// can we do better here?
|
|
235
|
+
return pow(x, a) * pow(y, b);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
T result; // LCOV_EXCL_LINE
|
|
239
|
+
|
|
240
|
+
T c = a + b;
|
|
241
|
+
|
|
242
|
+
// combine power terms with Lanczos approximation:
|
|
243
|
+
T gh = Lanczos::g() - 0.5f;
|
|
244
|
+
T agh = static_cast<T>(a + gh);
|
|
245
|
+
T bgh = static_cast<T>(b + gh);
|
|
246
|
+
T cgh = static_cast<T>(c + gh);
|
|
247
|
+
if ((a < tools::min_value<T>()) || (b < tools::min_value<T>()))
|
|
248
|
+
result = 0; // denominator overflows in this case
|
|
249
|
+
else
|
|
250
|
+
result = Lanczos::lanczos_sum_expG_scaled(c) / (Lanczos::lanczos_sum_expG_scaled(a) * Lanczos::lanczos_sum_expG_scaled(b));
|
|
251
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
252
|
+
result *= prefix;
|
|
253
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
254
|
+
// combine with the leftover terms from the Lanczos approximation:
|
|
255
|
+
result *= sqrt(bgh / boost::math::constants::e<T>());
|
|
256
|
+
result *= sqrt(agh / cgh);
|
|
257
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
258
|
+
|
|
259
|
+
// l1 and l2 are the base of the exponents minus one:
|
|
260
|
+
T l1 = ((x * b - y * a) - y * gh) / agh;
|
|
261
|
+
T l2 = ((y * a - x * b) - x * gh) / bgh;
|
|
262
|
+
if((BOOST_MATH_GPU_SAFE_MIN(fabs(l1), fabs(l2)) < 0.2))
|
|
263
|
+
{
|
|
264
|
+
// when the base of the exponent is very near 1 we get really
|
|
265
|
+
// gross errors unless extra care is taken:
|
|
266
|
+
if((l1 * l2 > 0) || (BOOST_MATH_GPU_SAFE_MIN(a, b) < 1))
|
|
267
|
+
{
|
|
268
|
+
//
|
|
269
|
+
// This first branch handles the simple cases where either:
|
|
270
|
+
//
|
|
271
|
+
// * The two power terms both go in the same direction
|
|
272
|
+
// (towards zero or towards infinity). In this case if either
|
|
273
|
+
// term overflows or underflows, then the product of the two must
|
|
274
|
+
// do so also.
|
|
275
|
+
// *Alternatively if one exponent is less than one, then we
|
|
276
|
+
// can't productively use it to eliminate overflow or underflow
|
|
277
|
+
// from the other term. Problems with spurious overflow/underflow
|
|
278
|
+
// can't be ruled out in this case, but it is *very* unlikely
|
|
279
|
+
// since one of the power terms will evaluate to a number close to 1.
|
|
280
|
+
//
|
|
281
|
+
if(fabs(l1) < 0.1)
|
|
282
|
+
{
|
|
283
|
+
result *= exp(a * boost::math::log1p(l1, pol));
|
|
284
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
285
|
+
}
|
|
286
|
+
else
|
|
287
|
+
{
|
|
288
|
+
result *= pow((x * cgh) / agh, a);
|
|
289
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
290
|
+
}
|
|
291
|
+
if(fabs(l2) < 0.1)
|
|
292
|
+
{
|
|
293
|
+
result *= exp(b * boost::math::log1p(l2, pol));
|
|
294
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
295
|
+
}
|
|
296
|
+
else
|
|
297
|
+
{
|
|
298
|
+
result *= pow((y * cgh) / bgh, b);
|
|
299
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
else if(BOOST_MATH_GPU_SAFE_MAX(fabs(l1), fabs(l2)) < 0.5)
|
|
303
|
+
{
|
|
304
|
+
//
|
|
305
|
+
// Both exponents are near one and both the exponents are
|
|
306
|
+
// greater than one and further these two
|
|
307
|
+
// power terms tend in opposite directions (one towards zero,
|
|
308
|
+
// the other towards infinity), so we have to combine the terms
|
|
309
|
+
// to avoid any risk of overflow or underflow.
|
|
310
|
+
//
|
|
311
|
+
// We do this by moving one power term inside the other, we have:
|
|
312
|
+
//
|
|
313
|
+
// (1 + l1)^a * (1 + l2)^b
|
|
314
|
+
// = ((1 + l1)*(1 + l2)^(b/a))^a
|
|
315
|
+
// = (1 + l1 + l3 + l1*l3)^a ; l3 = (1 + l2)^(b/a) - 1
|
|
316
|
+
// = exp((b/a) * log(1 + l2)) - 1
|
|
317
|
+
//
|
|
318
|
+
// The tricky bit is deciding which term to move inside :-)
|
|
319
|
+
// By preference we move the larger term inside, so that the
|
|
320
|
+
// size of the largest exponent is reduced. However, that can
|
|
321
|
+
// only be done as long as l3 (see above) is also small.
|
|
322
|
+
//
|
|
323
|
+
bool small_a = a < b;
|
|
324
|
+
T ratio = b / a;
|
|
325
|
+
if((small_a && (ratio * l2 < 0.1)) || (!small_a && (l1 / ratio > 0.1)))
|
|
326
|
+
{
|
|
327
|
+
T l3 = boost::math::expm1(ratio * boost::math::log1p(l2, pol), pol);
|
|
328
|
+
l3 = l1 + l3 + l3 * l1;
|
|
329
|
+
l3 = a * boost::math::log1p(l3, pol);
|
|
330
|
+
result *= exp(l3);
|
|
331
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
332
|
+
}
|
|
333
|
+
else
|
|
334
|
+
{
|
|
335
|
+
T l3 = boost::math::expm1(boost::math::log1p(l1, pol) / ratio, pol);
|
|
336
|
+
l3 = l2 + l3 + l3 * l2;
|
|
337
|
+
l3 = b * boost::math::log1p(l3, pol);
|
|
338
|
+
result *= exp(l3);
|
|
339
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
else if(fabs(l1) < fabs(l2))
|
|
343
|
+
{
|
|
344
|
+
// First base near 1 only:
|
|
345
|
+
T l = a * boost::math::log1p(l1, pol)
|
|
346
|
+
+ b * log((y * cgh) / bgh);
|
|
347
|
+
if((l <= tools::log_min_value<T>()) || (l >= tools::log_max_value<T>()))
|
|
348
|
+
{
|
|
349
|
+
l += log(result);
|
|
350
|
+
if(l >= tools::log_max_value<T>())
|
|
351
|
+
return policies::raise_overflow_error<T>(function, nullptr, pol); // LCOV_EXCL_LINE we can probably never get here, probably!
|
|
352
|
+
result = exp(l);
|
|
353
|
+
}
|
|
354
|
+
else
|
|
355
|
+
result *= exp(l);
|
|
356
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
357
|
+
}
|
|
358
|
+
else
|
|
359
|
+
{
|
|
360
|
+
// Second base near 1 only:
|
|
361
|
+
T l = b * boost::math::log1p(l2, pol)
|
|
362
|
+
+ a * log((x * cgh) / agh);
|
|
363
|
+
if((l <= tools::log_min_value<T>()) || (l >= tools::log_max_value<T>()))
|
|
364
|
+
{
|
|
365
|
+
l += log(result);
|
|
366
|
+
if(l >= tools::log_max_value<T>())
|
|
367
|
+
return policies::raise_overflow_error<T>(function, nullptr, pol); // LCOV_EXCL_LINE we can probably never get here, probably!
|
|
368
|
+
result = exp(l);
|
|
369
|
+
}
|
|
370
|
+
else
|
|
371
|
+
result *= exp(l);
|
|
372
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
else
|
|
376
|
+
{
|
|
377
|
+
// general case:
|
|
378
|
+
T b1 = (x * cgh) / agh;
|
|
379
|
+
T b2 = (y * cgh) / bgh;
|
|
380
|
+
l1 = a * log(b1);
|
|
381
|
+
l2 = b * log(b2);
|
|
382
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(b1);
|
|
383
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(b2);
|
|
384
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(l1);
|
|
385
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(l2);
|
|
386
|
+
if((l1 >= tools::log_max_value<T>())
|
|
387
|
+
|| (l1 <= tools::log_min_value<T>())
|
|
388
|
+
|| (l2 >= tools::log_max_value<T>())
|
|
389
|
+
|| (l2 <= tools::log_min_value<T>())
|
|
390
|
+
)
|
|
391
|
+
{
|
|
392
|
+
// Oops, under/overflow, sidestep if we can:
|
|
393
|
+
if(a < b)
|
|
394
|
+
{
|
|
395
|
+
T p1 = pow(b2, b / a);
|
|
396
|
+
T l3 = (b1 != 0) && (p1 != 0) ? (a * (log(b1) + log(p1))) : tools::max_value<T>(); // arbitrary large value if the logs would fail!
|
|
397
|
+
if((l3 < tools::log_max_value<T>())
|
|
398
|
+
&& (l3 > tools::log_min_value<T>()))
|
|
399
|
+
{
|
|
400
|
+
result *= pow(p1 * b1, a);
|
|
401
|
+
}
|
|
402
|
+
else
|
|
403
|
+
{
|
|
404
|
+
l2 += l1 + log(result);
|
|
405
|
+
if(l2 >= tools::log_max_value<T>())
|
|
406
|
+
return policies::raise_overflow_error<T>(function, nullptr, pol); // LCOV_EXCL_LINE we can probably never get here, probably!
|
|
407
|
+
result = exp(l2);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
else
|
|
411
|
+
{
|
|
412
|
+
// This protects against spurious overflow in a/b:
|
|
413
|
+
T p1 = (b1 < 1) && (b < 1) && (tools::max_value<T>() * b < a) ? static_cast<T>(0) : static_cast<T>(pow(b1, a / b));
|
|
414
|
+
T l3 = (p1 != 0) && (b2 != 0) ? (log(p1) + log(b2)) * b : tools::max_value<T>(); // arbitrary large value if the logs would fail!
|
|
415
|
+
if((l3 < tools::log_max_value<T>())
|
|
416
|
+
&& (l3 > tools::log_min_value<T>()))
|
|
417
|
+
{
|
|
418
|
+
result *= pow(p1 * b2, b);
|
|
419
|
+
}
|
|
420
|
+
else if(result != 0) // we can elude the calculation below if we're already going to be zero
|
|
421
|
+
{
|
|
422
|
+
l2 += l1 + log(result);
|
|
423
|
+
if(l2 >= tools::log_max_value<T>())
|
|
424
|
+
return policies::raise_overflow_error<T>(function, nullptr, pol); // LCOV_EXCL_LINE we can probably never get here, probably!
|
|
425
|
+
result = exp(l2);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
429
|
+
}
|
|
430
|
+
else
|
|
431
|
+
{
|
|
432
|
+
// finally the normal case:
|
|
433
|
+
result *= pow(b1, a) * pow(b2, b);
|
|
434
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
439
|
+
|
|
440
|
+
if (0 == result)
|
|
441
|
+
{
|
|
442
|
+
if ((a > 1) && (x == 0))
|
|
443
|
+
return result; // true zero LCOV_EXCL_LINE we can probably never get here
|
|
444
|
+
if ((b > 1) && (y == 0))
|
|
445
|
+
return result; // true zero LCOV_EXCL_LINE we can probably never get here
|
|
446
|
+
return boost::math::policies::raise_underflow_error<T>(function, nullptr, pol);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
return result;
|
|
450
|
+
}
|
|
451
|
+
//
|
|
452
|
+
// Compute the leading power terms in the incomplete Beta:
|
|
453
|
+
//
|
|
454
|
+
// (x^a)(y^b)/Beta(a,b) when normalised, and
|
|
455
|
+
// (x^a)(y^b) otherwise.
|
|
456
|
+
//
|
|
457
|
+
// Almost all of the error in the incomplete beta comes from this
|
|
458
|
+
// function: particularly when a and b are large. Computing large
|
|
459
|
+
// powers are *hard* though, and using logarithms just leads to
|
|
460
|
+
// horrendous cancellation errors.
|
|
461
|
+
//
|
|
462
|
+
// This version is generic, slow, and does not use the Lanczos approximation.
|
|
463
|
+
//
|
|
464
|
+
#ifndef BOOST_MATH_HAS_GPU_SUPPORT
|
|
465
|
+
template <class T, class Policy>
|
|
466
|
+
BOOST_MATH_GPU_ENABLED T ibeta_power_terms(T a,
|
|
467
|
+
T b,
|
|
468
|
+
T x,
|
|
469
|
+
T y,
|
|
470
|
+
const boost::math::lanczos::undefined_lanczos& l,
|
|
471
|
+
bool normalised,
|
|
472
|
+
const Policy& pol,
|
|
473
|
+
T prefix = 1,
|
|
474
|
+
const char* = "boost::math::ibeta<%1%>(%1%, %1%, %1%)")
|
|
475
|
+
{
|
|
476
|
+
BOOST_MATH_STD_USING
|
|
477
|
+
if(!normalised)
|
|
478
|
+
{
|
|
479
|
+
return prefix * pow(x, a) * pow(y, b);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
T c = a + b;
|
|
483
|
+
|
|
484
|
+
const T min_sterling = minimum_argument_for_bernoulli_recursion<T>();
|
|
485
|
+
|
|
486
|
+
long shift_a = 0;
|
|
487
|
+
long shift_b = 0;
|
|
488
|
+
|
|
489
|
+
if (a < min_sterling)
|
|
490
|
+
shift_a = 1 + ltrunc(min_sterling - a);
|
|
491
|
+
if (b < min_sterling)
|
|
492
|
+
shift_b = 1 + ltrunc(min_sterling - b);
|
|
493
|
+
|
|
494
|
+
if ((shift_a == 0) && (shift_b == 0))
|
|
495
|
+
{
|
|
496
|
+
T power1, power2;
|
|
497
|
+
bool need_logs = false;
|
|
498
|
+
if (a < b)
|
|
499
|
+
{
|
|
500
|
+
BOOST_MATH_IF_CONSTEXPR(boost::math::numeric_limits<T>::has_infinity)
|
|
501
|
+
{
|
|
502
|
+
power1 = pow((x * y * c * c) / (a * b), a);
|
|
503
|
+
power2 = pow((y * c) / b, b - a);
|
|
504
|
+
}
|
|
505
|
+
else
|
|
506
|
+
{
|
|
507
|
+
// We calculate these logs purely so we can check for overflow in the power functions
|
|
508
|
+
T l1 = log((x * y * c * c) / (a * b));
|
|
509
|
+
T l2 = log((y * c) / b);
|
|
510
|
+
if ((l1 * a > tools::log_min_value<T>()) && (l1 * a < tools::log_max_value<T>()) && (l2 * (b - a) < tools::log_max_value<T>()) && (l2 * (b - a) > tools::log_min_value<T>()))
|
|
511
|
+
{
|
|
512
|
+
power1 = pow((x * y * c * c) / (a * b), a);
|
|
513
|
+
power2 = pow((y * c) / b, b - a);
|
|
514
|
+
}
|
|
515
|
+
else
|
|
516
|
+
{
|
|
517
|
+
need_logs = true;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
else
|
|
522
|
+
{
|
|
523
|
+
BOOST_MATH_IF_CONSTEXPR(boost::math::numeric_limits<T>::has_infinity)
|
|
524
|
+
{
|
|
525
|
+
power1 = pow((x * y * c * c) / (a * b), b);
|
|
526
|
+
power2 = pow((x * c) / a, a - b);
|
|
527
|
+
}
|
|
528
|
+
else
|
|
529
|
+
{
|
|
530
|
+
// We calculate these logs purely so we can check for overflow in the power functions
|
|
531
|
+
T l1 = log((x * y * c * c) / (a * b)) * b;
|
|
532
|
+
T l2 = log((x * c) / a) * (a - b);
|
|
533
|
+
if ((l1 * a > tools::log_min_value<T>()) && (l1 * a < tools::log_max_value<T>()) && (l2 * (b - a) < tools::log_max_value<T>()) && (l2 * (b - a) > tools::log_min_value<T>()))
|
|
534
|
+
{
|
|
535
|
+
power1 = pow((x * y * c * c) / (a * b), b);
|
|
536
|
+
power2 = pow((x * c) / a, a - b);
|
|
537
|
+
}
|
|
538
|
+
else
|
|
539
|
+
need_logs = true;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
BOOST_MATH_IF_CONSTEXPR(boost::math::numeric_limits<T>::has_infinity)
|
|
543
|
+
{
|
|
544
|
+
if (!(boost::math::isnormal)(power1) || !(boost::math::isnormal)(power2))
|
|
545
|
+
{
|
|
546
|
+
need_logs = true;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
if (need_logs)
|
|
550
|
+
{
|
|
551
|
+
//
|
|
552
|
+
// We want:
|
|
553
|
+
//
|
|
554
|
+
// (xc / a)^a (yc / b)^b
|
|
555
|
+
//
|
|
556
|
+
// But we know that one or other term will over / underflow and combining the logs will be next to useless as that will cause significant cancellation.
|
|
557
|
+
// If we assume b > a and express z ^ b as(z ^ b / a) ^ a with z = (yc / b) then we can move one power term inside the other :
|
|
558
|
+
//
|
|
559
|
+
// ((xc / a) * (yc / b)^(b / a))^a
|
|
560
|
+
//
|
|
561
|
+
// However, we're not quite there yet, as the term being exponentiated is quite likely to be close to unity, so let:
|
|
562
|
+
//
|
|
563
|
+
// xc / a = 1 + (xb - ya) / a
|
|
564
|
+
//
|
|
565
|
+
// analogously let :
|
|
566
|
+
//
|
|
567
|
+
// 1 + p = (yc / b) ^ (b / a) = 1 + expm1((b / a) * log1p((ya - xb) / b))
|
|
568
|
+
//
|
|
569
|
+
// so putting the two together we have :
|
|
570
|
+
//
|
|
571
|
+
// exp(a * log1p((xb - ya) / a + p + p(xb - ya) / a))
|
|
572
|
+
//
|
|
573
|
+
// Analogously, when a > b we can just swap all the terms around.
|
|
574
|
+
//
|
|
575
|
+
// Finally, there are a few cases (x or y is unity) when the above logic can't be used
|
|
576
|
+
// or where there is no logarithmic cancellation and accuracy is better just using
|
|
577
|
+
// the regular formula:
|
|
578
|
+
//
|
|
579
|
+
T xc_a = x * c / a;
|
|
580
|
+
T yc_b = y * c / b;
|
|
581
|
+
if ((x == 1) || (y == 1) || (fabs(xc_a - 1) > 0.25) || (fabs(yc_b - 1) > 0.25))
|
|
582
|
+
{
|
|
583
|
+
// The above logic fails, the result is almost certainly zero:
|
|
584
|
+
power1 = exp(log(xc_a) * a + log(yc_b) * b);
|
|
585
|
+
power2 = 1;
|
|
586
|
+
}
|
|
587
|
+
else if (b > a)
|
|
588
|
+
{
|
|
589
|
+
T p = boost::math::expm1((b / a) * boost::math::log1p((y * a - x * b) / b));
|
|
590
|
+
power1 = exp(a * boost::math::log1p((x * b - y * a) / a + p * (x * c / a)));
|
|
591
|
+
power2 = 1;
|
|
592
|
+
}
|
|
593
|
+
else
|
|
594
|
+
{
|
|
595
|
+
T p = boost::math::expm1((a / b) * boost::math::log1p((x * b - y * a) / a));
|
|
596
|
+
power1 = exp(b * boost::math::log1p((y * a - x * b) / b + p * (y * c / b)));
|
|
597
|
+
power2 = 1;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
return prefix * power1 * power2 * scaled_tgamma_no_lanczos(c, pol) / (scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol));
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
T power1 = pow(x, a);
|
|
604
|
+
T power2 = pow(y, b);
|
|
605
|
+
T bet = beta_imp(a, b, l, pol);
|
|
606
|
+
|
|
607
|
+
if(!(boost::math::isnormal)(power1) || !(boost::math::isnormal)(power2) || !(boost::math::isnormal)(bet))
|
|
608
|
+
{
|
|
609
|
+
int shift_c = shift_a + shift_b;
|
|
610
|
+
T result = ibeta_power_terms(T(a + shift_a), T(b + shift_b), x, y, l, normalised, pol, prefix);
|
|
611
|
+
if ((boost::math::isnormal)(result))
|
|
612
|
+
{
|
|
613
|
+
for (int i = 0; i < shift_c; ++i)
|
|
614
|
+
{
|
|
615
|
+
result /= c + i;
|
|
616
|
+
if (i < shift_a)
|
|
617
|
+
{
|
|
618
|
+
result *= a + i;
|
|
619
|
+
result /= x;
|
|
620
|
+
}
|
|
621
|
+
if (i < shift_b)
|
|
622
|
+
{
|
|
623
|
+
result *= b + i;
|
|
624
|
+
result /= y;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return prefix * result;
|
|
628
|
+
}
|
|
629
|
+
else
|
|
630
|
+
{
|
|
631
|
+
T log_result = log(x) * a + log(y) * b + log(prefix);
|
|
632
|
+
if ((boost::math::isnormal)(bet))
|
|
633
|
+
log_result -= log(bet);
|
|
634
|
+
else
|
|
635
|
+
log_result += boost::math::lgamma(c, pol) - boost::math::lgamma(a, pol) - boost::math::lgamma(b, pol);
|
|
636
|
+
return exp(log_result);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
return prefix * power1 * (power2 / bet);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
#endif
|
|
643
|
+
//
|
|
644
|
+
// Series approximation to the incomplete beta:
|
|
645
|
+
//
|
|
646
|
+
template <class T>
|
|
647
|
+
struct ibeta_series_t
|
|
648
|
+
{
|
|
649
|
+
typedef T result_type;
|
|
650
|
+
BOOST_MATH_GPU_ENABLED ibeta_series_t(T a_, T b_, T x_, T mult) : result(mult), x(x_), apn(a_), poch(1-b_), n(1) {}
|
|
651
|
+
BOOST_MATH_GPU_ENABLED T operator()()
|
|
652
|
+
{
|
|
653
|
+
T r = result / apn;
|
|
654
|
+
apn += 1;
|
|
655
|
+
result *= poch * x / n;
|
|
656
|
+
++n;
|
|
657
|
+
poch += 1;
|
|
658
|
+
return r;
|
|
659
|
+
}
|
|
660
|
+
private:
|
|
661
|
+
T result, x, apn, poch;
|
|
662
|
+
int n;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
template <class T, class Lanczos, class Policy>
|
|
666
|
+
BOOST_MATH_GPU_ENABLED T ibeta_series(T a, T b, T x, T s0, const Lanczos&, bool normalised, T* p_derivative, T y, const Policy& pol)
|
|
667
|
+
{
|
|
668
|
+
BOOST_MATH_STD_USING
|
|
669
|
+
|
|
670
|
+
T result;
|
|
671
|
+
|
|
672
|
+
BOOST_MATH_ASSERT((p_derivative == 0) || normalised);
|
|
673
|
+
|
|
674
|
+
if(normalised)
|
|
675
|
+
{
|
|
676
|
+
T c = a + b;
|
|
677
|
+
|
|
678
|
+
// incomplete beta power term, combined with the Lanczos approximation:
|
|
679
|
+
T agh = static_cast<T>(a + Lanczos::g() - 0.5f);
|
|
680
|
+
T bgh = static_cast<T>(b + Lanczos::g() - 0.5f);
|
|
681
|
+
T cgh = static_cast<T>(c + Lanczos::g() - 0.5f);
|
|
682
|
+
if ((a < tools::min_value<T>()) || (b < tools::min_value<T>()))
|
|
683
|
+
result = 0; // denorms cause overflow in the Lanzos series, result will be zero anyway
|
|
684
|
+
else
|
|
685
|
+
{
|
|
686
|
+
T l1 = Lanczos::lanczos_sum_expG_scaled(c);
|
|
687
|
+
T l2 = Lanczos::lanczos_sum_expG_scaled(a);
|
|
688
|
+
T l3 = Lanczos::lanczos_sum_expG_scaled(b);
|
|
689
|
+
if ((l2 > 1) && (l3 > 1) && (tools::max_value<T>() / l2 < l3))
|
|
690
|
+
result = (l1 / l2) / l3;
|
|
691
|
+
else
|
|
692
|
+
result = l1 / (l2 * l3);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (!(boost::math::isfinite)(result))
|
|
696
|
+
result = 0; // LCOV_EXCL_LINE we can probably never get here, covered already above?
|
|
697
|
+
|
|
698
|
+
T l1 = log(cgh / bgh) * (b - 0.5f);
|
|
699
|
+
T l2 = log(x * cgh / agh) * a;
|
|
700
|
+
//
|
|
701
|
+
// Check for over/underflow in the power terms:
|
|
702
|
+
//
|
|
703
|
+
if((l1 > tools::log_min_value<T>())
|
|
704
|
+
&& (l1 < tools::log_max_value<T>())
|
|
705
|
+
&& (l2 > tools::log_min_value<T>())
|
|
706
|
+
&& (l2 < tools::log_max_value<T>()))
|
|
707
|
+
{
|
|
708
|
+
if(a * b < bgh * 10)
|
|
709
|
+
result *= exp((b - 0.5f) * boost::math::log1p(a / bgh, pol));
|
|
710
|
+
else
|
|
711
|
+
result *= pow(cgh / bgh, T(b - T(0.5)));
|
|
712
|
+
result *= pow(x * cgh / agh, a);
|
|
713
|
+
result *= sqrt(agh / boost::math::constants::e<T>());
|
|
714
|
+
|
|
715
|
+
if(p_derivative)
|
|
716
|
+
{
|
|
717
|
+
*p_derivative = result * pow(y, b);
|
|
718
|
+
BOOST_MATH_ASSERT(*p_derivative >= 0);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
else
|
|
722
|
+
{
|
|
723
|
+
//
|
|
724
|
+
// Oh dear, we need logs, and this *will* cancel:
|
|
725
|
+
//
|
|
726
|
+
if (result != 0) // elude calculation when result will be zero.
|
|
727
|
+
{
|
|
728
|
+
result = log(result) + l1 + l2 + (log(agh) - 1) / 2;
|
|
729
|
+
if (p_derivative)
|
|
730
|
+
*p_derivative = exp(result + b * log(y));
|
|
731
|
+
result = exp(result);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
else
|
|
736
|
+
{
|
|
737
|
+
// Non-normalised, just compute the power:
|
|
738
|
+
result = pow(x, a);
|
|
739
|
+
}
|
|
740
|
+
if(result < tools::min_value<T>())
|
|
741
|
+
return s0; // Safeguard: series can't cope with denorms.
|
|
742
|
+
ibeta_series_t<T> s(a, b, x, result);
|
|
743
|
+
boost::math::uintmax_t max_iter = policies::get_max_series_iterations<Policy>();
|
|
744
|
+
result = boost::math::tools::sum_series(s, boost::math::policies::get_epsilon<T, Policy>(), max_iter, s0);
|
|
745
|
+
policies::check_series_iterations<T>("boost::math::ibeta<%1%>(%1%, %1%, %1%) in ibeta_series (with lanczos)", max_iter, pol);
|
|
746
|
+
return result;
|
|
747
|
+
}
|
|
748
|
+
//
|
|
749
|
+
// Incomplete Beta series again, this time without Lanczos support:
|
|
750
|
+
//
|
|
751
|
+
#ifndef BOOST_MATH_HAS_GPU_SUPPORT
|
|
752
|
+
template <class T, class Policy>
|
|
753
|
+
BOOST_MATH_GPU_ENABLED T ibeta_series(T a, T b, T x, T s0, const boost::math::lanczos::undefined_lanczos& l, bool normalised, T* p_derivative, T y, const Policy& pol)
|
|
754
|
+
{
|
|
755
|
+
BOOST_MATH_STD_USING
|
|
756
|
+
|
|
757
|
+
T result;
|
|
758
|
+
BOOST_MATH_ASSERT((p_derivative == 0) || normalised);
|
|
759
|
+
|
|
760
|
+
if(normalised)
|
|
761
|
+
{
|
|
762
|
+
const T min_sterling = minimum_argument_for_bernoulli_recursion<T>();
|
|
763
|
+
|
|
764
|
+
long shift_a = 0;
|
|
765
|
+
long shift_b = 0;
|
|
766
|
+
|
|
767
|
+
if (a < min_sterling)
|
|
768
|
+
shift_a = 1 + ltrunc(min_sterling - a);
|
|
769
|
+
if (b < min_sterling)
|
|
770
|
+
shift_b = 1 + ltrunc(min_sterling - b);
|
|
771
|
+
|
|
772
|
+
T c = a + b;
|
|
773
|
+
|
|
774
|
+
if ((shift_a == 0) && (shift_b == 0))
|
|
775
|
+
{
|
|
776
|
+
result = pow(x * c / a, a) * pow(c / b, b) * scaled_tgamma_no_lanczos(c, pol) / (scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol));
|
|
777
|
+
}
|
|
778
|
+
else if ((a < 1) && (b > 1))
|
|
779
|
+
result = pow(x, a) / (boost::math::tgamma(a, pol) * boost::math::tgamma_delta_ratio(b, a, pol));
|
|
780
|
+
else
|
|
781
|
+
{
|
|
782
|
+
T power = pow(x, a);
|
|
783
|
+
T bet = beta_imp(a, b, l, pol);
|
|
784
|
+
if (!(boost::math::isnormal)(power) || !(boost::math::isnormal)(bet))
|
|
785
|
+
{
|
|
786
|
+
result = exp(a * log(x) + boost::math::lgamma(c, pol) - boost::math::lgamma(a, pol) - boost::math::lgamma(b, pol));
|
|
787
|
+
}
|
|
788
|
+
else
|
|
789
|
+
result = power / bet;
|
|
790
|
+
}
|
|
791
|
+
if(p_derivative)
|
|
792
|
+
{
|
|
793
|
+
*p_derivative = result * pow(y, b);
|
|
794
|
+
BOOST_MATH_ASSERT(*p_derivative >= 0);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
else
|
|
798
|
+
{
|
|
799
|
+
// Non-normalised, just compute the power:
|
|
800
|
+
result = pow(x, a);
|
|
801
|
+
}
|
|
802
|
+
if(result < tools::min_value<T>())
|
|
803
|
+
return s0; // Safeguard: series can't cope with denorms.
|
|
804
|
+
ibeta_series_t<T> s(a, b, x, result);
|
|
805
|
+
boost::math::uintmax_t max_iter = policies::get_max_series_iterations<Policy>();
|
|
806
|
+
result = boost::math::tools::sum_series(s, boost::math::policies::get_epsilon<T, Policy>(), max_iter, s0);
|
|
807
|
+
policies::check_series_iterations<T>("boost::math::ibeta<%1%>(%1%, %1%, %1%) in ibeta_series (without lanczos)", max_iter, pol);
|
|
808
|
+
return result;
|
|
809
|
+
}
|
|
810
|
+
#endif
|
|
811
|
+
//
|
|
812
|
+
// Continued fraction for the incomplete beta:
|
|
813
|
+
//
|
|
814
|
+
template <class T>
|
|
815
|
+
struct ibeta_fraction2_t
|
|
816
|
+
{
|
|
817
|
+
typedef boost::math::pair<T, T> result_type;
|
|
818
|
+
|
|
819
|
+
BOOST_MATH_GPU_ENABLED ibeta_fraction2_t(T a_, T b_, T x_, T y_) : a(a_), b(b_), x(x_), y(y_), m(0) {}
|
|
820
|
+
|
|
821
|
+
BOOST_MATH_GPU_ENABLED result_type operator()()
|
|
822
|
+
{
|
|
823
|
+
T denom = (a + 2 * m - 1);
|
|
824
|
+
T aN = (m * (a + m - 1) / denom) * ((a + b + m - 1) / denom) * (b - m) * x * x;
|
|
825
|
+
|
|
826
|
+
T bN = static_cast<T>(m);
|
|
827
|
+
bN += (m * (b - m) * x) / (a + 2*m - 1);
|
|
828
|
+
bN += ((a + m) * (a * y - b * x + 1 + m *(2 - x))) / (a + 2*m + 1);
|
|
829
|
+
|
|
830
|
+
++m;
|
|
831
|
+
|
|
832
|
+
return boost::math::make_pair(aN, bN);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
private:
|
|
836
|
+
T a, b, x, y;
|
|
837
|
+
int m;
|
|
838
|
+
};
|
|
839
|
+
//
|
|
840
|
+
// Evaluate the incomplete beta via the continued fraction representation:
|
|
841
|
+
//
|
|
842
|
+
template <class T, class Policy>
|
|
843
|
+
BOOST_MATH_GPU_ENABLED inline T ibeta_fraction2(T a, T b, T x, T y, const Policy& pol, bool normalised, T* p_derivative)
|
|
844
|
+
{
|
|
845
|
+
typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
|
|
846
|
+
BOOST_MATH_STD_USING
|
|
847
|
+
T result = ibeta_power_terms(a, b, x, y, lanczos_type(), normalised, pol);
|
|
848
|
+
if(p_derivative)
|
|
849
|
+
{
|
|
850
|
+
*p_derivative = result;
|
|
851
|
+
BOOST_MATH_ASSERT(*p_derivative >= 0);
|
|
852
|
+
}
|
|
853
|
+
if(result == 0)
|
|
854
|
+
return result;
|
|
855
|
+
|
|
856
|
+
ibeta_fraction2_t<T> f(a, b, x, y);
|
|
857
|
+
boost::math::uintmax_t max_terms = boost::math::policies::get_max_series_iterations<Policy>();
|
|
858
|
+
T fract = boost::math::tools::continued_fraction_b(f, boost::math::policies::get_epsilon<T, Policy>(), max_terms);
|
|
859
|
+
boost::math::policies::check_series_iterations<T>("boost::math::ibeta", max_terms, pol);
|
|
860
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
861
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(result);
|
|
862
|
+
return result / fract;
|
|
863
|
+
}
|
|
864
|
+
//
|
|
865
|
+
// Computes the difference between ibeta(a,b,x) and ibeta(a+k,b,x):
|
|
866
|
+
//
|
|
867
|
+
template <class T, class Policy>
|
|
868
|
+
BOOST_MATH_GPU_ENABLED T ibeta_a_step(T a, T b, T x, T y, int k, const Policy& pol, bool normalised, T* p_derivative)
|
|
869
|
+
{
|
|
870
|
+
typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
|
|
871
|
+
|
|
872
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(k);
|
|
873
|
+
|
|
874
|
+
T prefix = ibeta_power_terms(a, b, x, y, lanczos_type(), normalised, pol);
|
|
875
|
+
if(p_derivative)
|
|
876
|
+
{
|
|
877
|
+
*p_derivative = prefix;
|
|
878
|
+
BOOST_MATH_ASSERT(*p_derivative >= 0);
|
|
879
|
+
}
|
|
880
|
+
prefix /= a;
|
|
881
|
+
if(prefix == 0)
|
|
882
|
+
return prefix;
|
|
883
|
+
T sum = 1;
|
|
884
|
+
T term = 1;
|
|
885
|
+
// series summation from 0 to k-1:
|
|
886
|
+
for(int i = 0; i < k-1; ++i)
|
|
887
|
+
{
|
|
888
|
+
term *= (a+b+i) * x / (a+i+1);
|
|
889
|
+
sum += term;
|
|
890
|
+
}
|
|
891
|
+
prefix *= sum;
|
|
892
|
+
|
|
893
|
+
return prefix;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
//
|
|
897
|
+
// This function is only needed for the non-regular incomplete beta,
|
|
898
|
+
// it computes the delta in:
|
|
899
|
+
// beta(a,b,x) = prefix + delta * beta(a+k,b,x)
|
|
900
|
+
// it is currently only called for small k.
|
|
901
|
+
//
|
|
902
|
+
template <class T>
|
|
903
|
+
BOOST_MATH_GPU_ENABLED inline T rising_factorial_ratio(T a, T b, int k)
|
|
904
|
+
{
|
|
905
|
+
// calculate:
|
|
906
|
+
// (a)(a+1)(a+2)...(a+k-1)
|
|
907
|
+
// _______________________
|
|
908
|
+
// (b)(b+1)(b+2)...(b+k-1)
|
|
909
|
+
|
|
910
|
+
// This is only called with small k, for large k
|
|
911
|
+
// it is grossly inefficient, do not use outside it's
|
|
912
|
+
// intended purpose!!!
|
|
913
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(k);
|
|
914
|
+
BOOST_MATH_ASSERT(k > 0);
|
|
915
|
+
|
|
916
|
+
T result = 1;
|
|
917
|
+
for(int i = 0; i < k; ++i)
|
|
918
|
+
result *= (a+i) / (b+i);
|
|
919
|
+
return result;
|
|
920
|
+
}
|
|
921
|
+
//
|
|
922
|
+
// Routine for a > 15, b < 1
|
|
923
|
+
//
|
|
924
|
+
// Begin by figuring out how large our table of Pn's should be,
|
|
925
|
+
// quoted accuracies are "guesstimates" based on empirical observation.
|
|
926
|
+
// Note that the table size should never exceed the size of our
|
|
927
|
+
// tables of factorials.
|
|
928
|
+
//
|
|
929
|
+
template <class T>
|
|
930
|
+
struct Pn_size
|
|
931
|
+
{
|
|
932
|
+
// This is likely to be enough for ~35-50 digit accuracy
|
|
933
|
+
// but it's hard to quantify exactly:
|
|
934
|
+
#ifndef BOOST_MATH_HAS_NVRTC
|
|
935
|
+
static constexpr unsigned value =
|
|
936
|
+
::boost::math::max_factorial<T>::value >= 100 ? 50
|
|
937
|
+
: ::boost::math::max_factorial<T>::value >= ::boost::math::max_factorial<double>::value ? 30
|
|
938
|
+
: ::boost::math::max_factorial<T>::value >= ::boost::math::max_factorial<float>::value ? 15 : 1;
|
|
939
|
+
static_assert(::boost::math::max_factorial<T>::value >= ::boost::math::max_factorial<float>::value, "Type does not provide for 35-50 digits of accuracy.");
|
|
940
|
+
#else
|
|
941
|
+
static constexpr unsigned value = 0; // Will never be called
|
|
942
|
+
#endif
|
|
943
|
+
};
|
|
944
|
+
template <>
|
|
945
|
+
struct Pn_size<float>
|
|
946
|
+
{
|
|
947
|
+
static constexpr unsigned value = 15; // ~8-15 digit accuracy
|
|
948
|
+
#ifndef BOOST_MATH_HAS_GPU_SUPPORT
|
|
949
|
+
static_assert(::boost::math::max_factorial<float>::value >= 30, "Type does not provide for 8-15 digits of accuracy.");
|
|
950
|
+
#endif
|
|
951
|
+
};
|
|
952
|
+
template <>
|
|
953
|
+
struct Pn_size<double>
|
|
954
|
+
{
|
|
955
|
+
static constexpr unsigned value = 30; // 16-20 digit accuracy
|
|
956
|
+
#ifndef BOOST_MATH_HAS_GPU_SUPPORT
|
|
957
|
+
static_assert(::boost::math::max_factorial<double>::value >= 60, "Type does not provide for 16-20 digits of accuracy.");
|
|
958
|
+
#endif
|
|
959
|
+
};
|
|
960
|
+
template <>
|
|
961
|
+
struct Pn_size<long double>
|
|
962
|
+
{
|
|
963
|
+
static constexpr unsigned value = 50; // ~35-50 digit accuracy
|
|
964
|
+
#ifndef BOOST_MATH_HAS_GPU_SUPPORT
|
|
965
|
+
static_assert(::boost::math::max_factorial<long double>::value >= 100, "Type does not provide for ~35-50 digits of accuracy");
|
|
966
|
+
#endif
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
template <class T, class Policy>
|
|
970
|
+
BOOST_MATH_GPU_ENABLED T beta_small_b_large_a_series(T a, T b, T x, T y, T s0, T mult, const Policy& pol, bool normalised)
|
|
971
|
+
{
|
|
972
|
+
typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
|
|
973
|
+
BOOST_MATH_STD_USING
|
|
974
|
+
//
|
|
975
|
+
// This is DiDonato and Morris's BGRAT routine, see Eq's 9 through 9.6.
|
|
976
|
+
//
|
|
977
|
+
// Some values we'll need later, these are Eq 9.1:
|
|
978
|
+
//
|
|
979
|
+
T bm1 = b - 1;
|
|
980
|
+
T t = a + bm1 / 2;
|
|
981
|
+
T lx, u; // LCOV_EXCL_LINE
|
|
982
|
+
if(y < 0.35)
|
|
983
|
+
lx = boost::math::log1p(-y, pol);
|
|
984
|
+
else
|
|
985
|
+
lx = log(x);
|
|
986
|
+
u = -t * lx;
|
|
987
|
+
// and from from 9.2:
|
|
988
|
+
T prefix; // LCOV_EXCL_LINE
|
|
989
|
+
T h = regularised_gamma_prefix(b, u, pol, lanczos_type());
|
|
990
|
+
if(h <= tools::min_value<T>())
|
|
991
|
+
return s0;
|
|
992
|
+
if(normalised)
|
|
993
|
+
{
|
|
994
|
+
prefix = h / boost::math::tgamma_delta_ratio(a, b, pol);
|
|
995
|
+
prefix /= pow(t, b);
|
|
996
|
+
}
|
|
997
|
+
else
|
|
998
|
+
{
|
|
999
|
+
prefix = full_igamma_prefix(b, u, pol) / pow(t, b);
|
|
1000
|
+
}
|
|
1001
|
+
prefix *= mult;
|
|
1002
|
+
//
|
|
1003
|
+
// now we need the quantity Pn, unfortunately this is computed
|
|
1004
|
+
// recursively, and requires a full history of all the previous values
|
|
1005
|
+
// so no choice but to declare a big table and hope it's big enough...
|
|
1006
|
+
//
|
|
1007
|
+
T p[ ::boost::math::detail::Pn_size<T>::value ] = { 1 }; // see 9.3.
|
|
1008
|
+
//
|
|
1009
|
+
// Now an initial value for J, see 9.6:
|
|
1010
|
+
//
|
|
1011
|
+
T j = boost::math::gamma_q(b, u, pol) / h;
|
|
1012
|
+
//
|
|
1013
|
+
// Now we can start to pull things together and evaluate the sum in Eq 9:
|
|
1014
|
+
//
|
|
1015
|
+
T sum = s0 + prefix * j; // Value at N = 0
|
|
1016
|
+
// some variables we'll need:
|
|
1017
|
+
unsigned tnp1 = 1; // 2*N+1
|
|
1018
|
+
T lx2 = lx / 2;
|
|
1019
|
+
lx2 *= lx2;
|
|
1020
|
+
T lxp = 1;
|
|
1021
|
+
T t4 = 4 * t * t;
|
|
1022
|
+
T b2n = b;
|
|
1023
|
+
|
|
1024
|
+
for(unsigned n = 1; n < sizeof(p)/sizeof(p[0]); ++n)
|
|
1025
|
+
{
|
|
1026
|
+
/*
|
|
1027
|
+
// debugging code, enable this if you want to determine whether
|
|
1028
|
+
// the table of Pn's is large enough...
|
|
1029
|
+
//
|
|
1030
|
+
static int max_count = 2;
|
|
1031
|
+
if(n > max_count)
|
|
1032
|
+
{
|
|
1033
|
+
max_count = n;
|
|
1034
|
+
std::cerr << "Max iterations in BGRAT was " << n << std::endl;
|
|
1035
|
+
}
|
|
1036
|
+
*/
|
|
1037
|
+
//
|
|
1038
|
+
// begin by evaluating the next Pn from Eq 9.4:
|
|
1039
|
+
//
|
|
1040
|
+
tnp1 += 2;
|
|
1041
|
+
p[n] = 0;
|
|
1042
|
+
T mbn = b - n;
|
|
1043
|
+
unsigned tmp1 = 3;
|
|
1044
|
+
for(unsigned m = 1; m < n; ++m)
|
|
1045
|
+
{
|
|
1046
|
+
mbn = m * b - n;
|
|
1047
|
+
p[n] += mbn * p[n-m] / boost::math::unchecked_factorial<T>(tmp1);
|
|
1048
|
+
tmp1 += 2;
|
|
1049
|
+
}
|
|
1050
|
+
p[n] /= n;
|
|
1051
|
+
p[n] += bm1 / boost::math::unchecked_factorial<T>(tnp1);
|
|
1052
|
+
//
|
|
1053
|
+
// Now we want Jn from Jn-1 using Eq 9.6:
|
|
1054
|
+
//
|
|
1055
|
+
j = (b2n * (b2n + 1) * j + (u + b2n + 1) * lxp) / t4;
|
|
1056
|
+
lxp *= lx2;
|
|
1057
|
+
b2n += 2;
|
|
1058
|
+
//
|
|
1059
|
+
// pull it together with Eq 9:
|
|
1060
|
+
//
|
|
1061
|
+
T r = prefix * p[n] * j;
|
|
1062
|
+
sum += r;
|
|
1063
|
+
// r is always small:
|
|
1064
|
+
BOOST_MATH_ASSERT(tools::max_value<T>() * tools::epsilon<T>() > fabs(r));
|
|
1065
|
+
if(fabs(r / tools::epsilon<T>()) < fabs(sum))
|
|
1066
|
+
break;
|
|
1067
|
+
}
|
|
1068
|
+
return sum;
|
|
1069
|
+
} // template <class T, class Lanczos>T beta_small_b_large_a_series(T a, T b, T x, T y, T s0, T mult, const Lanczos& l, bool normalised)
|
|
1070
|
+
|
|
1071
|
+
//
|
|
1072
|
+
// For integer arguments we can relate the incomplete beta to the
|
|
1073
|
+
// complement of the binomial distribution cdf and use this finite sum.
|
|
1074
|
+
//
|
|
1075
|
+
template <class T, class Policy>
|
|
1076
|
+
BOOST_MATH_GPU_ENABLED T binomial_ccdf(T n, T k, T x, T y, const Policy& pol)
|
|
1077
|
+
{
|
|
1078
|
+
BOOST_MATH_STD_USING // ADL of std names
|
|
1079
|
+
|
|
1080
|
+
T result = pow(x, n);
|
|
1081
|
+
|
|
1082
|
+
if(result > tools::min_value<T>())
|
|
1083
|
+
{
|
|
1084
|
+
T term = result;
|
|
1085
|
+
for(unsigned i = itrunc(T(n - 1)); i > k; --i)
|
|
1086
|
+
{
|
|
1087
|
+
term *= ((i + 1) * y) / ((n - i) * x);
|
|
1088
|
+
result += term;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
else
|
|
1092
|
+
{
|
|
1093
|
+
// First term underflows so we need to start at the mode of the
|
|
1094
|
+
// distribution and work outwards:
|
|
1095
|
+
int start = itrunc(n * x);
|
|
1096
|
+
if(start <= k + 1)
|
|
1097
|
+
start = itrunc(k + 2);
|
|
1098
|
+
result = static_cast<T>(pow(x, T(start)) * pow(y, n - T(start)) * boost::math::binomial_coefficient<T>(itrunc(n), itrunc(start), pol));
|
|
1099
|
+
if(result == 0)
|
|
1100
|
+
{
|
|
1101
|
+
// OK, starting slightly above the mode didn't work,
|
|
1102
|
+
// we'll have to sum the terms the old fashioned way.
|
|
1103
|
+
// Very hard to get here, possibly only when exponent
|
|
1104
|
+
// range is very limited (as with type float):
|
|
1105
|
+
// LCOV_EXCL_START
|
|
1106
|
+
for(unsigned i = start - 1; i > k; --i)
|
|
1107
|
+
{
|
|
1108
|
+
result += static_cast<T>(pow(x, static_cast<T>(i)) * pow(y, n - i) * boost::math::binomial_coefficient<T>(itrunc(n), itrunc(i), pol));
|
|
1109
|
+
}
|
|
1110
|
+
// LCOV_EXCL_STOP
|
|
1111
|
+
}
|
|
1112
|
+
else
|
|
1113
|
+
{
|
|
1114
|
+
T term = result;
|
|
1115
|
+
T start_term = result;
|
|
1116
|
+
for(unsigned i = start - 1; i > k; --i)
|
|
1117
|
+
{
|
|
1118
|
+
term *= ((i + 1) * y) / ((n - i) * x);
|
|
1119
|
+
result += term;
|
|
1120
|
+
}
|
|
1121
|
+
term = start_term;
|
|
1122
|
+
for(unsigned i = start + 1; i <= n; ++i)
|
|
1123
|
+
{
|
|
1124
|
+
term *= (n - i + 1) * x / (i * y);
|
|
1125
|
+
result += term;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
return result;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
template <class T, class Policy>
|
|
1134
|
+
BOOST_MATH_GPU_ENABLED T ibeta_large_ab(T a, T b, T x, T y, bool invert, bool normalised, const Policy& pol)
|
|
1135
|
+
{
|
|
1136
|
+
//
|
|
1137
|
+
// Large arguments, symetric case, see https://dlmf.nist.gov/8.18
|
|
1138
|
+
//
|
|
1139
|
+
BOOST_MATH_STD_USING
|
|
1140
|
+
|
|
1141
|
+
T x0 = a / (a + b);
|
|
1142
|
+
T y0 = b / (a + b);
|
|
1143
|
+
|
|
1144
|
+
// Expand nu about x0
|
|
1145
|
+
T nu = 0;
|
|
1146
|
+
for (int i=2; i<5; i++)
|
|
1147
|
+
{
|
|
1148
|
+
nu += pow(x-x0, i) / i * (pow(x0, -(i-1)) - pow(x0-1, -(i-1))) * pow(-1, i+1);
|
|
1149
|
+
}
|
|
1150
|
+
// Calculate the next term in the series
|
|
1151
|
+
T remainder = pow(x-x0, 5) / 5 * (pow(x0, -4) - pow(x0-1, 4));
|
|
1152
|
+
|
|
1153
|
+
// If the remainder is large, then fall back to using the log formula
|
|
1154
|
+
if (remainder >= tools::forth_root_epsilon<T>()){
|
|
1155
|
+
nu = x0 * log(x / x0) + y0 * log(y / y0);
|
|
1156
|
+
}
|
|
1157
|
+
//
|
|
1158
|
+
// Above compution is unstable, force nu to zero if
|
|
1159
|
+
// something went wrong:
|
|
1160
|
+
//
|
|
1161
|
+
if ((nu > 0) || (x == x0) || (y == y0))
|
|
1162
|
+
nu = 0;
|
|
1163
|
+
nu = sqrt(-2 * nu);
|
|
1164
|
+
//
|
|
1165
|
+
// As per https://dlmf.nist.gov/8.18#E10 we need to make sure we have the correct root:
|
|
1166
|
+
//
|
|
1167
|
+
if ((nu != 0) && (nu / (x - x0) < 0))
|
|
1168
|
+
nu = -nu;
|
|
1169
|
+
//
|
|
1170
|
+
// The correction term in https://dlmf.nist.gov/8.18#E9 is badly unstable, and often
|
|
1171
|
+
// makes the compution worse not better, we exclude it for now:
|
|
1172
|
+
/*
|
|
1173
|
+
T c0 = 0;
|
|
1174
|
+
|
|
1175
|
+
if (nu != 0)
|
|
1176
|
+
{
|
|
1177
|
+
c0 = 1 / nu;
|
|
1178
|
+
T lim = fabs(10 * tools::epsilon<T>() * c0);
|
|
1179
|
+
c0 -= sqrt(x0 * y0) / (x - x0);
|
|
1180
|
+
if(fabs(c0) < lim)
|
|
1181
|
+
c0 = (1 - 2 * x0) / (3 * sqrt(x0 * y0));
|
|
1182
|
+
else
|
|
1183
|
+
c0 *= exp(a * log(x / x0) + b * log(y / y0));
|
|
1184
|
+
c0 /= sqrt(constants::two_pi<T>() * (a + b));
|
|
1185
|
+
}
|
|
1186
|
+
else
|
|
1187
|
+
{
|
|
1188
|
+
c0 = (1 - 2 * x0) / (3 * sqrt(x0 * y0));
|
|
1189
|
+
c0 /= sqrt(constants::two_pi<T>() * (a + b));
|
|
1190
|
+
}
|
|
1191
|
+
*/
|
|
1192
|
+
T mul = 1;
|
|
1193
|
+
if (!normalised)
|
|
1194
|
+
mul = boost::math::beta(a, b, pol);
|
|
1195
|
+
// T log_erf_remainder = -0.5 * log(2 * constants::pi<T>() * (a+b)) + a * log(x / x0) + b * log((1-x) / (1-x0)) + log(abs(1/nu - sqrt(x0 * (1-x0)) / (x-x0)));
|
|
1196
|
+
return mul * ((invert ? (1 + boost::math::erf(-nu * sqrt((a + b) / 2), pol)) / 2 : boost::math::erfc(-nu * sqrt((a + b) / 2), pol) / 2));
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
//
|
|
1202
|
+
// The incomplete beta function implementation:
|
|
1203
|
+
// This is just a big bunch of spaghetti code to divide up the
|
|
1204
|
+
// input range and select the right implementation method for
|
|
1205
|
+
// each domain:
|
|
1206
|
+
//
|
|
1207
|
+
|
|
1208
|
+
template <class T, class Policy>
|
|
1209
|
+
BOOST_MATH_GPU_ENABLED T ibeta_imp(T a, T b, T x, const Policy& pol, bool inv, bool normalised, T* p_derivative)
|
|
1210
|
+
{
|
|
1211
|
+
constexpr auto function = "boost::math::ibeta<%1%>(%1%, %1%, %1%)";
|
|
1212
|
+
typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
|
|
1213
|
+
BOOST_MATH_STD_USING // for ADL of std math functions.
|
|
1214
|
+
|
|
1215
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(a);
|
|
1216
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(b);
|
|
1217
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(x);
|
|
1218
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(inv);
|
|
1219
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(normalised);
|
|
1220
|
+
|
|
1221
|
+
bool invert = inv;
|
|
1222
|
+
T fract;
|
|
1223
|
+
T y = 1 - x;
|
|
1224
|
+
|
|
1225
|
+
BOOST_MATH_ASSERT((p_derivative == 0) || normalised);
|
|
1226
|
+
|
|
1227
|
+
if(!(boost::math::isfinite)(a))
|
|
1228
|
+
return policies::raise_domain_error<T>(function, "The argument a to the incomplete beta function must be finite (got a=%1%).", a, pol);
|
|
1229
|
+
if(!(boost::math::isfinite)(b))
|
|
1230
|
+
return policies::raise_domain_error<T>(function, "The argument b to the incomplete beta function must be finite (got b=%1%).", b, pol);
|
|
1231
|
+
if (!(0 <= x && x <= 1))
|
|
1232
|
+
return policies::raise_domain_error<T>(function, "The argument x to the incomplete beta function must be in [0,1] (got x=%1%).", x, pol);
|
|
1233
|
+
|
|
1234
|
+
if(p_derivative)
|
|
1235
|
+
*p_derivative = -1; // value not set.
|
|
1236
|
+
|
|
1237
|
+
if(normalised)
|
|
1238
|
+
{
|
|
1239
|
+
if(a < 0)
|
|
1240
|
+
return policies::raise_domain_error<T>(function, "The argument a to the incomplete beta function must be >= zero (got a=%1%).", a, pol);
|
|
1241
|
+
if(b < 0)
|
|
1242
|
+
return policies::raise_domain_error<T>(function, "The argument b to the incomplete beta function must be >= zero (got b=%1%).", b, pol);
|
|
1243
|
+
// extend to a few very special cases:
|
|
1244
|
+
if(a == 0)
|
|
1245
|
+
{
|
|
1246
|
+
if(b == 0)
|
|
1247
|
+
return policies::raise_domain_error<T>(function, "The arguments a and b to the incomplete beta function cannot both be zero, with x=%1%.", x, pol);
|
|
1248
|
+
if(b > 0)
|
|
1249
|
+
return static_cast<T>(inv ? 0 : 1);
|
|
1250
|
+
}
|
|
1251
|
+
else if(b == 0)
|
|
1252
|
+
{
|
|
1253
|
+
if(a > 0)
|
|
1254
|
+
return static_cast<T>(inv ? 1 : 0);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
else
|
|
1258
|
+
{
|
|
1259
|
+
if(a <= 0)
|
|
1260
|
+
return policies::raise_domain_error<T>(function, "The argument a to the incomplete beta function must be greater than zero (got a=%1%).", a, pol);
|
|
1261
|
+
if(b <= 0)
|
|
1262
|
+
return policies::raise_domain_error<T>(function, "The argument b to the incomplete beta function must be greater than zero (got b=%1%).", b, pol);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
if(x == 0)
|
|
1266
|
+
{
|
|
1267
|
+
if(p_derivative)
|
|
1268
|
+
{
|
|
1269
|
+
*p_derivative = (a == 1) ? (T)1 : (a < 1) ? T(tools::max_value<T>() / 2) : T(tools::min_value<T>() * 2);
|
|
1270
|
+
}
|
|
1271
|
+
return (invert ? (normalised ? T(1) : boost::math::beta(a, b, pol)) : T(0));
|
|
1272
|
+
}
|
|
1273
|
+
if(x == 1)
|
|
1274
|
+
{
|
|
1275
|
+
if(p_derivative)
|
|
1276
|
+
{
|
|
1277
|
+
*p_derivative = (b == 1) ? T(1) : (b < 1) ? T(tools::max_value<T>() / 2) : T(tools::min_value<T>() * 2);
|
|
1278
|
+
}
|
|
1279
|
+
return (invert == 0 ? (normalised ? 1 : boost::math::beta(a, b, pol)) : 0);
|
|
1280
|
+
}
|
|
1281
|
+
if((a == 0.5f) && (b == 0.5f))
|
|
1282
|
+
{
|
|
1283
|
+
// We have an arcsine distribution:
|
|
1284
|
+
if(p_derivative)
|
|
1285
|
+
{
|
|
1286
|
+
*p_derivative = 1 / (constants::pi<T>() * sqrt(y * x));
|
|
1287
|
+
}
|
|
1288
|
+
T p = invert ? asin(sqrt(y)) / constants::half_pi<T>() : asin(sqrt(x)) / constants::half_pi<T>();
|
|
1289
|
+
if(!normalised)
|
|
1290
|
+
p *= constants::pi<T>();
|
|
1291
|
+
return p;
|
|
1292
|
+
}
|
|
1293
|
+
if(a == 1)
|
|
1294
|
+
{
|
|
1295
|
+
BOOST_MATH_GPU_SAFE_SWAP(a, b);
|
|
1296
|
+
BOOST_MATH_GPU_SAFE_SWAP(x, y);
|
|
1297
|
+
invert = !invert;
|
|
1298
|
+
}
|
|
1299
|
+
if(b == 1)
|
|
1300
|
+
{
|
|
1301
|
+
//
|
|
1302
|
+
// Special case see: http://functions.wolfram.com/GammaBetaErf/BetaRegularized/03/01/01/
|
|
1303
|
+
//
|
|
1304
|
+
if(a == 1)
|
|
1305
|
+
{
|
|
1306
|
+
if(p_derivative)
|
|
1307
|
+
*p_derivative = 1;
|
|
1308
|
+
return invert ? y : x;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
if(p_derivative)
|
|
1312
|
+
{
|
|
1313
|
+
*p_derivative = a * pow(x, a - 1);
|
|
1314
|
+
}
|
|
1315
|
+
T p; // LCOV_EXCL_LINE
|
|
1316
|
+
if(y < 0.5)
|
|
1317
|
+
p = invert ? T(-boost::math::expm1(a * boost::math::log1p(-y, pol), pol)) : T(exp(a * boost::math::log1p(-y, pol)));
|
|
1318
|
+
else
|
|
1319
|
+
p = invert ? T(-boost::math::powm1(x, a, pol)) : T(pow(x, a));
|
|
1320
|
+
if(!normalised)
|
|
1321
|
+
p /= a;
|
|
1322
|
+
return p;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
if(BOOST_MATH_GPU_SAFE_MIN(a, b) <= 1)
|
|
1326
|
+
{
|
|
1327
|
+
if(x > 0.5)
|
|
1328
|
+
{
|
|
1329
|
+
BOOST_MATH_GPU_SAFE_SWAP(a, b);
|
|
1330
|
+
BOOST_MATH_GPU_SAFE_SWAP(x, y);
|
|
1331
|
+
invert = !invert;
|
|
1332
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(invert);
|
|
1333
|
+
}
|
|
1334
|
+
if(BOOST_MATH_GPU_SAFE_MAX(a, b) <= 1)
|
|
1335
|
+
{
|
|
1336
|
+
// Both a,b < 1:
|
|
1337
|
+
if((a >= BOOST_MATH_GPU_SAFE_MIN(T(0.2), b)) || (pow(x, a) <= 0.9))
|
|
1338
|
+
{
|
|
1339
|
+
if(!invert)
|
|
1340
|
+
{
|
|
1341
|
+
fract = ibeta_series(a, b, x, T(0), lanczos_type(), normalised, p_derivative, y, pol);
|
|
1342
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1343
|
+
}
|
|
1344
|
+
else
|
|
1345
|
+
{
|
|
1346
|
+
fract = -(normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1347
|
+
invert = false;
|
|
1348
|
+
fract = -ibeta_series(a, b, x, fract, lanczos_type(), normalised, p_derivative, y, pol);
|
|
1349
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
else
|
|
1353
|
+
{
|
|
1354
|
+
BOOST_MATH_GPU_SAFE_SWAP(a, b);
|
|
1355
|
+
BOOST_MATH_GPU_SAFE_SWAP(x, y);
|
|
1356
|
+
invert = !invert;
|
|
1357
|
+
if(y >= 0.3)
|
|
1358
|
+
{
|
|
1359
|
+
if(!invert)
|
|
1360
|
+
{
|
|
1361
|
+
fract = ibeta_series(a, b, x, T(0), lanczos_type(), normalised, p_derivative, y, pol);
|
|
1362
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1363
|
+
}
|
|
1364
|
+
else
|
|
1365
|
+
{
|
|
1366
|
+
fract = -(normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1367
|
+
invert = false;
|
|
1368
|
+
fract = -ibeta_series(a, b, x, fract, lanczos_type(), normalised, p_derivative, y, pol);
|
|
1369
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
else
|
|
1373
|
+
{
|
|
1374
|
+
// Sidestep on a, and then use the series representation:
|
|
1375
|
+
T prefix; // LCOV_EXCL_LINE
|
|
1376
|
+
if(!normalised)
|
|
1377
|
+
{
|
|
1378
|
+
prefix = rising_factorial_ratio(T(a+b), a, 20);
|
|
1379
|
+
}
|
|
1380
|
+
else
|
|
1381
|
+
{
|
|
1382
|
+
prefix = 1;
|
|
1383
|
+
}
|
|
1384
|
+
fract = ibeta_a_step(a, b, x, y, 20, pol, normalised, p_derivative);
|
|
1385
|
+
if(!invert)
|
|
1386
|
+
{
|
|
1387
|
+
fract = beta_small_b_large_a_series(T(a + 20), b, x, y, fract, prefix, pol, normalised);
|
|
1388
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1389
|
+
}
|
|
1390
|
+
else
|
|
1391
|
+
{
|
|
1392
|
+
fract -= (normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1393
|
+
invert = false;
|
|
1394
|
+
fract = -beta_small_b_large_a_series(T(a + 20), b, x, y, fract, prefix, pol, normalised);
|
|
1395
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
else
|
|
1401
|
+
{
|
|
1402
|
+
// One of a, b < 1 only:
|
|
1403
|
+
if((b <= 1) || ((x < 0.1) && (pow(b * x, a) <= 0.7)))
|
|
1404
|
+
{
|
|
1405
|
+
if(!invert)
|
|
1406
|
+
{
|
|
1407
|
+
fract = ibeta_series(a, b, x, T(0), lanczos_type(), normalised, p_derivative, y, pol);
|
|
1408
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1409
|
+
}
|
|
1410
|
+
else
|
|
1411
|
+
{
|
|
1412
|
+
fract = -(normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1413
|
+
invert = false;
|
|
1414
|
+
fract = -ibeta_series(a, b, x, fract, lanczos_type(), normalised, p_derivative, y, pol);
|
|
1415
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
else
|
|
1419
|
+
{
|
|
1420
|
+
BOOST_MATH_GPU_SAFE_SWAP(a, b);
|
|
1421
|
+
BOOST_MATH_GPU_SAFE_SWAP(x, y);
|
|
1422
|
+
invert = !invert;
|
|
1423
|
+
|
|
1424
|
+
if(y >= 0.3)
|
|
1425
|
+
{
|
|
1426
|
+
if(!invert)
|
|
1427
|
+
{
|
|
1428
|
+
fract = ibeta_series(a, b, x, T(0), lanczos_type(), normalised, p_derivative, y, pol);
|
|
1429
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1430
|
+
}
|
|
1431
|
+
else
|
|
1432
|
+
{
|
|
1433
|
+
fract = -(normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1434
|
+
invert = false;
|
|
1435
|
+
fract = -ibeta_series(a, b, x, fract, lanczos_type(), normalised, p_derivative, y, pol);
|
|
1436
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
else if(a >= 15)
|
|
1440
|
+
{
|
|
1441
|
+
if(!invert)
|
|
1442
|
+
{
|
|
1443
|
+
fract = beta_small_b_large_a_series(a, b, x, y, T(0), T(1), pol, normalised);
|
|
1444
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1445
|
+
}
|
|
1446
|
+
else
|
|
1447
|
+
{
|
|
1448
|
+
fract = -(normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1449
|
+
invert = false;
|
|
1450
|
+
fract = -beta_small_b_large_a_series(a, b, x, y, fract, T(1), pol, normalised);
|
|
1451
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
else
|
|
1455
|
+
{
|
|
1456
|
+
// Sidestep to improve errors:
|
|
1457
|
+
T prefix; // LCOV_EXCL_LINE
|
|
1458
|
+
if(!normalised)
|
|
1459
|
+
{
|
|
1460
|
+
prefix = rising_factorial_ratio(T(a+b), a, 20);
|
|
1461
|
+
}
|
|
1462
|
+
else
|
|
1463
|
+
{
|
|
1464
|
+
prefix = 1;
|
|
1465
|
+
}
|
|
1466
|
+
fract = ibeta_a_step(a, b, x, y, 20, pol, normalised, p_derivative);
|
|
1467
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1468
|
+
if(!invert)
|
|
1469
|
+
{
|
|
1470
|
+
fract = beta_small_b_large_a_series(T(a + 20), b, x, y, fract, prefix, pol, normalised);
|
|
1471
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1472
|
+
}
|
|
1473
|
+
else
|
|
1474
|
+
{
|
|
1475
|
+
fract -= (normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1476
|
+
invert = false;
|
|
1477
|
+
fract = -beta_small_b_large_a_series(T(a + 20), b, x, y, fract, prefix, pol, normalised);
|
|
1478
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
else
|
|
1485
|
+
{
|
|
1486
|
+
// Both a,b >= 1:
|
|
1487
|
+
T lambda; // LCOV_EXCL_LINE
|
|
1488
|
+
if(a < b)
|
|
1489
|
+
{
|
|
1490
|
+
lambda = a - (a + b) * x;
|
|
1491
|
+
}
|
|
1492
|
+
else
|
|
1493
|
+
{
|
|
1494
|
+
lambda = (a + b) * y - b;
|
|
1495
|
+
}
|
|
1496
|
+
if(lambda < 0)
|
|
1497
|
+
{
|
|
1498
|
+
BOOST_MATH_GPU_SAFE_SWAP(a, b);
|
|
1499
|
+
BOOST_MATH_GPU_SAFE_SWAP(x, y);
|
|
1500
|
+
invert = !invert;
|
|
1501
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(invert);
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if(b < 40)
|
|
1505
|
+
{
|
|
1506
|
+
if((floor(a) == a) && (floor(b) == b) && (a < static_cast<T>((boost::math::numeric_limits<int>::max)() - 100)) && (y != 1))
|
|
1507
|
+
{
|
|
1508
|
+
// relate to the binomial distribution and use a finite sum:
|
|
1509
|
+
T k = a - 1;
|
|
1510
|
+
T n = b + k;
|
|
1511
|
+
fract = binomial_ccdf(n, k, x, y, pol);
|
|
1512
|
+
if(!normalised)
|
|
1513
|
+
fract *= boost::math::beta(a, b, pol);
|
|
1514
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1515
|
+
}
|
|
1516
|
+
else if(b * x <= 0.7)
|
|
1517
|
+
{
|
|
1518
|
+
if(!invert)
|
|
1519
|
+
{
|
|
1520
|
+
fract = ibeta_series(a, b, x, T(0), lanczos_type(), normalised, p_derivative, y, pol);
|
|
1521
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1522
|
+
}
|
|
1523
|
+
else
|
|
1524
|
+
{
|
|
1525
|
+
fract = -(normalised ? 1 : boost::math::beta(a, b, pol));
|
|
1526
|
+
invert = false;
|
|
1527
|
+
fract = -ibeta_series(a, b, x, fract, lanczos_type(), normalised, p_derivative, y, pol);
|
|
1528
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
else if(a > 15)
|
|
1532
|
+
{
|
|
1533
|
+
// sidestep so we can use the series representation:
|
|
1534
|
+
int n = itrunc(T(floor(b)), pol);
|
|
1535
|
+
if(n == b)
|
|
1536
|
+
--n;
|
|
1537
|
+
T bbar = b - n;
|
|
1538
|
+
T prefix; // LCOV_EXCL_LINE
|
|
1539
|
+
if(!normalised)
|
|
1540
|
+
{
|
|
1541
|
+
prefix = rising_factorial_ratio(T(a+bbar), bbar, n);
|
|
1542
|
+
}
|
|
1543
|
+
else
|
|
1544
|
+
{
|
|
1545
|
+
prefix = 1;
|
|
1546
|
+
}
|
|
1547
|
+
fract = ibeta_a_step(bbar, a, y, x, n, pol, normalised, static_cast<T*>(nullptr));
|
|
1548
|
+
fract = beta_small_b_large_a_series(a, bbar, x, y, fract, T(1), pol, normalised);
|
|
1549
|
+
fract /= prefix;
|
|
1550
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1551
|
+
}
|
|
1552
|
+
else if(normalised)
|
|
1553
|
+
{
|
|
1554
|
+
// The formula here for the non-normalised case is tricky to figure
|
|
1555
|
+
// out (for me!!), and requires two pochhammer calculations rather
|
|
1556
|
+
// than one, so leave it for now and only use this in the normalized case....
|
|
1557
|
+
int n = itrunc(T(floor(b)), pol);
|
|
1558
|
+
T bbar = b - n;
|
|
1559
|
+
if(bbar <= 0)
|
|
1560
|
+
{
|
|
1561
|
+
--n;
|
|
1562
|
+
bbar += 1;
|
|
1563
|
+
}
|
|
1564
|
+
fract = ibeta_a_step(bbar, a, y, x, n, pol, normalised, static_cast<T*>(nullptr));
|
|
1565
|
+
fract += ibeta_a_step(a, bbar, x, y, 20, pol, normalised, static_cast<T*>(nullptr));
|
|
1566
|
+
if(invert)
|
|
1567
|
+
fract -= 1; // Note this line would need changing if we ever enable this branch in non-normalized case
|
|
1568
|
+
fract = beta_small_b_large_a_series(T(a+20), bbar, x, y, fract, T(1), pol, normalised);
|
|
1569
|
+
if(invert)
|
|
1570
|
+
{
|
|
1571
|
+
fract = -fract;
|
|
1572
|
+
invert = false;
|
|
1573
|
+
}
|
|
1574
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1575
|
+
}
|
|
1576
|
+
else
|
|
1577
|
+
{
|
|
1578
|
+
fract = ibeta_fraction2(a, b, x, y, pol, normalised, p_derivative);
|
|
1579
|
+
BOOST_MATH_INSTRUMENT_VARIABLE(fract);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
else
|
|
1583
|
+
{
|
|
1584
|
+
// a and b both large:
|
|
1585
|
+
T ma = BOOST_MATH_GPU_SAFE_MAX(a, b);
|
|
1586
|
+
T saddle = ma / (a + b);
|
|
1587
|
+
// If ma large and x is close to saddle, use `erf` approximation in `ibeta_large_ab`.
|
|
1588
|
+
// In this case we don't need to invert
|
|
1589
|
+
if ((ma > 1e-5f / tools::epsilon<T>()) && (fabs(saddle - x) < 1e-12) && (1 - saddle > 0.125))
|
|
1590
|
+
{
|
|
1591
|
+
fract = ibeta_large_ab(a, b, x, y, invert, normalised, pol);
|
|
1592
|
+
invert = false;
|
|
1593
|
+
}
|
|
1594
|
+
else
|
|
1595
|
+
{
|
|
1596
|
+
// This is the same logic that is in `ibeta_fraction2`. We have repeated
|
|
1597
|
+
// the implementation here because when x is close to saddle, the continued
|
|
1598
|
+
// fraction will not converge. If this occurs, we fall back to the `erf`
|
|
1599
|
+
// approximation. Simply using `ibeta_fraction2` will cause an evaluation
|
|
1600
|
+
// error to be thrown and we won't be able to use the `erf` approximation.
|
|
1601
|
+
typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
|
|
1602
|
+
T local_result = ibeta_power_terms(a, b, x, y, lanczos_type(), normalised, pol);
|
|
1603
|
+
if (p_derivative)
|
|
1604
|
+
{
|
|
1605
|
+
*p_derivative = local_result;
|
|
1606
|
+
BOOST_MATH_ASSERT(*p_derivative >= 0);
|
|
1607
|
+
}
|
|
1608
|
+
if (local_result != 0)
|
|
1609
|
+
{
|
|
1610
|
+
ibeta_fraction2_t<T> f(a, b, x, y);
|
|
1611
|
+
boost::math::uintmax_t max_terms = boost::math::policies::get_max_series_iterations<Policy>();
|
|
1612
|
+
T local_fract = boost::math::tools::continued_fraction_b(f, boost::math::policies::get_epsilon<T, Policy>(), max_terms);
|
|
1613
|
+
if (max_terms >= boost::math::policies::get_max_series_iterations<Policy>())
|
|
1614
|
+
{
|
|
1615
|
+
// Continued fraction failed, fall back to asymptotic expansion:
|
|
1616
|
+
fract = ibeta_large_ab(a, b, x, y, invert, normalised, pol);
|
|
1617
|
+
invert = false;
|
|
1618
|
+
}
|
|
1619
|
+
else{
|
|
1620
|
+
fract = local_result / local_fract;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
else
|
|
1624
|
+
fract = 0;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
if(p_derivative)
|
|
1629
|
+
{
|
|
1630
|
+
if(*p_derivative < 0)
|
|
1631
|
+
{
|
|
1632
|
+
*p_derivative = ibeta_power_terms(a, b, x, y, lanczos_type(), true, pol);
|
|
1633
|
+
}
|
|
1634
|
+
T div = y * x;
|
|
1635
|
+
|
|
1636
|
+
if(*p_derivative != 0)
|
|
1637
|
+
{
|
|
1638
|
+
if((tools::max_value<T>() * div < *p_derivative))
|
|
1639
|
+
{
|
|
1640
|
+
// overflow, return an arbitrarily large value:
|
|
1641
|
+
*p_derivative = tools::max_value<T>() / 2; // LCOV_EXCL_LINE Probably can only get here with denormalized x.
|
|
1642
|
+
}
|
|
1643
|
+
else
|
|
1644
|
+
{
|
|
1645
|
+
*p_derivative /= div;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
return invert ? (normalised ? 1 : boost::math::beta(a, b, pol)) - fract : fract;
|
|
1650
|
+
} // template <class T, class Lanczos>T ibeta_imp(T a, T b, T x, const Lanczos& l, bool inv, bool normalised)
|
|
1651
|
+
|
|
1652
|
+
template <class T, class Policy>
|
|
1653
|
+
BOOST_MATH_GPU_ENABLED inline T ibeta_imp(T a, T b, T x, const Policy& pol, bool inv, bool normalised)
|
|
1654
|
+
{
|
|
1655
|
+
return ibeta_imp(a, b, x, pol, inv, normalised, static_cast<T*>(nullptr));
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
template <class T, class Policy>
|
|
1659
|
+
BOOST_MATH_GPU_ENABLED T ibeta_derivative_imp(T a, T b, T x, const Policy& pol)
|
|
1660
|
+
{
|
|
1661
|
+
constexpr auto function = "ibeta_derivative<%1%>(%1%,%1%,%1%)";
|
|
1662
|
+
//
|
|
1663
|
+
// start with the usual error checks:
|
|
1664
|
+
//
|
|
1665
|
+
if (!(boost::math::isfinite)(a))
|
|
1666
|
+
return policies::raise_domain_error<T>(function, "The argument a to the incomplete beta function must be finite (got a=%1%).", a, pol);
|
|
1667
|
+
if (!(boost::math::isfinite)(b))
|
|
1668
|
+
return policies::raise_domain_error<T>(function, "The argument b to the incomplete beta function must be finite (got b=%1%).", b, pol);
|
|
1669
|
+
if (!(0 <= x && x <= 1))
|
|
1670
|
+
return policies::raise_domain_error<T>(function, "The argument x to the incomplete beta function must be in [0,1] (got x=%1%).", x, pol);
|
|
1671
|
+
|
|
1672
|
+
if(a <= 0)
|
|
1673
|
+
return policies::raise_domain_error<T>(function, "The argument a to the incomplete beta function must be greater than zero (got a=%1%).", a, pol);
|
|
1674
|
+
if(b <= 0)
|
|
1675
|
+
return policies::raise_domain_error<T>(function, "The argument b to the incomplete beta function must be greater than zero (got b=%1%).", b, pol);
|
|
1676
|
+
//
|
|
1677
|
+
// Now the corner cases:
|
|
1678
|
+
//
|
|
1679
|
+
if(x == 0)
|
|
1680
|
+
{
|
|
1681
|
+
return (a > 1) ? 0 :
|
|
1682
|
+
(a == 1) ? 1 / boost::math::beta(a, b, pol) : policies::raise_overflow_error<T>(function, nullptr, pol);
|
|
1683
|
+
}
|
|
1684
|
+
else if(x == 1)
|
|
1685
|
+
{
|
|
1686
|
+
return (b > 1) ? 0 :
|
|
1687
|
+
(b == 1) ? 1 / boost::math::beta(a, b, pol) : policies::raise_overflow_error<T>(function, nullptr, pol);
|
|
1688
|
+
}
|
|
1689
|
+
//
|
|
1690
|
+
// Now the regular cases:
|
|
1691
|
+
//
|
|
1692
|
+
typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
|
|
1693
|
+
T y = (1 - x) * x;
|
|
1694
|
+
T f1;
|
|
1695
|
+
if (!(boost::math::isinf)(1 / y))
|
|
1696
|
+
{
|
|
1697
|
+
f1 = ibeta_power_terms<T>(a, b, x, 1 - x, lanczos_type(), true, pol, 1 / y, function);
|
|
1698
|
+
}
|
|
1699
|
+
else
|
|
1700
|
+
{
|
|
1701
|
+
return (a > 1) ? 0 : (a == 1) ? 1 / boost::math::beta(a, b, pol) : policies::raise_overflow_error<T>(function, nullptr, pol);
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
return f1;
|
|
1705
|
+
}
|
|
1706
|
+
//
|
|
1707
|
+
// Some forwarding functions that disambiguate the third argument type:
|
|
1708
|
+
//
|
|
1709
|
+
template <class RT1, class RT2, class Policy>
|
|
1710
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2>::type
|
|
1711
|
+
beta(RT1 a, RT2 b, const Policy&, const boost::math::true_type*)
|
|
1712
|
+
{
|
|
1713
|
+
BOOST_FPU_EXCEPTION_GUARD
|
|
1714
|
+
typedef typename tools::promote_args<RT1, RT2>::type result_type;
|
|
1715
|
+
typedef typename policies::evaluation<result_type, Policy>::type value_type;
|
|
1716
|
+
typedef typename lanczos::lanczos<value_type, Policy>::type evaluation_type;
|
|
1717
|
+
typedef typename policies::normalise<
|
|
1718
|
+
Policy,
|
|
1719
|
+
policies::promote_float<false>,
|
|
1720
|
+
policies::promote_double<false>,
|
|
1721
|
+
policies::discrete_quantile<>,
|
|
1722
|
+
policies::assert_undefined<> >::type forwarding_policy;
|
|
1723
|
+
|
|
1724
|
+
return policies::checked_narrowing_cast<result_type, forwarding_policy>(detail::beta_imp(static_cast<value_type>(a), static_cast<value_type>(b), evaluation_type(), forwarding_policy()), "boost::math::beta<%1%>(%1%,%1%)");
|
|
1725
|
+
}
|
|
1726
|
+
template <class RT1, class RT2, class RT3>
|
|
1727
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1728
|
+
beta(RT1 a, RT2 b, RT3 x, const boost::math::false_type*)
|
|
1729
|
+
{
|
|
1730
|
+
return boost::math::beta(a, b, x, policies::policy<>());
|
|
1731
|
+
}
|
|
1732
|
+
} // namespace detail
|
|
1733
|
+
|
|
1734
|
+
//
|
|
1735
|
+
// The actual function entry-points now follow, these just figure out
|
|
1736
|
+
// which Lanczos approximation to use
|
|
1737
|
+
// and forward to the implementation functions:
|
|
1738
|
+
//
|
|
1739
|
+
template <class RT1, class RT2, class A>
|
|
1740
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, A>::type
|
|
1741
|
+
beta(RT1 a, RT2 b, A arg)
|
|
1742
|
+
{
|
|
1743
|
+
using tag = typename policies::is_policy<A>::type;
|
|
1744
|
+
using ReturnType = tools::promote_args_t<RT1, RT2, A>;
|
|
1745
|
+
return static_cast<ReturnType>(boost::math::detail::beta(a, b, arg, static_cast<tag*>(nullptr)));
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
template <class RT1, class RT2>
|
|
1749
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2>::type
|
|
1750
|
+
beta(RT1 a, RT2 b)
|
|
1751
|
+
{
|
|
1752
|
+
return boost::math::beta(a, b, policies::policy<>());
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
template <class RT1, class RT2, class RT3, class Policy>
|
|
1756
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1757
|
+
beta(RT1 a, RT2 b, RT3 x, const Policy&)
|
|
1758
|
+
{
|
|
1759
|
+
BOOST_FPU_EXCEPTION_GUARD
|
|
1760
|
+
typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
|
|
1761
|
+
typedef typename policies::evaluation<result_type, Policy>::type value_type;
|
|
1762
|
+
typedef typename policies::normalise<
|
|
1763
|
+
Policy,
|
|
1764
|
+
policies::promote_float<false>,
|
|
1765
|
+
policies::promote_double<false>,
|
|
1766
|
+
policies::discrete_quantile<>,
|
|
1767
|
+
policies::assert_undefined<> >::type forwarding_policy;
|
|
1768
|
+
|
|
1769
|
+
return policies::checked_narrowing_cast<result_type, forwarding_policy>(detail::ibeta_imp(static_cast<value_type>(a), static_cast<value_type>(b), static_cast<value_type>(x), forwarding_policy(), false, false), "boost::math::beta<%1%>(%1%,%1%,%1%)");
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
template <class RT1, class RT2, class RT3, class Policy>
|
|
1773
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1774
|
+
betac(RT1 a, RT2 b, RT3 x, const Policy&)
|
|
1775
|
+
{
|
|
1776
|
+
BOOST_FPU_EXCEPTION_GUARD
|
|
1777
|
+
typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
|
|
1778
|
+
typedef typename policies::evaluation<result_type, Policy>::type value_type;
|
|
1779
|
+
typedef typename policies::normalise<
|
|
1780
|
+
Policy,
|
|
1781
|
+
policies::promote_float<false>,
|
|
1782
|
+
policies::promote_double<false>,
|
|
1783
|
+
policies::discrete_quantile<>,
|
|
1784
|
+
policies::assert_undefined<> >::type forwarding_policy;
|
|
1785
|
+
|
|
1786
|
+
return policies::checked_narrowing_cast<result_type, forwarding_policy>(detail::ibeta_imp(static_cast<value_type>(a), static_cast<value_type>(b), static_cast<value_type>(x), forwarding_policy(), true, false), "boost::math::betac<%1%>(%1%,%1%,%1%)");
|
|
1787
|
+
}
|
|
1788
|
+
template <class RT1, class RT2, class RT3>
|
|
1789
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1790
|
+
betac(RT1 a, RT2 b, RT3 x)
|
|
1791
|
+
{
|
|
1792
|
+
return boost::math::betac(a, b, x, policies::policy<>());
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
template <class RT1, class RT2, class RT3, class Policy>
|
|
1796
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1797
|
+
ibeta(RT1 a, RT2 b, RT3 x, const Policy&)
|
|
1798
|
+
{
|
|
1799
|
+
BOOST_FPU_EXCEPTION_GUARD
|
|
1800
|
+
typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
|
|
1801
|
+
typedef typename policies::evaluation<result_type, Policy>::type value_type;
|
|
1802
|
+
typedef typename policies::normalise<
|
|
1803
|
+
Policy,
|
|
1804
|
+
policies::promote_float<false>,
|
|
1805
|
+
policies::promote_double<false>,
|
|
1806
|
+
policies::discrete_quantile<>,
|
|
1807
|
+
policies::assert_undefined<> >::type forwarding_policy;
|
|
1808
|
+
|
|
1809
|
+
return policies::checked_narrowing_cast<result_type, forwarding_policy>(detail::ibeta_imp(static_cast<value_type>(a), static_cast<value_type>(b), static_cast<value_type>(x), forwarding_policy(), false, true), "boost::math::ibeta<%1%>(%1%,%1%,%1%)");
|
|
1810
|
+
}
|
|
1811
|
+
template <class RT1, class RT2, class RT3>
|
|
1812
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1813
|
+
ibeta(RT1 a, RT2 b, RT3 x)
|
|
1814
|
+
{
|
|
1815
|
+
return boost::math::ibeta(a, b, x, policies::policy<>());
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
template <class RT1, class RT2, class RT3, class Policy>
|
|
1819
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1820
|
+
ibetac(RT1 a, RT2 b, RT3 x, const Policy&)
|
|
1821
|
+
{
|
|
1822
|
+
BOOST_FPU_EXCEPTION_GUARD
|
|
1823
|
+
typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
|
|
1824
|
+
typedef typename policies::evaluation<result_type, Policy>::type value_type;
|
|
1825
|
+
typedef typename policies::normalise<
|
|
1826
|
+
Policy,
|
|
1827
|
+
policies::promote_float<false>,
|
|
1828
|
+
policies::promote_double<false>,
|
|
1829
|
+
policies::discrete_quantile<>,
|
|
1830
|
+
policies::assert_undefined<> >::type forwarding_policy;
|
|
1831
|
+
|
|
1832
|
+
return policies::checked_narrowing_cast<result_type, forwarding_policy>(detail::ibeta_imp(static_cast<value_type>(a), static_cast<value_type>(b), static_cast<value_type>(x), forwarding_policy(), true, true), "boost::math::ibetac<%1%>(%1%,%1%,%1%)");
|
|
1833
|
+
}
|
|
1834
|
+
template <class RT1, class RT2, class RT3>
|
|
1835
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1836
|
+
ibetac(RT1 a, RT2 b, RT3 x)
|
|
1837
|
+
{
|
|
1838
|
+
return boost::math::ibetac(a, b, x, policies::policy<>());
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
template <class RT1, class RT2, class RT3, class Policy>
|
|
1842
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1843
|
+
ibeta_derivative(RT1 a, RT2 b, RT3 x, const Policy&)
|
|
1844
|
+
{
|
|
1845
|
+
BOOST_FPU_EXCEPTION_GUARD
|
|
1846
|
+
typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
|
|
1847
|
+
typedef typename policies::evaluation<result_type, Policy>::type value_type;
|
|
1848
|
+
typedef typename policies::normalise<
|
|
1849
|
+
Policy,
|
|
1850
|
+
policies::promote_float<false>,
|
|
1851
|
+
policies::promote_double<false>,
|
|
1852
|
+
policies::discrete_quantile<>,
|
|
1853
|
+
policies::assert_undefined<> >::type forwarding_policy;
|
|
1854
|
+
|
|
1855
|
+
return policies::checked_narrowing_cast<result_type, forwarding_policy>(detail::ibeta_derivative_imp(static_cast<value_type>(a), static_cast<value_type>(b), static_cast<value_type>(x), forwarding_policy()), "boost::math::ibeta_derivative<%1%>(%1%,%1%,%1%)");
|
|
1856
|
+
}
|
|
1857
|
+
template <class RT1, class RT2, class RT3>
|
|
1858
|
+
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<RT1, RT2, RT3>::type
|
|
1859
|
+
ibeta_derivative(RT1 a, RT2 b, RT3 x)
|
|
1860
|
+
{
|
|
1861
|
+
return boost::math::ibeta_derivative(a, b, x, policies::policy<>());
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
} // namespace math
|
|
1865
|
+
} // namespace boost
|
|
1866
|
+
|
|
1867
|
+
#include <boost/math/special_functions/detail/ibeta_inverse.hpp>
|
|
1868
|
+
#include <boost/math/special_functions/detail/ibeta_inv_ab.hpp>
|
|
1869
|
+
|
|
1870
|
+
#endif // BOOST_MATH_SPECIAL_BETA_HPP
|