@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,1700 @@
|
|
|
1
|
+
#include <valarray>
|
|
2
|
+
#include <iterator>
|
|
3
|
+
|
|
4
|
+
#include <symengine/prime_sieve.h>
|
|
5
|
+
#include <symengine/ntheory.h>
|
|
6
|
+
#include <symengine/rational.h>
|
|
7
|
+
#include <symengine/add.h>
|
|
8
|
+
#include <symengine/mul.h>
|
|
9
|
+
#include <symengine/pow.h>
|
|
10
|
+
#ifdef HAVE_SYMENGINE_ECM
|
|
11
|
+
#include <ecm.h>
|
|
12
|
+
#endif // HAVE_SYMENGINE_ECM
|
|
13
|
+
#ifdef HAVE_SYMENGINE_PRIMESIEVE
|
|
14
|
+
#include <primesieve.hpp>
|
|
15
|
+
#endif // HAVE_SYMENGINE_PRIMESIEVE
|
|
16
|
+
#ifdef HAVE_SYMENGINE_ARB
|
|
17
|
+
#include <mpfr.h>
|
|
18
|
+
#include <flint/fmpq.h>
|
|
19
|
+
#include <arb.h>
|
|
20
|
+
#include <bernoulli.h>
|
|
21
|
+
#endif // HAVE_SYMENGINE_ARB
|
|
22
|
+
#ifndef HAVE_SYMENGINE_GMP
|
|
23
|
+
#endif // !HAVE_SYMENGINE_GMP
|
|
24
|
+
|
|
25
|
+
namespace SymEngine
|
|
26
|
+
{
|
|
27
|
+
|
|
28
|
+
// Basic number theoretic functions
|
|
29
|
+
RCP<const Integer> gcd(const Integer &a, const Integer &b)
|
|
30
|
+
{
|
|
31
|
+
integer_class g;
|
|
32
|
+
mp_gcd(g, a.as_integer_class(), b.as_integer_class());
|
|
33
|
+
return integer(std::move(g));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void gcd_ext(const Ptr<RCP<const Integer>> &g, const Ptr<RCP<const Integer>> &s,
|
|
37
|
+
const Ptr<RCP<const Integer>> &t, const Integer &a,
|
|
38
|
+
const Integer &b)
|
|
39
|
+
{
|
|
40
|
+
integer_class g_, s_, t_;
|
|
41
|
+
mp_gcdext(g_, s_, t_, a.as_integer_class(), b.as_integer_class());
|
|
42
|
+
*g = integer(std::move(g_));
|
|
43
|
+
*s = integer(std::move(s_));
|
|
44
|
+
*t = integer(std::move(t_));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
RCP<const Integer> lcm(const Integer &a, const Integer &b)
|
|
48
|
+
{
|
|
49
|
+
integer_class c;
|
|
50
|
+
mp_lcm(c, a.as_integer_class(), b.as_integer_class());
|
|
51
|
+
return integer(std::move(c));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
int mod_inverse(const Ptr<RCP<const Integer>> &b, const Integer &a,
|
|
55
|
+
const Integer &m)
|
|
56
|
+
{
|
|
57
|
+
int ret_val;
|
|
58
|
+
integer_class inv_t;
|
|
59
|
+
ret_val = mp_invert(inv_t, a.as_integer_class(), m.as_integer_class());
|
|
60
|
+
*b = integer(std::move(inv_t));
|
|
61
|
+
return ret_val;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
RCP<const Integer> mod(const Integer &n, const Integer &d)
|
|
65
|
+
{
|
|
66
|
+
return integer(n.as_integer_class() % d.as_integer_class());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
RCP<const Integer> quotient(const Integer &n, const Integer &d)
|
|
70
|
+
{
|
|
71
|
+
return integer(n.as_integer_class() / d.as_integer_class());
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
void quotient_mod(const Ptr<RCP<const Integer>> &q,
|
|
75
|
+
const Ptr<RCP<const Integer>> &r, const Integer &n,
|
|
76
|
+
const Integer &d)
|
|
77
|
+
{
|
|
78
|
+
integer_class _q, _r;
|
|
79
|
+
mp_tdiv_qr(_q, _r, n.as_integer_class(), d.as_integer_class());
|
|
80
|
+
*q = integer(std::move(_q));
|
|
81
|
+
*r = integer(std::move(_r));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
RCP<const Integer> mod_f(const Integer &n, const Integer &d)
|
|
85
|
+
{
|
|
86
|
+
integer_class q;
|
|
87
|
+
mp_fdiv_r(q, n.as_integer_class(), d.as_integer_class());
|
|
88
|
+
return integer(std::move(q));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
RCP<const Integer> quotient_f(const Integer &n, const Integer &d)
|
|
92
|
+
{
|
|
93
|
+
integer_class q;
|
|
94
|
+
mp_fdiv_q(q, n.as_integer_class(), d.as_integer_class());
|
|
95
|
+
return integer(std::move(q));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
void quotient_mod_f(const Ptr<RCP<const Integer>> &q,
|
|
99
|
+
const Ptr<RCP<const Integer>> &r, const Integer &n,
|
|
100
|
+
const Integer &d)
|
|
101
|
+
{
|
|
102
|
+
integer_class _q, _r;
|
|
103
|
+
mp_fdiv_qr(_q, _r, n.as_integer_class(), d.as_integer_class());
|
|
104
|
+
*q = integer(std::move(_q));
|
|
105
|
+
*r = integer(std::move(_r));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
RCP<const Integer> fibonacci(unsigned long n)
|
|
109
|
+
{
|
|
110
|
+
integer_class f;
|
|
111
|
+
mp_fib_ui(f, n);
|
|
112
|
+
return integer(std::move(f));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
void fibonacci2(const Ptr<RCP<const Integer>> &g,
|
|
116
|
+
const Ptr<RCP<const Integer>> &s, unsigned long n)
|
|
117
|
+
{
|
|
118
|
+
integer_class g_t;
|
|
119
|
+
integer_class s_t;
|
|
120
|
+
mp_fib2_ui(g_t, s_t, n);
|
|
121
|
+
*g = integer(std::move(g_t));
|
|
122
|
+
*s = integer(std::move(s_t));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
RCP<const Integer> lucas(unsigned long n)
|
|
126
|
+
{
|
|
127
|
+
integer_class f;
|
|
128
|
+
mp_lucnum_ui(f, n);
|
|
129
|
+
return integer(std::move(f));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
void lucas2(const Ptr<RCP<const Integer>> &g, const Ptr<RCP<const Integer>> &s,
|
|
133
|
+
unsigned long n)
|
|
134
|
+
{
|
|
135
|
+
integer_class g_t;
|
|
136
|
+
integer_class s_t;
|
|
137
|
+
mp_lucnum2_ui(g_t, s_t, n);
|
|
138
|
+
*g = integer(std::move(g_t));
|
|
139
|
+
*s = integer(std::move(s_t));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Binomial Coefficient
|
|
143
|
+
RCP<const Integer> binomial(const Integer &n, unsigned long k)
|
|
144
|
+
{
|
|
145
|
+
integer_class f;
|
|
146
|
+
mp_bin_ui(f, n.as_integer_class(), k);
|
|
147
|
+
return integer(std::move(f));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Factorial
|
|
151
|
+
RCP<const Integer> factorial(unsigned long n)
|
|
152
|
+
{
|
|
153
|
+
integer_class f;
|
|
154
|
+
mp_fac_ui(f, n);
|
|
155
|
+
return integer(std::move(f));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Returns true if `b` divides `a` without reminder
|
|
159
|
+
bool divides(const Integer &a, const Integer &b)
|
|
160
|
+
{
|
|
161
|
+
return mp_divisible_p(a.as_integer_class(), b.as_integer_class()) != 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Prime functions
|
|
165
|
+
int probab_prime_p(const Integer &a, unsigned reps)
|
|
166
|
+
{
|
|
167
|
+
return mp_probab_prime_p(a.as_integer_class(), reps);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
RCP<const Integer> nextprime(const Integer &a)
|
|
171
|
+
{
|
|
172
|
+
integer_class c;
|
|
173
|
+
mp_nextprime(c, a.as_integer_class());
|
|
174
|
+
return integer(std::move(c));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
namespace
|
|
178
|
+
{
|
|
179
|
+
// Factoring by Trial division using primes only
|
|
180
|
+
int _factor_trial_division_sieve(integer_class &factor, const integer_class &N)
|
|
181
|
+
{
|
|
182
|
+
integer_class sqrtN = mp_sqrt(N);
|
|
183
|
+
unsigned long limit = mp_get_ui(sqrtN);
|
|
184
|
+
if (limit > std::numeric_limits<unsigned>::max())
|
|
185
|
+
throw SymEngineException("N too large to factor");
|
|
186
|
+
Sieve::iterator pi(numeric_cast<unsigned>(limit));
|
|
187
|
+
unsigned p;
|
|
188
|
+
while ((p = pi.next_prime()) <= limit) {
|
|
189
|
+
if (N % p == 0) {
|
|
190
|
+
factor = p;
|
|
191
|
+
return 1;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return 0;
|
|
195
|
+
}
|
|
196
|
+
// Factor using lehman method.
|
|
197
|
+
int _factor_lehman_method(integer_class &rop, const integer_class &n)
|
|
198
|
+
{
|
|
199
|
+
if (n < 21)
|
|
200
|
+
throw SymEngineException("Require n >= 21 to use lehman method");
|
|
201
|
+
|
|
202
|
+
int ret_val = 0;
|
|
203
|
+
integer_class u_bound;
|
|
204
|
+
|
|
205
|
+
mp_root(u_bound, n, 3);
|
|
206
|
+
u_bound = u_bound + 1;
|
|
207
|
+
|
|
208
|
+
Sieve::iterator pi(numeric_cast<unsigned>(mp_get_ui(u_bound)));
|
|
209
|
+
unsigned p;
|
|
210
|
+
while ((p = pi.next_prime()) <= mp_get_ui(u_bound)) {
|
|
211
|
+
if (n % p == 0) {
|
|
212
|
+
rop = n / p;
|
|
213
|
+
ret_val = 1;
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (not ret_val) {
|
|
219
|
+
|
|
220
|
+
integer_class k, a, b, l;
|
|
221
|
+
|
|
222
|
+
k = 1;
|
|
223
|
+
|
|
224
|
+
while (k <= u_bound) {
|
|
225
|
+
a = mp_sqrt(4 * k * n);
|
|
226
|
+
mp_root(b, n, 6);
|
|
227
|
+
mp_root(l, k, 2);
|
|
228
|
+
b = b / (4 * l);
|
|
229
|
+
b = b + a;
|
|
230
|
+
|
|
231
|
+
while (a <= b) {
|
|
232
|
+
l = a * a - 4 * k * n;
|
|
233
|
+
if (mp_perfect_square_p(l)) {
|
|
234
|
+
b = a + mp_sqrt(l);
|
|
235
|
+
mp_gcd(rop, n, b);
|
|
236
|
+
ret_val = 1;
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
a = a + 1;
|
|
240
|
+
}
|
|
241
|
+
if (ret_val)
|
|
242
|
+
break;
|
|
243
|
+
k = k + 1;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
return ret_val;
|
|
248
|
+
}
|
|
249
|
+
} // anonymous namespace
|
|
250
|
+
|
|
251
|
+
int factor_lehman_method(const Ptr<RCP<const Integer>> &f, const Integer &n)
|
|
252
|
+
{
|
|
253
|
+
int ret_val;
|
|
254
|
+
integer_class rop;
|
|
255
|
+
|
|
256
|
+
ret_val = _factor_lehman_method(rop, n.as_integer_class());
|
|
257
|
+
*f = integer(std::move(rop));
|
|
258
|
+
return ret_val;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
namespace
|
|
262
|
+
{
|
|
263
|
+
// Factor using Pollard's p-1 method
|
|
264
|
+
int _factor_pollard_pm1_method(integer_class &rop, const integer_class &n,
|
|
265
|
+
const integer_class &c, unsigned B)
|
|
266
|
+
{
|
|
267
|
+
if (n < 4 or B < 3)
|
|
268
|
+
throw SymEngineException(
|
|
269
|
+
"Require n > 3 and B > 2 to use Pollard's p-1 method");
|
|
270
|
+
|
|
271
|
+
integer_class m, _c;
|
|
272
|
+
_c = c;
|
|
273
|
+
|
|
274
|
+
Sieve::iterator pi(B);
|
|
275
|
+
unsigned p;
|
|
276
|
+
while ((p = pi.next_prime()) <= B) {
|
|
277
|
+
m = 1;
|
|
278
|
+
// calculate log(p, B), this can be improved
|
|
279
|
+
while (m <= B / p) {
|
|
280
|
+
m = m * p;
|
|
281
|
+
}
|
|
282
|
+
mp_powm(_c, _c, m, n);
|
|
283
|
+
}
|
|
284
|
+
_c = _c - 1;
|
|
285
|
+
mp_gcd(rop, _c, n);
|
|
286
|
+
|
|
287
|
+
if (rop == 1 or rop == n)
|
|
288
|
+
return 0;
|
|
289
|
+
else
|
|
290
|
+
return 1;
|
|
291
|
+
}
|
|
292
|
+
} // anonymous namespace
|
|
293
|
+
|
|
294
|
+
int factor_pollard_pm1_method(const Ptr<RCP<const Integer>> &f,
|
|
295
|
+
const Integer &n, unsigned B, unsigned retries)
|
|
296
|
+
{
|
|
297
|
+
int ret_val = 0;
|
|
298
|
+
integer_class rop, nm4, c;
|
|
299
|
+
|
|
300
|
+
mp_randstate state;
|
|
301
|
+
nm4 = n.as_integer_class() - 4;
|
|
302
|
+
|
|
303
|
+
for (unsigned i = 0; i < retries and ret_val == 0; ++i) {
|
|
304
|
+
state.urandomint(c, nm4);
|
|
305
|
+
c += 2;
|
|
306
|
+
ret_val = _factor_pollard_pm1_method(rop, n.as_integer_class(), c, B);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (ret_val != 0)
|
|
310
|
+
*f = integer(std::move(rop));
|
|
311
|
+
return ret_val;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
namespace
|
|
315
|
+
{
|
|
316
|
+
// Factor using Pollard's rho method
|
|
317
|
+
int _factor_pollard_rho_method(integer_class &rop, const integer_class &n,
|
|
318
|
+
const integer_class &a, const integer_class &s,
|
|
319
|
+
unsigned steps = 10000)
|
|
320
|
+
{
|
|
321
|
+
if (n < 5)
|
|
322
|
+
throw SymEngineException("Require n > 4 to use pollard's-rho method");
|
|
323
|
+
|
|
324
|
+
integer_class u, v, g, m;
|
|
325
|
+
u = s;
|
|
326
|
+
v = s;
|
|
327
|
+
|
|
328
|
+
for (unsigned i = 0; i < steps; ++i) {
|
|
329
|
+
u = (u * u + a) % n;
|
|
330
|
+
v = (v * v + a) % n;
|
|
331
|
+
v = (v * v + a) % n;
|
|
332
|
+
m = u - v;
|
|
333
|
+
mp_gcd(g, m, n);
|
|
334
|
+
|
|
335
|
+
if (g == n)
|
|
336
|
+
return 0;
|
|
337
|
+
if (g == 1)
|
|
338
|
+
continue;
|
|
339
|
+
rop = g;
|
|
340
|
+
return 1;
|
|
341
|
+
}
|
|
342
|
+
return 0;
|
|
343
|
+
}
|
|
344
|
+
} // namespace
|
|
345
|
+
|
|
346
|
+
int factor_pollard_rho_method(const Ptr<RCP<const Integer>> &f,
|
|
347
|
+
const Integer &n, unsigned retries)
|
|
348
|
+
{
|
|
349
|
+
int ret_val = 0;
|
|
350
|
+
integer_class rop, nm1, nm4, a, s;
|
|
351
|
+
mp_randstate state;
|
|
352
|
+
nm1 = n.as_integer_class() - 1;
|
|
353
|
+
nm4 = n.as_integer_class() - 4;
|
|
354
|
+
|
|
355
|
+
for (unsigned i = 0; i < retries and ret_val == 0; ++i) {
|
|
356
|
+
state.urandomint(a, nm1);
|
|
357
|
+
state.urandomint(s, nm4);
|
|
358
|
+
s += 1;
|
|
359
|
+
ret_val = _factor_pollard_rho_method(rop, n.as_integer_class(), a, s);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (ret_val != 0)
|
|
363
|
+
*f = integer(std::move(rop));
|
|
364
|
+
return ret_val;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// Factorization
|
|
368
|
+
int factor(const Ptr<RCP<const Integer>> &f, const Integer &n, double B1)
|
|
369
|
+
{
|
|
370
|
+
int ret_val = 0;
|
|
371
|
+
integer_class _n, _f;
|
|
372
|
+
|
|
373
|
+
_n = n.as_integer_class();
|
|
374
|
+
|
|
375
|
+
#ifdef HAVE_SYMENGINE_ECM
|
|
376
|
+
if (mp_perfect_power_p(_n)) {
|
|
377
|
+
|
|
378
|
+
unsigned long int i = 1;
|
|
379
|
+
integer_class m, rem;
|
|
380
|
+
rem = 1; // Any non zero number
|
|
381
|
+
m = 2; // set `m` to 2**i, i = 1 at the begining
|
|
382
|
+
|
|
383
|
+
// calculate log2n, this can be improved
|
|
384
|
+
for (; m < _n; ++i)
|
|
385
|
+
m = m * 2;
|
|
386
|
+
|
|
387
|
+
// eventually `rem` = 0 zero as `n` is a perfect power. `f_t` will
|
|
388
|
+
// be set to a factor of `n` when that happens
|
|
389
|
+
while (i > 1 and rem != 0) {
|
|
390
|
+
mp_rootrem(_f, rem, _n, i);
|
|
391
|
+
--i;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
ret_val = 1;
|
|
395
|
+
} else {
|
|
396
|
+
|
|
397
|
+
if (mp_probab_prime_p(_n, 25) > 0) { // most probably, n is a prime
|
|
398
|
+
ret_val = 0;
|
|
399
|
+
_f = _n;
|
|
400
|
+
} else {
|
|
401
|
+
|
|
402
|
+
for (int i = 0; i < 10 and not ret_val; ++i)
|
|
403
|
+
ret_val = ecm_factor(get_mpz_t(_f), get_mpz_t(_n), B1, nullptr);
|
|
404
|
+
mp_demote(_f);
|
|
405
|
+
if (not ret_val)
|
|
406
|
+
throw SymEngineException(
|
|
407
|
+
"ECM failed to factor the given number");
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
#else
|
|
411
|
+
// B1 is discarded if gmp-ecm is not installed
|
|
412
|
+
ret_val = _factor_trial_division_sieve(_f, _n);
|
|
413
|
+
#endif // HAVE_SYMENGINE_ECM
|
|
414
|
+
*f = integer(std::move(_f));
|
|
415
|
+
|
|
416
|
+
return ret_val;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
int factor_trial_division(const Ptr<RCP<const Integer>> &f, const Integer &n)
|
|
420
|
+
{
|
|
421
|
+
int ret_val;
|
|
422
|
+
integer_class factor;
|
|
423
|
+
ret_val = _factor_trial_division_sieve(factor, n.as_integer_class());
|
|
424
|
+
if (ret_val == 1)
|
|
425
|
+
*f = integer(std::move(factor));
|
|
426
|
+
return ret_val;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
void prime_factors(std::vector<RCP<const Integer>> &prime_list,
|
|
430
|
+
const Integer &n)
|
|
431
|
+
{
|
|
432
|
+
integer_class sqrtN;
|
|
433
|
+
integer_class _n = n.as_integer_class();
|
|
434
|
+
if (_n == 0)
|
|
435
|
+
return;
|
|
436
|
+
if (_n < 0)
|
|
437
|
+
_n *= -1;
|
|
438
|
+
|
|
439
|
+
sqrtN = mp_sqrt(_n);
|
|
440
|
+
auto limit = mp_get_ui(sqrtN);
|
|
441
|
+
if (not mp_fits_ulong_p(sqrtN)
|
|
442
|
+
or limit > std::numeric_limits<unsigned>::max())
|
|
443
|
+
throw SymEngineException("N too large to factor");
|
|
444
|
+
Sieve::iterator pi(numeric_cast<unsigned>(limit));
|
|
445
|
+
unsigned p;
|
|
446
|
+
|
|
447
|
+
while ((p = pi.next_prime()) <= limit) {
|
|
448
|
+
while (_n % p == 0) {
|
|
449
|
+
prime_list.push_back(integer(p));
|
|
450
|
+
_n = _n / p;
|
|
451
|
+
}
|
|
452
|
+
if (_n == 1)
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
if (not(_n == 1))
|
|
456
|
+
prime_list.push_back(integer(std::move(_n)));
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
void prime_factor_multiplicities(map_integer_uint &primes_mul, const Integer &n)
|
|
460
|
+
{
|
|
461
|
+
integer_class sqrtN;
|
|
462
|
+
integer_class _n = n.as_integer_class();
|
|
463
|
+
unsigned count;
|
|
464
|
+
if (_n == 0)
|
|
465
|
+
return;
|
|
466
|
+
if (_n < 0)
|
|
467
|
+
_n *= -1;
|
|
468
|
+
|
|
469
|
+
sqrtN = mp_sqrt(_n);
|
|
470
|
+
auto limit = mp_get_ui(sqrtN);
|
|
471
|
+
if (not mp_fits_ulong_p(sqrtN)
|
|
472
|
+
or limit > std::numeric_limits<unsigned>::max())
|
|
473
|
+
throw SymEngineException("N too large to factor");
|
|
474
|
+
Sieve::iterator pi(numeric_cast<unsigned>(limit));
|
|
475
|
+
|
|
476
|
+
unsigned p;
|
|
477
|
+
while ((p = pi.next_prime()) <= limit) {
|
|
478
|
+
count = 0;
|
|
479
|
+
while (_n % p == 0) { // when a prime factor is found, we divide
|
|
480
|
+
++count; // _n by that prime as much as we can
|
|
481
|
+
_n = _n / p;
|
|
482
|
+
}
|
|
483
|
+
if (count > 0) {
|
|
484
|
+
insert(primes_mul, integer(p), count);
|
|
485
|
+
if (_n == 1)
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
if (not(_n == 1))
|
|
490
|
+
insert(primes_mul, integer(std::move(_n)), 1);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
RCP<const Number> bernoulli(unsigned long n)
|
|
494
|
+
{
|
|
495
|
+
#ifdef HAVE_SYMENGINE_ARB
|
|
496
|
+
fmpq_t res;
|
|
497
|
+
fmpq_init(res);
|
|
498
|
+
bernoulli_fmpq_ui(res, n);
|
|
499
|
+
mpq_t a;
|
|
500
|
+
mpq_init(a);
|
|
501
|
+
fmpq_get_mpq(a, res);
|
|
502
|
+
rational_class b(a);
|
|
503
|
+
fmpq_clear(res);
|
|
504
|
+
mpq_clear(a);
|
|
505
|
+
return Rational::from_mpq(std::move(b));
|
|
506
|
+
#else
|
|
507
|
+
// TODO: implement a faster algorithm
|
|
508
|
+
std::vector<rational_class> v(n + 1);
|
|
509
|
+
for (unsigned m = 0; m <= n; ++m) {
|
|
510
|
+
v[m] = rational_class(1u, m + 1);
|
|
511
|
+
|
|
512
|
+
for (unsigned j = m; j >= 1; --j) {
|
|
513
|
+
v[j - 1] = j * (v[j - 1] - v[j]);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return Rational::from_mpq(v[0]);
|
|
517
|
+
#endif
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
RCP<const Number> harmonic(unsigned long n, long m)
|
|
521
|
+
{
|
|
522
|
+
rational_class res(0);
|
|
523
|
+
if (m == 1) {
|
|
524
|
+
for (unsigned i = 1; i <= n; ++i) {
|
|
525
|
+
res += rational_class(1u, i);
|
|
526
|
+
}
|
|
527
|
+
return Rational::from_mpq(res);
|
|
528
|
+
} else {
|
|
529
|
+
for (unsigned i = 1; i <= n; ++i) {
|
|
530
|
+
if (m > 0) {
|
|
531
|
+
rational_class t(1u, i);
|
|
532
|
+
#if SYMENGINE_INTEGER_CLASS != SYMENGINE_BOOSTMP
|
|
533
|
+
mp_pow_ui(get_den(t), get_den(t), m);
|
|
534
|
+
#else
|
|
535
|
+
mp_pow_ui(t, t, m);
|
|
536
|
+
#endif
|
|
537
|
+
res += t;
|
|
538
|
+
} else {
|
|
539
|
+
integer_class t(i);
|
|
540
|
+
mp_pow_ui(t, t, static_cast<unsigned long>(-m));
|
|
541
|
+
res += t;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
return Rational::from_mpq(res);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// References : Cohen H., A course in computational algebraic number theory
|
|
549
|
+
// (1996), page 21.
|
|
550
|
+
bool crt(const Ptr<RCP<const Integer>> &R,
|
|
551
|
+
const std::vector<RCP<const Integer>> &rem,
|
|
552
|
+
const std::vector<RCP<const Integer>> &mod)
|
|
553
|
+
{
|
|
554
|
+
if (mod.size() > rem.size())
|
|
555
|
+
throw SymEngineException("Too few remainders");
|
|
556
|
+
if (mod.size() == 0)
|
|
557
|
+
throw SymEngineException("Moduli vector cannot be empty");
|
|
558
|
+
|
|
559
|
+
integer_class m, r, g, s, t;
|
|
560
|
+
m = mod[0]->as_integer_class();
|
|
561
|
+
r = rem[0]->as_integer_class();
|
|
562
|
+
|
|
563
|
+
for (unsigned i = 1; i < mod.size(); ++i) {
|
|
564
|
+
mp_gcdext(g, s, t, m, mod[i]->as_integer_class());
|
|
565
|
+
// g = s * m + t * mod[i]
|
|
566
|
+
t = rem[i]->as_integer_class() - r;
|
|
567
|
+
if (not mp_divisible_p(t, g))
|
|
568
|
+
return false;
|
|
569
|
+
r += m * s * (t / g); // r += m * (m**-1 mod[i]/g)* (rem[i] - r) / g
|
|
570
|
+
m *= mod[i]->as_integer_class() / g;
|
|
571
|
+
mp_fdiv_r(r, r, m);
|
|
572
|
+
}
|
|
573
|
+
*R = integer(std::move(r));
|
|
574
|
+
return true;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
namespace
|
|
578
|
+
{
|
|
579
|
+
// Crt over a cartesian product of vectors (Assuming that moduli are pairwise
|
|
580
|
+
// relatively prime).
|
|
581
|
+
void _crt_cartesian(std::vector<RCP<const Integer>> &R,
|
|
582
|
+
const std::vector<std::vector<RCP<const Integer>>> &rem,
|
|
583
|
+
const std::vector<RCP<const Integer>> &mod)
|
|
584
|
+
{
|
|
585
|
+
if (mod.size() > rem.size())
|
|
586
|
+
throw SymEngineException("Too few remainders");
|
|
587
|
+
if (mod.size() == 0)
|
|
588
|
+
throw SymEngineException("Moduli vector cannot be empty");
|
|
589
|
+
integer_class m, _m, r, s, t;
|
|
590
|
+
m = mod[0]->as_integer_class();
|
|
591
|
+
R = rem[0];
|
|
592
|
+
|
|
593
|
+
for (unsigned i = 1; i < mod.size(); ++i) {
|
|
594
|
+
std::vector<RCP<const Integer>> rem2;
|
|
595
|
+
mp_invert(s, m, mod[i]->as_integer_class());
|
|
596
|
+
_m = m;
|
|
597
|
+
m *= mod[i]->as_integer_class();
|
|
598
|
+
for (auto &elem : R) {
|
|
599
|
+
for (auto &_k : rem[i]) {
|
|
600
|
+
r = elem->as_integer_class();
|
|
601
|
+
r += _m * s * (_k->as_integer_class() - r);
|
|
602
|
+
mp_fdiv_r(r, r, m);
|
|
603
|
+
rem2.push_back(integer(r));
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
R = rem2;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// Tests whether n is a prime power and finds a prime p and e such that n =
|
|
611
|
+
// p**e.
|
|
612
|
+
bool _prime_power(integer_class &p, integer_class &e, const integer_class &n)
|
|
613
|
+
{
|
|
614
|
+
if (n < 2)
|
|
615
|
+
return false;
|
|
616
|
+
integer_class _n = n, temp;
|
|
617
|
+
e = 1;
|
|
618
|
+
unsigned i = 2;
|
|
619
|
+
while (mp_perfect_power_p(_n) and _n >= 2) {
|
|
620
|
+
if (mp_root(temp, _n, i)) {
|
|
621
|
+
e *= i;
|
|
622
|
+
_n = temp;
|
|
623
|
+
} else {
|
|
624
|
+
++i;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
if (mp_probab_prime_p(_n, 25)) {
|
|
628
|
+
p = _n;
|
|
629
|
+
return true;
|
|
630
|
+
}
|
|
631
|
+
return false;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
// Computes a primitive root modulo p**e or 2*p**e where p is an odd prime.
|
|
635
|
+
// References : Cohen H., A course in computational algebraic number theory
|
|
636
|
+
// (2009), pages 25-27.
|
|
637
|
+
void _primitive_root(integer_class &g, const integer_class &p,
|
|
638
|
+
const integer_class &e, bool even = false)
|
|
639
|
+
{
|
|
640
|
+
std::vector<RCP<const Integer>> primes;
|
|
641
|
+
prime_factors(primes, *integer(p - 1));
|
|
642
|
+
|
|
643
|
+
integer_class t;
|
|
644
|
+
g = 2;
|
|
645
|
+
while (g < p) {
|
|
646
|
+
bool root = true;
|
|
647
|
+
for (const auto &it : primes) {
|
|
648
|
+
t = it->as_integer_class();
|
|
649
|
+
t = (p - 1) / t;
|
|
650
|
+
mp_powm(t, g, t, p);
|
|
651
|
+
if (t == 1) { // If g**(p-1)/q is 1 then g is not a primitive root.
|
|
652
|
+
root = false;
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
if (root)
|
|
657
|
+
break;
|
|
658
|
+
++g;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (e > 1) {
|
|
662
|
+
t = p * p;
|
|
663
|
+
integer_class pm1 = p - 1;
|
|
664
|
+
mp_powm(t, g, pm1, t);
|
|
665
|
+
if (t == 1) { // If g**(p-1) mod (p**2) == 1 then g + p is a primitive
|
|
666
|
+
// root.
|
|
667
|
+
g += p;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
if (even and g % 2 == 0) {
|
|
671
|
+
mp_pow_ui(t, p, mp_get_ui(e));
|
|
672
|
+
g += t; // If g is even then root of 2*p**e is g + p**e.
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
} // anonymous namespace
|
|
677
|
+
|
|
678
|
+
bool primitive_root(const Ptr<RCP<const Integer>> &g, const Integer &n)
|
|
679
|
+
{
|
|
680
|
+
integer_class _n = n.as_integer_class();
|
|
681
|
+
if (_n < 0)
|
|
682
|
+
_n = -_n;
|
|
683
|
+
if (_n <= 1)
|
|
684
|
+
return false;
|
|
685
|
+
if (_n < 5) {
|
|
686
|
+
*g = integer(_n - 1);
|
|
687
|
+
return true;
|
|
688
|
+
}
|
|
689
|
+
bool even = false;
|
|
690
|
+
if (_n % 2 == 0) {
|
|
691
|
+
if (_n % 4 == 0) {
|
|
692
|
+
return false; // If n mod 4 == 0 and n > 4, then no primitive roots.
|
|
693
|
+
}
|
|
694
|
+
_n /= 2;
|
|
695
|
+
even = true;
|
|
696
|
+
}
|
|
697
|
+
integer_class p, e;
|
|
698
|
+
if (not _prime_power(p, e, _n))
|
|
699
|
+
return false;
|
|
700
|
+
_primitive_root(_n, p, e, even);
|
|
701
|
+
*g = integer(std::move(_n));
|
|
702
|
+
return true;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
namespace
|
|
706
|
+
{
|
|
707
|
+
// Computes primitive roots modulo p**e or 2*p**e where p is an odd prime.
|
|
708
|
+
// References :
|
|
709
|
+
// [1] Cohen H., A course in computational algebraic number theory (1996), pages
|
|
710
|
+
// 25-27.
|
|
711
|
+
// [2] Hackman P., Elementary number theory (2009), page 28.
|
|
712
|
+
void _primitive_root_list(std::vector<RCP<const Integer>> &roots,
|
|
713
|
+
const integer_class &p, const integer_class &e,
|
|
714
|
+
bool even = false)
|
|
715
|
+
{
|
|
716
|
+
integer_class g, h, d, t, pe2, n, pm1;
|
|
717
|
+
_primitive_root(g, p, integer_class(1),
|
|
718
|
+
false); // Find one primitive root for p.
|
|
719
|
+
h = 1;
|
|
720
|
+
pm1 = p - 1;
|
|
721
|
+
// Generate other primitive roots for p. h = g**i and gcd(i, p-1) = 1.
|
|
722
|
+
// Ref[2]
|
|
723
|
+
mp_pow_ui(n, p, mp_get_ui(e));
|
|
724
|
+
for (unsigned long i = 1; i < p; ++i) {
|
|
725
|
+
h *= g;
|
|
726
|
+
h %= p;
|
|
727
|
+
mp_gcd(d, pm1, integer_class(i));
|
|
728
|
+
if (d == 1) {
|
|
729
|
+
if (e == 1) {
|
|
730
|
+
if (even and h % 2 == 0)
|
|
731
|
+
roots.push_back(integer(h + n));
|
|
732
|
+
else
|
|
733
|
+
roots.push_back(integer(h));
|
|
734
|
+
} else {
|
|
735
|
+
integer_class pp = p * p;
|
|
736
|
+
// Find d such that (h + d*p)**(p-1) mod (p**2) == 1. Ref[1]
|
|
737
|
+
// h**(p-1) - 1 = d*p*h**(p-2)
|
|
738
|
+
// d = (h - h**(2-p)) / p
|
|
739
|
+
t = 2 - p;
|
|
740
|
+
mp_powm(d, h, t, pp);
|
|
741
|
+
d = ((h - d) / p + p) % p;
|
|
742
|
+
t = h;
|
|
743
|
+
// t = h + i * p + j * p * p and i != d
|
|
744
|
+
mp_pow_ui(pe2, p, mp_get_ui(e) - 2);
|
|
745
|
+
for (unsigned long j = 0; j < pe2; ++j) {
|
|
746
|
+
for (unsigned long i = 0; i < p; ++i) {
|
|
747
|
+
if (i != d) {
|
|
748
|
+
if (even and t % 2 == 0)
|
|
749
|
+
roots.push_back(integer(t + n));
|
|
750
|
+
else
|
|
751
|
+
roots.push_back(integer(t));
|
|
752
|
+
}
|
|
753
|
+
t += p;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
} //_primitive_root_list
|
|
760
|
+
} // anonymous namespace
|
|
761
|
+
|
|
762
|
+
void primitive_root_list(std::vector<RCP<const Integer>> &roots,
|
|
763
|
+
const Integer &n)
|
|
764
|
+
{
|
|
765
|
+
integer_class _n = n.as_integer_class();
|
|
766
|
+
if (_n < 0)
|
|
767
|
+
_n = -_n;
|
|
768
|
+
if (_n <= 1)
|
|
769
|
+
return;
|
|
770
|
+
if (_n < 5) {
|
|
771
|
+
roots.push_back(integer(_n - 1));
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
bool even = false;
|
|
775
|
+
if (_n % 2 == 0) {
|
|
776
|
+
if (_n % 4 == 0) {
|
|
777
|
+
return; // If n%4 == 0 and n > 4, then no primitive roots.
|
|
778
|
+
}
|
|
779
|
+
_n /= 2;
|
|
780
|
+
even = true;
|
|
781
|
+
}
|
|
782
|
+
integer_class p, e;
|
|
783
|
+
if (not _prime_power(p, e, _n))
|
|
784
|
+
return;
|
|
785
|
+
_primitive_root_list(roots, p, e, even);
|
|
786
|
+
std::sort(roots.begin(), roots.end(), SymEngine::RCPIntegerKeyLess());
|
|
787
|
+
return;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
RCP<const Integer> totient(const RCP<const Integer> &n)
|
|
791
|
+
{
|
|
792
|
+
if (n->is_zero())
|
|
793
|
+
return integer(1);
|
|
794
|
+
|
|
795
|
+
integer_class phi = n->as_integer_class(), p;
|
|
796
|
+
if (phi < 0)
|
|
797
|
+
phi = -phi;
|
|
798
|
+
map_integer_uint prime_mul;
|
|
799
|
+
prime_factor_multiplicities(prime_mul, *n);
|
|
800
|
+
|
|
801
|
+
for (const auto &it : prime_mul) {
|
|
802
|
+
p = it.first->as_integer_class();
|
|
803
|
+
mp_divexact(phi, phi, p);
|
|
804
|
+
// phi is exactly divisible by p.
|
|
805
|
+
phi *= p - 1;
|
|
806
|
+
}
|
|
807
|
+
return integer(std::move(phi));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
RCP<const Integer> carmichael(const RCP<const Integer> &n)
|
|
811
|
+
{
|
|
812
|
+
if (n->is_zero())
|
|
813
|
+
return integer(1);
|
|
814
|
+
|
|
815
|
+
map_integer_uint prime_mul;
|
|
816
|
+
integer_class lambda, t, p;
|
|
817
|
+
unsigned multiplicity;
|
|
818
|
+
|
|
819
|
+
prime_factor_multiplicities(prime_mul, *n);
|
|
820
|
+
lambda = 1;
|
|
821
|
+
for (const auto &it : prime_mul) {
|
|
822
|
+
p = it.first->as_integer_class();
|
|
823
|
+
multiplicity = it.second;
|
|
824
|
+
if (p == 2
|
|
825
|
+
and multiplicity
|
|
826
|
+
> 2) { // For powers of 2 greater than 4 divide by 2.
|
|
827
|
+
multiplicity--;
|
|
828
|
+
}
|
|
829
|
+
t = p - 1;
|
|
830
|
+
mp_lcm(lambda, lambda, t);
|
|
831
|
+
mp_pow_ui(t, p, multiplicity - 1);
|
|
832
|
+
// lambda and p are relatively prime.
|
|
833
|
+
lambda = lambda * t;
|
|
834
|
+
}
|
|
835
|
+
return integer(std::move(lambda));
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
// References : Cohen H., A course in computational algebraic number theory
|
|
839
|
+
// (1996), page 25.
|
|
840
|
+
bool multiplicative_order(const Ptr<RCP<const Integer>> &o,
|
|
841
|
+
const RCP<const Integer> &a,
|
|
842
|
+
const RCP<const Integer> &n)
|
|
843
|
+
{
|
|
844
|
+
integer_class order, p, t;
|
|
845
|
+
integer_class _a = a->as_integer_class(),
|
|
846
|
+
_n = mp_abs(n->as_integer_class());
|
|
847
|
+
mp_gcd(t, _a, _n);
|
|
848
|
+
if (t != 1)
|
|
849
|
+
return false;
|
|
850
|
+
|
|
851
|
+
RCP<const Integer> lambda = carmichael(n);
|
|
852
|
+
map_integer_uint prime_mul;
|
|
853
|
+
prime_factor_multiplicities(prime_mul, *lambda);
|
|
854
|
+
_a %= _n;
|
|
855
|
+
order = lambda->as_integer_class();
|
|
856
|
+
|
|
857
|
+
for (const auto &it : prime_mul) {
|
|
858
|
+
p = it.first->as_integer_class();
|
|
859
|
+
mp_pow_ui(t, p, it.second);
|
|
860
|
+
mp_divexact(order, order, t);
|
|
861
|
+
mp_powm(t, _a, order, _n);
|
|
862
|
+
while (t != 1) {
|
|
863
|
+
mp_powm(t, t, p, _n);
|
|
864
|
+
order *= p;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
*o = integer(std::move(order));
|
|
868
|
+
return true;
|
|
869
|
+
}
|
|
870
|
+
int legendre(const Integer &a, const Integer &n)
|
|
871
|
+
{
|
|
872
|
+
return mp_legendre(a.as_integer_class(), n.as_integer_class());
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
int jacobi(const Integer &a, const Integer &n)
|
|
876
|
+
{
|
|
877
|
+
return mp_jacobi(a.as_integer_class(), n.as_integer_class());
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
int kronecker(const Integer &a, const Integer &n)
|
|
881
|
+
{
|
|
882
|
+
return mp_kronecker(a.as_integer_class(), n.as_integer_class());
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
namespace
|
|
886
|
+
{
|
|
887
|
+
bool _sqrt_mod_tonelli_shanks(integer_class &rop, const integer_class &a,
|
|
888
|
+
const integer_class &p)
|
|
889
|
+
{
|
|
890
|
+
mp_randstate state;
|
|
891
|
+
integer_class n, y, b, q, pm1, t(1);
|
|
892
|
+
pm1 = p - 1;
|
|
893
|
+
unsigned e, m;
|
|
894
|
+
e = numeric_cast<unsigned>(mp_scan1(pm1));
|
|
895
|
+
q = pm1 >> e; // p - 1 = 2**e*q
|
|
896
|
+
|
|
897
|
+
while (t != -1) {
|
|
898
|
+
state.urandomint(n, p);
|
|
899
|
+
t = mp_legendre(n, p);
|
|
900
|
+
}
|
|
901
|
+
mp_powm(y, n, q, p); // y = n**q mod p
|
|
902
|
+
mp_powm(b, a, q, p); // b = a**q mod p
|
|
903
|
+
t = (q + 1) / 2;
|
|
904
|
+
mp_powm(rop, a, t, p); // rop = a**((q + 1) / 2) mod p
|
|
905
|
+
|
|
906
|
+
while (b != 1) {
|
|
907
|
+
m = 0;
|
|
908
|
+
t = b;
|
|
909
|
+
while (t != 1) {
|
|
910
|
+
mp_powm(t, t, integer_class(2), p);
|
|
911
|
+
++m; // t = t**2 = b**2**(m)
|
|
912
|
+
}
|
|
913
|
+
if (m == e)
|
|
914
|
+
return false;
|
|
915
|
+
mp_pow_ui(q, integer_class(2), e - m - 1); // q = 2**(e - m - 1)
|
|
916
|
+
mp_powm(t, y, q, p); // t = y**(2**(e - m - 1))
|
|
917
|
+
mp_powm(y, t, integer_class(2), p); // y = t**2
|
|
918
|
+
e = m;
|
|
919
|
+
rop = (rop * t) % p;
|
|
920
|
+
b = (b * y) % p;
|
|
921
|
+
}
|
|
922
|
+
return true;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
bool _sqrt_mod_prime(integer_class &rop, const integer_class &a,
|
|
926
|
+
const integer_class &p)
|
|
927
|
+
{
|
|
928
|
+
if (p == 2) {
|
|
929
|
+
rop = a % p;
|
|
930
|
+
return true;
|
|
931
|
+
}
|
|
932
|
+
int l = mp_legendre(a, p);
|
|
933
|
+
integer_class t;
|
|
934
|
+
if (l == -1) {
|
|
935
|
+
return false;
|
|
936
|
+
} else if (l == 0) {
|
|
937
|
+
rop = 0;
|
|
938
|
+
} else if (p % 4 == 3) {
|
|
939
|
+
t = (p + 1) / 4;
|
|
940
|
+
mp_powm(rop, a, t, p);
|
|
941
|
+
} else if (p % 8 == 5) {
|
|
942
|
+
t = (p - 1) / 4;
|
|
943
|
+
mp_powm(t, a, t, p);
|
|
944
|
+
if (t == 1) {
|
|
945
|
+
t = (p + 3) / 8;
|
|
946
|
+
mp_powm(rop, a, t, p);
|
|
947
|
+
} else {
|
|
948
|
+
t = (p - 5) / 8;
|
|
949
|
+
integer_class t1 = 4 * a;
|
|
950
|
+
mp_powm(t, t1, t, p);
|
|
951
|
+
rop = (2 * a * t) % p;
|
|
952
|
+
}
|
|
953
|
+
} else {
|
|
954
|
+
if (p < 10000) { // If p < 10000, brute force is faster.
|
|
955
|
+
integer_class sq = integer_class(1), _a;
|
|
956
|
+
mp_fdiv_r(_a, a, p);
|
|
957
|
+
for (unsigned i = 1; i < p; ++i) {
|
|
958
|
+
if (sq == _a) {
|
|
959
|
+
rop = i;
|
|
960
|
+
return true;
|
|
961
|
+
}
|
|
962
|
+
sq += 2 * i + 1;
|
|
963
|
+
mp_fdiv_r(sq, sq, p);
|
|
964
|
+
}
|
|
965
|
+
return false;
|
|
966
|
+
} else {
|
|
967
|
+
return _sqrt_mod_tonelli_shanks(rop, a, p);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
return true;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
// References : Menezes, Alfred J., Paul C. Van Oorschot, and Scott A. Vanstone.
|
|
974
|
+
// Handbook of applied cryptography. CRC press, 2010. pages 104 - 108
|
|
975
|
+
// Calculates log = x mod q**k where g**x == a mod p and order(g, p) = n.
|
|
976
|
+
void _discrete_log(integer_class &log, const integer_class &a,
|
|
977
|
+
const integer_class &g, const integer_class &n,
|
|
978
|
+
const integer_class &q, const unsigned &k,
|
|
979
|
+
const integer_class &p)
|
|
980
|
+
{
|
|
981
|
+
log = 0;
|
|
982
|
+
integer_class gamma = a, alpha, _n, t, beta, qj(1), m, l;
|
|
983
|
+
_n = n / q;
|
|
984
|
+
mp_powm(alpha, g, _n, p);
|
|
985
|
+
mp_sqrtrem(m, t, q);
|
|
986
|
+
if (t != 0)
|
|
987
|
+
++m; // m = ceiling(sqrt(q)).
|
|
988
|
+
map_integer_uint
|
|
989
|
+
table; // Table for lookup in baby-step giant-step algorithm
|
|
990
|
+
integer_class alpha_j(1), d, s;
|
|
991
|
+
s = -m;
|
|
992
|
+
mp_powm(s, alpha, s, p);
|
|
993
|
+
|
|
994
|
+
for (unsigned j = 0; j < m; ++j) {
|
|
995
|
+
insert(table, integer(alpha_j), j);
|
|
996
|
+
alpha_j = (alpha_j * alpha) % p;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
for (unsigned long j = 0; j < k; ++j) { // Pohlig-Hellman
|
|
1000
|
+
mp_powm(beta, gamma, _n, p);
|
|
1001
|
+
// Baby-step giant-step algorithm for l = log_alpha(beta)
|
|
1002
|
+
d = beta;
|
|
1003
|
+
bool found = false;
|
|
1004
|
+
for (unsigned i = 0; not found && i < m; ++i) {
|
|
1005
|
+
if (table.find(integer(d)) != table.end()) {
|
|
1006
|
+
l = i * m + table[integer(d)];
|
|
1007
|
+
found = true;
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
d = (d * s) % p;
|
|
1011
|
+
}
|
|
1012
|
+
_n /= q;
|
|
1013
|
+
t = -l * qj;
|
|
1014
|
+
|
|
1015
|
+
log -= t;
|
|
1016
|
+
mp_powm(t, g, t, p);
|
|
1017
|
+
gamma *= t; // gamma *= g ** (-l * (q ** j))
|
|
1018
|
+
qj *= q;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
// References : Johnston A., A generalised qth root algorithm.
|
|
1023
|
+
// Solution for x**n == a mod p**k where a != 0 mod p and p is an odd prime.
|
|
1024
|
+
bool _nthroot_mod1(std::vector<RCP<const Integer>> &roots,
|
|
1025
|
+
const integer_class &a, const integer_class &n,
|
|
1026
|
+
const integer_class &p, const unsigned k,
|
|
1027
|
+
bool all_roots = false)
|
|
1028
|
+
{
|
|
1029
|
+
integer_class _n, r, root, s, t, g(0), pk, m, phi;
|
|
1030
|
+
mp_pow_ui(pk, p, k);
|
|
1031
|
+
phi = pk * (p - 1) / p;
|
|
1032
|
+
mp_gcd(m, phi, n);
|
|
1033
|
+
t = phi / m;
|
|
1034
|
+
mp_powm(t, a, t, pk);
|
|
1035
|
+
// Check whether a**(phi / gcd(phi, n)) == 1 mod p**k.
|
|
1036
|
+
if (t != 1) {
|
|
1037
|
+
return false;
|
|
1038
|
+
}
|
|
1039
|
+
// Solve x**n == a mod p first.
|
|
1040
|
+
t = p - 1;
|
|
1041
|
+
mp_gcdext(_n, r, s, n, t);
|
|
1042
|
+
if (r < 0) {
|
|
1043
|
+
mp_fdiv_r(r, r, t / _n);
|
|
1044
|
+
}
|
|
1045
|
+
mp_powm(s, a, r, p);
|
|
1046
|
+
|
|
1047
|
+
// Solve x**(_n) == s mod p where _n | p - 1.
|
|
1048
|
+
if (_n == 1) {
|
|
1049
|
+
root = s;
|
|
1050
|
+
} else if (_n == 2) {
|
|
1051
|
+
_sqrt_mod_prime(root, s, p);
|
|
1052
|
+
} else { // Ref[1]
|
|
1053
|
+
map_integer_uint prime_mul;
|
|
1054
|
+
prime_factor_multiplicities(prime_mul, *integer(_n));
|
|
1055
|
+
integer_class h, q, qt, z, v, x, s1 = s;
|
|
1056
|
+
_primitive_root(g, p, integer_class(2));
|
|
1057
|
+
unsigned c;
|
|
1058
|
+
for (const auto &it : prime_mul) {
|
|
1059
|
+
q = it.first->as_integer_class();
|
|
1060
|
+
mp_pow_ui(qt, q, it.second);
|
|
1061
|
+
h = (p - 1) / q;
|
|
1062
|
+
c = 1;
|
|
1063
|
+
while (h % q == 0) {
|
|
1064
|
+
++c;
|
|
1065
|
+
h /= q;
|
|
1066
|
+
}
|
|
1067
|
+
mp_invert(t, h, qt);
|
|
1068
|
+
z = t * -h;
|
|
1069
|
+
x = (1 + z) / qt;
|
|
1070
|
+
mp_powm(v, s1, x, p);
|
|
1071
|
+
|
|
1072
|
+
if (c == it.second) {
|
|
1073
|
+
s1 = v;
|
|
1074
|
+
} else {
|
|
1075
|
+
mp_powm(x, s1, h, p);
|
|
1076
|
+
t = h * qt;
|
|
1077
|
+
mp_powm(r, g, t, p);
|
|
1078
|
+
mp_pow_ui(qt, q, c - it.second);
|
|
1079
|
+
_discrete_log(t, x, r, qt, q, c - it.second, p);
|
|
1080
|
+
t = -z * t;
|
|
1081
|
+
mp_powm(r, g, t, p);
|
|
1082
|
+
v *= r;
|
|
1083
|
+
mp_fdiv_r(v, v, p);
|
|
1084
|
+
s1 = v;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
root = s1;
|
|
1088
|
+
}
|
|
1089
|
+
r = n;
|
|
1090
|
+
unsigned c = 0;
|
|
1091
|
+
while (r % p == 0) {
|
|
1092
|
+
mp_divexact(r, r, p);
|
|
1093
|
+
++c;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// Solve s == x**r mod p**k where (x**r)**(p**c)) == a mod p**k
|
|
1097
|
+
integer_class pc = n / r, pd = pc * p;
|
|
1098
|
+
if (c >= 1) {
|
|
1099
|
+
mp_powm(s, root, r, p);
|
|
1100
|
+
// s == root**r mod p. Since s**(p**c) == 1 == a mod p**(c + 1), lift
|
|
1101
|
+
// until p**k.
|
|
1102
|
+
for (unsigned d = c + 2; d <= k; ++d) {
|
|
1103
|
+
t = 1 - pc;
|
|
1104
|
+
pd *= p;
|
|
1105
|
+
mp_powm(t, s, t, pd);
|
|
1106
|
+
t = (a * t - s) / pc;
|
|
1107
|
+
s += t;
|
|
1108
|
+
}
|
|
1109
|
+
} else {
|
|
1110
|
+
s = a;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
// Solve x**r == s mod p**k given that root**r == s mod p and r % p != 0.
|
|
1114
|
+
integer_class u;
|
|
1115
|
+
pd = p;
|
|
1116
|
+
for (unsigned d = 2; d < 2 * k; d *= 2) { // Hensel lifting
|
|
1117
|
+
t = r - 1;
|
|
1118
|
+
pd *= pd;
|
|
1119
|
+
if (d > k)
|
|
1120
|
+
pd = pk;
|
|
1121
|
+
mp_powm(u, root, t, pd);
|
|
1122
|
+
t = r * u;
|
|
1123
|
+
mp_invert(t, t, pd);
|
|
1124
|
+
root += (s - u * root) * t;
|
|
1125
|
+
mp_fdiv_r(root, root, pd);
|
|
1126
|
+
}
|
|
1127
|
+
if (m != 1 and all_roots) {
|
|
1128
|
+
// All roots are generated by root*(g**(phi / gcd(phi , n)))**j
|
|
1129
|
+
if (n == 2) {
|
|
1130
|
+
t = -1;
|
|
1131
|
+
} else {
|
|
1132
|
+
if (g == 0)
|
|
1133
|
+
_primitive_root(g, p, integer_class(2));
|
|
1134
|
+
t = phi / m;
|
|
1135
|
+
mp_powm(t, g, t, pk);
|
|
1136
|
+
}
|
|
1137
|
+
for (unsigned j = 0; j < m; ++j) {
|
|
1138
|
+
roots.push_back(integer(root));
|
|
1139
|
+
root *= t;
|
|
1140
|
+
mp_fdiv_r(root, root, pk);
|
|
1141
|
+
}
|
|
1142
|
+
} else {
|
|
1143
|
+
roots.push_back(integer(root));
|
|
1144
|
+
}
|
|
1145
|
+
return true;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
// Checks if Solution for x**n == a mod p**k exists where a != 0 mod p and p is
|
|
1149
|
+
// an odd prime.
|
|
1150
|
+
bool _is_nthroot_mod1(const integer_class &a, const integer_class &n,
|
|
1151
|
+
const integer_class &p, const unsigned k)
|
|
1152
|
+
{
|
|
1153
|
+
integer_class t, pk, m, phi;
|
|
1154
|
+
mp_pow_ui(pk, p, k);
|
|
1155
|
+
phi = pk * (p - 1) / p;
|
|
1156
|
+
mp_gcd(m, phi, n);
|
|
1157
|
+
t = phi / m;
|
|
1158
|
+
mp_powm(t, a, t, pk);
|
|
1159
|
+
// Check whether a**(phi / gcd(phi, n)) == 1 mod p**k.
|
|
1160
|
+
if (t != 1) {
|
|
1161
|
+
return false;
|
|
1162
|
+
}
|
|
1163
|
+
return true;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
// Solution for x**n == a mod p**k.
|
|
1167
|
+
bool _nthroot_mod_prime_power(std::vector<RCP<const Integer>> &roots,
|
|
1168
|
+
const integer_class &a, const integer_class &n,
|
|
1169
|
+
const integer_class &p, const unsigned k,
|
|
1170
|
+
bool all_roots = false)
|
|
1171
|
+
{
|
|
1172
|
+
integer_class pk, root;
|
|
1173
|
+
std::vector<RCP<const Integer>> _roots;
|
|
1174
|
+
if (a % p != 0) {
|
|
1175
|
+
if (p == 2) {
|
|
1176
|
+
integer_class r = n, t, s, pc, pj;
|
|
1177
|
+
pk = integer_class(1) << k;
|
|
1178
|
+
unsigned c = numeric_cast<unsigned>(mp_scan1(n));
|
|
1179
|
+
r = n >> c; // n = 2**c * r where r is odd.
|
|
1180
|
+
|
|
1181
|
+
// Handle special cases of k = 1 and k = 2.
|
|
1182
|
+
if (k == 1) {
|
|
1183
|
+
roots.push_back(integer(1));
|
|
1184
|
+
return true;
|
|
1185
|
+
}
|
|
1186
|
+
if (k == 2) {
|
|
1187
|
+
if (c > 0 and a % 4 == 3) {
|
|
1188
|
+
return false;
|
|
1189
|
+
}
|
|
1190
|
+
roots.push_back(integer(a % 4));
|
|
1191
|
+
if (all_roots and c > 0)
|
|
1192
|
+
roots.push_back(integer(3));
|
|
1193
|
+
return true;
|
|
1194
|
+
}
|
|
1195
|
+
if (c >= k - 2) {
|
|
1196
|
+
c = k - 2; // Since x**(2**c) == x**(2**(k - 2)) mod 2**k, let c
|
|
1197
|
+
// = k - 2.
|
|
1198
|
+
}
|
|
1199
|
+
t = integer_class(1) << (k - 2);
|
|
1200
|
+
pc = integer_class(1) << c;
|
|
1201
|
+
|
|
1202
|
+
mp_invert(s, r, t);
|
|
1203
|
+
if (c == 0) {
|
|
1204
|
+
// x**r == a mod 2**k and x**2**(k - 2) == 1 mod 2**k, implies
|
|
1205
|
+
// x**(r * s) == x == a**s mod 2**k.
|
|
1206
|
+
mp_powm(root, a, s, pk);
|
|
1207
|
+
roots.push_back(integer(root));
|
|
1208
|
+
return true;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
// First, solve for y**2**c == a mod 2**k where y == x**r
|
|
1212
|
+
t = integer_class(1) << (c + 2);
|
|
1213
|
+
mp_fdiv_r(t, a, t);
|
|
1214
|
+
// Check for a == y**2**c == 1 mod 2**(c + 2).
|
|
1215
|
+
if (t != 1)
|
|
1216
|
+
return false;
|
|
1217
|
+
root = 1;
|
|
1218
|
+
pj = pc * 4;
|
|
1219
|
+
// 1 is a root of x**2**c == 1 mod 2**(c + 2). Lift till 2**k.
|
|
1220
|
+
for (unsigned j = c + 2; j < k; ++j) {
|
|
1221
|
+
pj *= 2;
|
|
1222
|
+
mp_powm(t, root, pc, pj);
|
|
1223
|
+
t -= a;
|
|
1224
|
+
if (t % pj != 0)
|
|
1225
|
+
// Add 2**(j - c).
|
|
1226
|
+
root += integer_class(1) << (j - c);
|
|
1227
|
+
}
|
|
1228
|
+
// Solve x**r == root mod 2**k.
|
|
1229
|
+
mp_powm(root, root, s, pk);
|
|
1230
|
+
|
|
1231
|
+
if (all_roots) {
|
|
1232
|
+
// All roots are generated by, root * (j * (2**(k - c) +/- 1)).
|
|
1233
|
+
t = pk / pc * root;
|
|
1234
|
+
for (unsigned i = 0; i < 2; ++i) {
|
|
1235
|
+
for (unsigned long j = 0; j < pc; ++j) {
|
|
1236
|
+
roots.push_back(integer(root));
|
|
1237
|
+
root += t;
|
|
1238
|
+
}
|
|
1239
|
+
root = t - root;
|
|
1240
|
+
}
|
|
1241
|
+
} else {
|
|
1242
|
+
roots.push_back(integer(root));
|
|
1243
|
+
}
|
|
1244
|
+
return true;
|
|
1245
|
+
} else {
|
|
1246
|
+
return _nthroot_mod1(roots, a, n, p, k, all_roots);
|
|
1247
|
+
}
|
|
1248
|
+
} else {
|
|
1249
|
+
integer_class _a;
|
|
1250
|
+
mp_pow_ui(pk, p, k);
|
|
1251
|
+
_a = a % pk;
|
|
1252
|
+
unsigned m;
|
|
1253
|
+
integer_class pm;
|
|
1254
|
+
if (_a == 0) {
|
|
1255
|
+
if (not all_roots) {
|
|
1256
|
+
roots.push_back(integer(0));
|
|
1257
|
+
return true;
|
|
1258
|
+
}
|
|
1259
|
+
_roots.push_back(integer(0));
|
|
1260
|
+
if (n >= k)
|
|
1261
|
+
m = k - 1;
|
|
1262
|
+
else
|
|
1263
|
+
m = numeric_cast<unsigned>(k - 1 - (k - 1) / mp_get_ui(n));
|
|
1264
|
+
mp_pow_ui(pm, p, m);
|
|
1265
|
+
} else {
|
|
1266
|
+
unsigned r = 1;
|
|
1267
|
+
mp_divexact(_a, _a, p);
|
|
1268
|
+
while (_a % p == 0) {
|
|
1269
|
+
mp_divexact(_a, _a, p);
|
|
1270
|
+
++r;
|
|
1271
|
+
}
|
|
1272
|
+
if (r < n or r % n != 0
|
|
1273
|
+
or not _nthroot_mod_prime_power(_roots, _a, n, p, k - r,
|
|
1274
|
+
all_roots)) {
|
|
1275
|
+
return false;
|
|
1276
|
+
}
|
|
1277
|
+
m = numeric_cast<unsigned>(r / mp_get_ui(n));
|
|
1278
|
+
mp_pow_ui(pm, p, m);
|
|
1279
|
+
if (not all_roots) {
|
|
1280
|
+
roots.push_back(
|
|
1281
|
+
integer(_roots.back()->as_integer_class() * pm));
|
|
1282
|
+
return true;
|
|
1283
|
+
}
|
|
1284
|
+
for (auto &it : _roots) {
|
|
1285
|
+
it = integer(it->as_integer_class() * pm);
|
|
1286
|
+
}
|
|
1287
|
+
m = numeric_cast<unsigned>(r - r / mp_get_ui(n));
|
|
1288
|
+
mp_pow_ui(pm, p, m);
|
|
1289
|
+
}
|
|
1290
|
+
integer_class pkm;
|
|
1291
|
+
mp_pow_ui(pkm, p, k - m);
|
|
1292
|
+
|
|
1293
|
+
for (const auto &it : _roots) {
|
|
1294
|
+
root = it->as_integer_class();
|
|
1295
|
+
for (unsigned long i = 0; i < pm; ++i) {
|
|
1296
|
+
roots.push_back(integer(root));
|
|
1297
|
+
root += pkm;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
return true;
|
|
1302
|
+
}
|
|
1303
|
+
} // anonymous namespace
|
|
1304
|
+
|
|
1305
|
+
// Returns whether Solution for x**n == a mod p**k exists or not
|
|
1306
|
+
bool _is_nthroot_mod_prime_power(const integer_class &a, const integer_class &n,
|
|
1307
|
+
const integer_class &p, const unsigned k)
|
|
1308
|
+
{
|
|
1309
|
+
integer_class pk;
|
|
1310
|
+
if (a % p != 0) {
|
|
1311
|
+
if (p == 2) {
|
|
1312
|
+
integer_class t;
|
|
1313
|
+
unsigned c = numeric_cast<unsigned>(mp_scan1(n));
|
|
1314
|
+
|
|
1315
|
+
// Handle special cases of k = 1 and k = 2.
|
|
1316
|
+
if (k == 1) {
|
|
1317
|
+
return true;
|
|
1318
|
+
}
|
|
1319
|
+
if (k == 2) {
|
|
1320
|
+
if (c > 0 and a % 4 == 3) {
|
|
1321
|
+
return false;
|
|
1322
|
+
}
|
|
1323
|
+
return true;
|
|
1324
|
+
}
|
|
1325
|
+
if (c >= k - 2) {
|
|
1326
|
+
c = k - 2; // Since x**(2**c) == x**(2**(k - 2)) mod 2**k, let c
|
|
1327
|
+
// = k - 2.
|
|
1328
|
+
}
|
|
1329
|
+
if (c == 0) {
|
|
1330
|
+
// x**r == a mod 2**k and x**2**(k - 2) == 1 mod 2**k, implies
|
|
1331
|
+
// x**(r * s) == x == a**s mod 2**k.
|
|
1332
|
+
return true;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
// First, solve for y**2**c == a mod 2**k where y == x**r
|
|
1336
|
+
t = integer_class(1) << (c + 2);
|
|
1337
|
+
mp_fdiv_r(t, a, t);
|
|
1338
|
+
// Check for a == y**2**c == 1 mod 2**(c + 2).
|
|
1339
|
+
if (t != 1)
|
|
1340
|
+
return false;
|
|
1341
|
+
return true;
|
|
1342
|
+
} else {
|
|
1343
|
+
return _is_nthroot_mod1(a, n, p, k);
|
|
1344
|
+
}
|
|
1345
|
+
} else {
|
|
1346
|
+
integer_class _a;
|
|
1347
|
+
mp_pow_ui(pk, p, k);
|
|
1348
|
+
_a = a % pk;
|
|
1349
|
+
integer_class pm;
|
|
1350
|
+
if (_a == 0) {
|
|
1351
|
+
return true;
|
|
1352
|
+
} else {
|
|
1353
|
+
unsigned r = 1;
|
|
1354
|
+
mp_divexact(_a, _a, p);
|
|
1355
|
+
while (_a % p == 0) {
|
|
1356
|
+
mp_divexact(_a, _a, p);
|
|
1357
|
+
++r;
|
|
1358
|
+
}
|
|
1359
|
+
if (r < n or r % n != 0
|
|
1360
|
+
or not _is_nthroot_mod_prime_power(_a, n, p, k - r)) {
|
|
1361
|
+
return false;
|
|
1362
|
+
}
|
|
1363
|
+
return true;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
return true;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
bool nthroot_mod(const Ptr<RCP<const Integer>> &root,
|
|
1370
|
+
const RCP<const Integer> &a, const RCP<const Integer> &n,
|
|
1371
|
+
const RCP<const Integer> &mod)
|
|
1372
|
+
{
|
|
1373
|
+
if (mod->as_integer_class() <= 0) {
|
|
1374
|
+
return false;
|
|
1375
|
+
} else if (mod->as_integer_class() == 1) {
|
|
1376
|
+
*root = integer(0);
|
|
1377
|
+
return true;
|
|
1378
|
+
}
|
|
1379
|
+
map_integer_uint prime_mul;
|
|
1380
|
+
prime_factor_multiplicities(prime_mul, *mod);
|
|
1381
|
+
std::vector<RCP<const Integer>> moduli;
|
|
1382
|
+
bool ret_val;
|
|
1383
|
+
|
|
1384
|
+
std::vector<RCP<const Integer>> rem;
|
|
1385
|
+
for (const auto &it : prime_mul) {
|
|
1386
|
+
integer_class _mod;
|
|
1387
|
+
mp_pow_ui(_mod, it.first->as_integer_class(), it.second);
|
|
1388
|
+
moduli.push_back(integer(std::move(_mod)));
|
|
1389
|
+
ret_val = _nthroot_mod_prime_power(
|
|
1390
|
+
rem, a->as_integer_class(), n->as_integer_class(),
|
|
1391
|
+
it.first->as_integer_class(), it.second, false);
|
|
1392
|
+
if (not ret_val)
|
|
1393
|
+
return false;
|
|
1394
|
+
}
|
|
1395
|
+
crt(root, rem, moduli);
|
|
1396
|
+
return true;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
void nthroot_mod_list(std::vector<RCP<const Integer>> &roots,
|
|
1400
|
+
const RCP<const Integer> &a, const RCP<const Integer> &n,
|
|
1401
|
+
const RCP<const Integer> &m)
|
|
1402
|
+
{
|
|
1403
|
+
if (m->as_integer_class() <= 0) {
|
|
1404
|
+
return;
|
|
1405
|
+
} else if (m->as_integer_class() == 1) {
|
|
1406
|
+
roots.push_back(integer(0));
|
|
1407
|
+
return;
|
|
1408
|
+
}
|
|
1409
|
+
map_integer_uint prime_mul;
|
|
1410
|
+
prime_factor_multiplicities(prime_mul, *m);
|
|
1411
|
+
std::vector<RCP<const Integer>> moduli;
|
|
1412
|
+
bool ret_val;
|
|
1413
|
+
|
|
1414
|
+
std::vector<std::vector<RCP<const Integer>>> rem;
|
|
1415
|
+
for (const auto &it : prime_mul) {
|
|
1416
|
+
integer_class _mod;
|
|
1417
|
+
mp_pow_ui(_mod, it.first->as_integer_class(), it.second);
|
|
1418
|
+
moduli.push_back(integer(std::move(_mod)));
|
|
1419
|
+
std::vector<RCP<const Integer>> rem1;
|
|
1420
|
+
ret_val = _nthroot_mod_prime_power(
|
|
1421
|
+
rem1, a->as_integer_class(), n->as_integer_class(),
|
|
1422
|
+
it.first->as_integer_class(), it.second, true);
|
|
1423
|
+
if (not ret_val)
|
|
1424
|
+
return;
|
|
1425
|
+
rem.push_back(rem1);
|
|
1426
|
+
}
|
|
1427
|
+
_crt_cartesian(roots, rem, moduli);
|
|
1428
|
+
std::sort(roots.begin(), roots.end(), SymEngine::RCPIntegerKeyLess());
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
bool powermod(const Ptr<RCP<const Integer>> &powm, const RCP<const Integer> &a,
|
|
1432
|
+
const RCP<const Number> &b, const RCP<const Integer> &m)
|
|
1433
|
+
{
|
|
1434
|
+
if (is_a<Integer>(*b)) {
|
|
1435
|
+
integer_class t = down_cast<const Integer &>(*b).as_integer_class();
|
|
1436
|
+
if (b->is_negative())
|
|
1437
|
+
t *= -1;
|
|
1438
|
+
mp_powm(t, a->as_integer_class(), t, m->as_integer_class());
|
|
1439
|
+
if (b->is_negative()) {
|
|
1440
|
+
bool ret_val = mp_invert(t, t, m->as_integer_class());
|
|
1441
|
+
if (not ret_val)
|
|
1442
|
+
return false;
|
|
1443
|
+
}
|
|
1444
|
+
*powm = integer(std::move(t));
|
|
1445
|
+
return true;
|
|
1446
|
+
} else if (is_a<Rational>(*b)) {
|
|
1447
|
+
RCP<const Integer> num, den, r;
|
|
1448
|
+
get_num_den(down_cast<const Rational &>(*b), outArg(num), outArg(den));
|
|
1449
|
+
if (den->is_negative()) {
|
|
1450
|
+
den = den->mulint(*minus_one);
|
|
1451
|
+
num = num->mulint(*minus_one);
|
|
1452
|
+
}
|
|
1453
|
+
integer_class t = mp_abs(num->as_integer_class());
|
|
1454
|
+
mp_powm(t, a->as_integer_class(), t, m->as_integer_class());
|
|
1455
|
+
if (num->is_negative()) {
|
|
1456
|
+
bool ret_val = mp_invert(t, t, m->as_integer_class());
|
|
1457
|
+
if (not ret_val)
|
|
1458
|
+
return false;
|
|
1459
|
+
}
|
|
1460
|
+
r = integer(std::move(t));
|
|
1461
|
+
return nthroot_mod(powm, r, den, m);
|
|
1462
|
+
}
|
|
1463
|
+
return false;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
void powermod_list(std::vector<RCP<const Integer>> &pows,
|
|
1467
|
+
const RCP<const Integer> &a, const RCP<const Number> &b,
|
|
1468
|
+
const RCP<const Integer> &m)
|
|
1469
|
+
{
|
|
1470
|
+
if (is_a<Integer>(*b)) {
|
|
1471
|
+
integer_class t
|
|
1472
|
+
= mp_abs(down_cast<const Integer &>(*b).as_integer_class());
|
|
1473
|
+
mp_powm(t, a->as_integer_class(), t, m->as_integer_class());
|
|
1474
|
+
if (b->is_negative()) {
|
|
1475
|
+
bool ret_val = mp_invert(t, t, m->as_integer_class());
|
|
1476
|
+
if (not ret_val)
|
|
1477
|
+
return;
|
|
1478
|
+
}
|
|
1479
|
+
pows.push_back(integer(std::move(t)));
|
|
1480
|
+
} else if (is_a<Rational>(*b)) {
|
|
1481
|
+
RCP<const Integer> num, den, r;
|
|
1482
|
+
get_num_den(down_cast<const Rational &>(*b), outArg(num), outArg(den));
|
|
1483
|
+
if (den->is_negative()) {
|
|
1484
|
+
den = den->mulint(*integer(-1));
|
|
1485
|
+
num = num->mulint(*integer(-1));
|
|
1486
|
+
}
|
|
1487
|
+
integer_class t = num->as_integer_class();
|
|
1488
|
+
if (num->is_negative())
|
|
1489
|
+
t *= -1;
|
|
1490
|
+
mp_powm(t, a->as_integer_class(), t, m->as_integer_class());
|
|
1491
|
+
if (num->is_negative()) {
|
|
1492
|
+
bool ret_val = mp_invert(t, t, m->as_integer_class());
|
|
1493
|
+
if (not ret_val)
|
|
1494
|
+
return;
|
|
1495
|
+
}
|
|
1496
|
+
r = integer(t);
|
|
1497
|
+
nthroot_mod_list(pows, r, den, m);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
vec_integer_class quadratic_residues(const Integer &a)
|
|
1502
|
+
{
|
|
1503
|
+
/*
|
|
1504
|
+
Returns the list of quadratic residues.
|
|
1505
|
+
Example
|
|
1506
|
+
========
|
|
1507
|
+
>>> quadratic_residues(7)
|
|
1508
|
+
[0, 1, 2, 4]
|
|
1509
|
+
*/
|
|
1510
|
+
|
|
1511
|
+
if (a.as_integer_class() < 1) {
|
|
1512
|
+
throw SymEngineException("quadratic_residues: Input must be > 0");
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
vec_integer_class residue;
|
|
1516
|
+
for (integer_class i = integer_class(0); i <= a.as_int() / 2; i++) {
|
|
1517
|
+
residue.push_back((i * i) % a.as_int());
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
sort(residue.begin(), residue.end());
|
|
1521
|
+
residue.erase(unique(residue.begin(), residue.end()), residue.end());
|
|
1522
|
+
|
|
1523
|
+
return residue;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
bool is_quad_residue(const Integer &a, const Integer &p)
|
|
1527
|
+
{
|
|
1528
|
+
/*
|
|
1529
|
+
Returns true if ``a`` (mod ``p``) is in the set of squares mod ``p``,
|
|
1530
|
+
i.e a % p in set([i**2 % p for i in range(p)]). If ``p`` is an odd but
|
|
1531
|
+
not prime, an iterative method is used to make the determination.
|
|
1532
|
+
*/
|
|
1533
|
+
|
|
1534
|
+
integer_class p2 = p.as_integer_class();
|
|
1535
|
+
if (p2 == 0)
|
|
1536
|
+
throw SymEngineException(
|
|
1537
|
+
"is_quad_residue: Second parameter must be non-zero");
|
|
1538
|
+
if (p2 < 0)
|
|
1539
|
+
p2 = -p2;
|
|
1540
|
+
integer_class a_final = a.as_integer_class();
|
|
1541
|
+
if (a.as_integer_class() >= p2 || a.as_integer_class() < 0)
|
|
1542
|
+
mp_fdiv_r(a_final, a.as_integer_class(), p2);
|
|
1543
|
+
if (a_final < 2)
|
|
1544
|
+
return true;
|
|
1545
|
+
|
|
1546
|
+
if (!probab_prime_p(*integer(p2))) {
|
|
1547
|
+
if ((p2 % 2 == 1) && jacobi(*integer(a_final), p) == -1)
|
|
1548
|
+
return false;
|
|
1549
|
+
|
|
1550
|
+
const RCP<const Integer> a1 = integer(a_final);
|
|
1551
|
+
const RCP<const Integer> p1 = integer(p2);
|
|
1552
|
+
|
|
1553
|
+
map_integer_uint prime_mul;
|
|
1554
|
+
prime_factor_multiplicities(prime_mul, *p1);
|
|
1555
|
+
bool ret_val;
|
|
1556
|
+
|
|
1557
|
+
for (const auto &it : prime_mul) {
|
|
1558
|
+
ret_val = _is_nthroot_mod_prime_power(
|
|
1559
|
+
a1->as_integer_class(), integer(2)->as_integer_class(),
|
|
1560
|
+
it.first->as_integer_class(), it.second);
|
|
1561
|
+
if (not ret_val)
|
|
1562
|
+
return false;
|
|
1563
|
+
}
|
|
1564
|
+
return true;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
return mp_legendre(a_final, p2) == 1;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
bool is_nth_residue(const Integer &a, const Integer &n, const Integer &mod)
|
|
1571
|
+
/*
|
|
1572
|
+
Returns true if ``a`` (mod ``mod``) is in the set of nth powers mod ``mod``,
|
|
1573
|
+
i.e a % mod in set([i**n % mod for i in range(mod)]).
|
|
1574
|
+
*/
|
|
1575
|
+
{
|
|
1576
|
+
integer_class _mod = mod.as_integer_class();
|
|
1577
|
+
|
|
1578
|
+
if (_mod == 0) {
|
|
1579
|
+
return false;
|
|
1580
|
+
} else if (_mod == 1) {
|
|
1581
|
+
return true;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
if (_mod < 0)
|
|
1585
|
+
_mod = -(_mod);
|
|
1586
|
+
|
|
1587
|
+
RCP<const Integer> mod2 = integer(_mod);
|
|
1588
|
+
map_integer_uint prime_mul;
|
|
1589
|
+
prime_factor_multiplicities(prime_mul, *mod2);
|
|
1590
|
+
bool ret_val;
|
|
1591
|
+
|
|
1592
|
+
integer_class a_mod = a.as_integer_class();
|
|
1593
|
+
mp_fdiv_r(a_mod, a_mod, _mod);
|
|
1594
|
+
|
|
1595
|
+
for (const auto &it : prime_mul) {
|
|
1596
|
+
ret_val = _is_nthroot_mod_prime_power(a_mod, n.as_integer_class(),
|
|
1597
|
+
it.first->as_integer_class(),
|
|
1598
|
+
it.second);
|
|
1599
|
+
if (not ret_val)
|
|
1600
|
+
return false;
|
|
1601
|
+
}
|
|
1602
|
+
return true;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
int mobius(const Integer &a)
|
|
1606
|
+
{
|
|
1607
|
+
if (a.as_int() <= 0) {
|
|
1608
|
+
throw SymEngineException("mobius: Integer <= 0");
|
|
1609
|
+
}
|
|
1610
|
+
map_integer_uint prime_mul;
|
|
1611
|
+
bool is_square_free = true;
|
|
1612
|
+
prime_factor_multiplicities(prime_mul, a);
|
|
1613
|
+
auto num_prime_factors = prime_mul.size();
|
|
1614
|
+
for (const auto &it : prime_mul) {
|
|
1615
|
+
int p_freq = it.second;
|
|
1616
|
+
if (p_freq > 1) {
|
|
1617
|
+
is_square_free = false;
|
|
1618
|
+
break;
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
if (!is_square_free) {
|
|
1622
|
+
return 0;
|
|
1623
|
+
} else if (num_prime_factors % 2 == 0) {
|
|
1624
|
+
return 1;
|
|
1625
|
+
} else {
|
|
1626
|
+
return -1;
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
long mertens(const unsigned long a)
|
|
1631
|
+
{
|
|
1632
|
+
long mertens = 0;
|
|
1633
|
+
for (unsigned long i = 1; i <= a; ++i) {
|
|
1634
|
+
mertens += mobius(*(integer(i)));
|
|
1635
|
+
}
|
|
1636
|
+
return mertens;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* @brief Numeric calculation of the n:th s-gonal number
|
|
1641
|
+
* @param s Number of sides of the polygon. Must be greater than 2.
|
|
1642
|
+
* @param n Must be greater than 0
|
|
1643
|
+
* @returns The n:th s-gonal number
|
|
1644
|
+
*
|
|
1645
|
+
* A fast pure numeric calculation of the n:th s-gonal number. No bounds
|
|
1646
|
+
* checking of the input is performed.
|
|
1647
|
+
* See https://en.wikipedia.org/wiki/Polygonal_number for source of formula.
|
|
1648
|
+
*/
|
|
1649
|
+
integer_class mp_polygonal_number(const integer_class &s,
|
|
1650
|
+
const integer_class &n)
|
|
1651
|
+
{
|
|
1652
|
+
auto res = ((s - 2) * n * n - (s - 4) * n) / 2;
|
|
1653
|
+
return res;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* @brief Numeric calculation of the principal s-gonal root of x
|
|
1658
|
+
* @param s Number of sides of the polygon. Must be greater than 2.
|
|
1659
|
+
* @param x An integer greater than 0
|
|
1660
|
+
* @returns The root
|
|
1661
|
+
*
|
|
1662
|
+
* A fast pure numeric calculation of the principal (i.e. positive) s-gonal root
|
|
1663
|
+
* of x. No bounds checking of the input is performed.
|
|
1664
|
+
* See https://en.wikipedia.org/wiki/Polygonal_number for source of formula.
|
|
1665
|
+
*/
|
|
1666
|
+
integer_class mp_principal_polygonal_root(const integer_class &s,
|
|
1667
|
+
const integer_class &x)
|
|
1668
|
+
{
|
|
1669
|
+
integer_class tmp;
|
|
1670
|
+
mp_pow_ui(tmp, s - 4, 2);
|
|
1671
|
+
integer_class root = mp_sqrt(8 * x * (s - 2) + tmp);
|
|
1672
|
+
integer_class n = (root + s - 4) / (2 * (s - 2));
|
|
1673
|
+
return n;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
std::pair<integer_class, integer_class>
|
|
1677
|
+
mp_perfect_power_decomposition(const integer_class &n, bool lowest_exponent)
|
|
1678
|
+
{
|
|
1679
|
+
// lakutata: the p-th roots by mp_root (Newton's method), not by a binary
|
|
1680
|
+
// search from 2 to n with the p-th power of each step: ln of a number of
|
|
1681
|
+
// 245 digits took minutes in refine()
|
|
1682
|
+
unsigned long p = 2;
|
|
1683
|
+
integer_class intone, root;
|
|
1684
|
+
intone = 1;
|
|
1685
|
+
std::pair<integer_class, integer_class> respair;
|
|
1686
|
+
respair = std::make_pair(n, intone);
|
|
1687
|
+
|
|
1688
|
+
while ((intone << p) <= n) {
|
|
1689
|
+
if (mp_root(root, n, p)) {
|
|
1690
|
+
respair = std::make_pair(root, p);
|
|
1691
|
+
if (lowest_exponent) {
|
|
1692
|
+
return respair;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
p++;
|
|
1696
|
+
}
|
|
1697
|
+
return respair;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
} // namespace SymEngine
|