Repository navigation
Prepare v2.3.0 release - #148
Merged
Merged
Conversation
Append the graphify section (query, path, and explain before raw search; graphify update after code changes). The rules apply only when a local graphify-out/graph.json exists.
…one and XML Clone rebuilt the table through the two-argument constructor, so a survival (descending) or tied-probability table cloned into an invalid ascending, strictly increasing one. Clone now copies the orders, strictness and smart-search setting. ToXElement writes StrictXValues and StrictProbabilities only when they depart from the default, so existing documents stay byte-identical, and FromXElement reads them. Adds the StrictXValues and StrictProbabilities read-only properties.
…nd typed wrappers python/rmc-numerics packages lib/net10.0/Numerics.dll from the RMC.Numerics 2.2.0 NuGet package byte for byte (SHA-256 checked by scripts/build_wheel.py) into one py3-none-any wheel whose version equals the NuGet version. rmc_numerics.runtime is the single CoreCLR loader (refuses a prior bare import clr, resolves DOTNET_ROOT, memoized per process, add_assembly for dependent assemblies); marshal holds the bit-exact bulk copies; identity reports the loaded assembly's version and SHA-256. The wrappers call the Numerics array overloads and generators for distributions, copulas, paired data, statistics, sampling designs, Brent, Tools.Expm1/Log1p, UncertaintyAnalysisResults and BootstrapAnalysis.
Bound scalar overloads (pythonnet resolves an overloaded method group on every call, which dominates the cheap scalar members); LogPDF/LogCDF/LogCCDF; type name, parameter names, SetParameters, ValidateParameters messages and the IStandardError covariance; per-parameter-set quantiles, validity and member arrays for ensembles held as rows; create_distribution through UnivariateDistributionFactory, Uniform, Mixture weights and components; Linear.Extrapolate; Statistics.LinearMoments; StratificationBin records and XValues over several ranges; BrentSearch, Beta.Incomplete and IncompleteInverse, Matrix products, MatrixRegularization, the Cholesky factor and LinkController; UncertaintyAnalysisResults accepting a .NET member array.
…rameter construction errors.net_errors re-raises the Numerics argument and arithmetic exception families as ValueError, ArithmeticError, NotImplementedError and RuntimeError, so callers catch them without importing System. BootstrapAnalysis.members and parameters keep a large replicate ensemble on the .NET side; has_parameter_covariance reports IStandardError; LnNormal gains from_log_parameters and direct_method_of_moments.
A deep copy of a distribution wraps its Clone and a deep copy of Linear rebuilds the interpolator from its knots, so copy.deepcopy of a structure holding wrappers works (pythonnet objects cannot be pickled) and the copies share no search cursor.
pythonnet resolves an overloaded method group on every call, and Marshal.Copy has more than a dozen overloads: resolving them cost about 170 microseconds per transfer, twenty times the copy of a short array. The exact overloads and the typed array constructors are now bound on first use; every transfer copies the same bits.
…alidity over many parameter sets in one call
…on, AutocorrelationType)
…e: quantile matrix and validity in one call)
…, assembly 2.2.0.0, source 279a5a4) and stage it with --dll
… beside the source commit
…ric construction, moments, density, GenerateRandomValues bitwise the .NET draws) with tests and the 2.3.0 notes
…_longs/to_numpy_longs, to_net_sbytes/to_numpy_sbytes, to_net_bools/to_numpy_bools)
…bind_list) instead of resolving the method group per call
…sum w F / sum w; equal weights reproduce the unweighted curve bit for bit)
…the finite entries, bitwise Statistics.Percentile per column (rmc-numerics statistics.column_percentiles)
…a known location (rmc-numerics GeneralizedPareto.fit_known_location)
…remeValue (probability transform once per column, shared InverseCDF kernel, bitwise identical to the per-row loop)
… reproduce Function(n, alpha) bit for bit (rmc-numerics statistics.weighted_plotting_positions)
…man-Fan type 6, Hazen type 5, Kaplan-Meier type 4; rmc-numerics statistics.plotting_position_percentile)
…e (the weighted ProcessMeanCurve overload)
…ith one bulk copy (to_numpy_bools)
…a single unit weight, null members, a large ensemble's reproducibility and the range arguments
…llel reproducibility over 300 columns, k below zero
…ver two observations, observations at the location and the exponential fallback start
…g instance unchanged (also when invalid), closed-form InverseCDF checks
Drop the net8.0 and net9.0 targets from the library and test projects (.NET 8 and .NET 9 reach end of support on November 10, 2026). Enable pack-time package validation against RMC.Numerics 2.2.0, supply the System.ValueTuple facade to the net481 comparison, and record the suppressions for the two dropped frameworks. Link the new oracle and time-series fixtures into the test project, and ignore internal working notes under docs/reviews and docs/release-notes.
Add Tools.CompensatedSum and CompensatedCumulativeSum (Neumaier by default, Kahan on request), the KahanAdd, NeumaierAdd and NeumaierResult steps, LogSumExp over a matrix axis, Hypot, and list forms of Expm1 and Log1p, and a range-partitioned parallel loop helper. LogSumExp follows scipy.special.logsumexp, including the +inf and empty-list results. Log1p uses the compensated form at every finite argument above -1, and Expm1 takes the direct difference for |x| > 1/2. Tests cover bitwise references, accuracy sweeps and the JSON converters.
…amma Beta.Incomplete uses the BGRAT and BUP expansions of Algorithm 708 where the continued fractions converge slowly, IncompleteInverse refines small tails in log space, and LogFunction uses BETALN, ALGDIV and BCORR. One bracketed Halley solver serves the inverse incomplete gamma for every shape and probability, and Trigamma is accurate to full precision. Add Bessel.I0e, Bessel.I1e and Evaluate.Chebyshev. Tests compare against an mpmath oracle grid.
Add EigenSolverMethod with a QL path (SIMD tred2 and blocked tql2, parallel from n = 128, bitwise equal to the sequential EISPACK procedures) alongside Jacobi. CholeskyDecomposition uses a blocked kernel for n >= 16 and gains the non-throwing TryCholesky with diagonal jitter, and Matrix gains TransposeMultiply. Tests cover NumPy references, ill-conditioned inputs and the unchanged small-matrix path.
Add Statistics.Median (used by MatrixRegularization in place of a private median), column means, variances, standard deviations, L-moments and percentiles, column goodness-of-fit against Uniform(0, 1), plotting- position and weighted percentiles, general-order L-moments, the exact two-sample Kolmogorov-Smirnov test, the Hartigan dip test and an uncentered autocorrelation. Variance, covariance and Pearson correlation use corrected two-pass sums. Regression prediction intervals include leverage, and PBIAS follows Moriasi et al. (2007). TimeSeriesDownload uses the USGS Water Data API v1, reads GHCN snowfall in millimeters and gains parsers for saved responses. Tests use R and SciPy oracles and saved service responses.
…utta fix AdaptiveGaussKronrod adds QUADPACK QAGS through the Method property; the default local bisection path is bitwise unchanged. Fourier.Autocorrelation is now the linear autocorrelation, and Fourier gains Convolve and BluesteinFFT. The RungeKutta Fehlberg error term weights k5, and Cash-Karp steps use the fifth-order solution. Tests cover QUADPACK reference integrals, convolution and ODE step control.
…ports Add LBFGSB (L-BFGS-B 3.0), CMAES with IPOP restarts, DynamicallyDimensionedSearch, ParetoFront, DynamicProgramming and Knapsack, plus cancellation and progress reporting on every Optimizer. Brent.Solve ports SciPy's brentq with a relative tolerance, and BrentSearch ports SciPy's bounded minimizer. Dijkstra adds multi-source CSR ShortestDistances, and Dijkstra and Network reject negative edge weights. Tests compare against SciPy, pycma and generated oracles.
Add list overloads of the IUnivariateFunction and ILinkFunction members as extension methods, bitwise equal to the scalar members. CompositeFunction caches its per-child locks, and EnsembleFunction parses its template once and pools the parsed elements; outputs are unchanged. Link functions document their clamp bounds and exceptions. Tests cover the extensions and exact equality with the prior outputs.
…tstrap Add the opt-in NUTS LogLikelihoodAndGradientFunction, cancellation and the current chain index on MCMCSampler, progress and cancellation on Bootstrap, and LatinHypercube overloads that take a generator. NUTS fixes its smoothed step size before sampling, SNIS takes the full log- posterior and resamples by the inverse weight CDF, random initialization uses a seeded generator, and an exact-zero uniform no longer accepts every Metropolis proposal. Bootstrap and SNIS run sequentially and bitwise equal to the parallel run when parallelism is off. Tests pin seeded reference streams and cover the diagnostics and the bootstrap.
Correct the StudentT tails at large degrees of freedom, the GEV, Gamma and Pearson Type III L-moments, and the generalized Pareto method of moments. KernelDensity and TruncatedDistribution modes search for the global peak. Add per-element Poisson and Binomial array members, the Poisson-GEV and GPD conversions, GeneralizedPareto.MLE with a known location, ParameterSetQuantiles, and list forms of CCDF and the log functions. GEV ParametersFromLinearMoments throws for a non-positive L-scale. Tests compare against SciPy and mpmath survival and quantile oracles.
…t CDF Evaluate the Joe and Gumbel densities in log space, fix Clayton for negative theta and the Frank overflow, use closed-form Gumbel and Joe conditional CDFs, and return exact InverseConditionalCDF limits. Add list forms of the copula PDF, CDF and conditional functions, Multinomial.CategoricalIndices, and a Genz-Bretz MultivariateStudentT CDF with error controls. Tests cover reference densities, limits and seeded draws.
Add the Numerics.Distributions.Regional namespace: RegionalData (site L-moment ratios, regional averages and discordancy), RegionalHomogeneityTest (H1, H2, H3 and Z measures from seeded, thread- count-independent kappa simulations) and RegionalGrowthCurve (growth factors and site quantiles). Tests reproduce published Hosking-Wallis values.
…nd PCA Add GaussianProcessRegression with squared exponential, Matern and exponential ARD kernels, Kriging with variogram models, ElasticNetRegression (glmnet covariance-update coordinate descent with k-fold cross-validation) and PrincipalComponentAnalysis on the QL tridiagonal path. Tests compare against scikit-learn, DiceKriging, gstat, glmnet and prcomp oracles, kept with the R and Python scripts that generate them.
Add Benchmarks_Numerics with benchmarks for the eigensolver, linear algebra kernels, integration, optimizers, Dijkstra, distributions, copulas, statistics, machine learning and LogSumExp, plus the sweep runner used for bitwise reference checks. Add the project to the solution.
Add python/pynumerics, which ships the Numerics.dll from the NuGet release (SHA-256 checked) with one CoreCLR loader per process, bulk bit- exact NumPy marshalling, Python exceptions that carry the Numerics messages, and typed wrappers over every Numerics area. It replaces the unpublished rmc-numerics package. Includes the Sphinx guides and the pytest suite.
Document regional frequency analysis, Fourier methods, the bootstrap, the new optimizers, the eigensolver and integrator options, machine learning, column and plotting-position statistics, the new hypothesis tests and the time-series download changes, and add the corresponding references. The README states the net10.0 and net481 targets, CONTRIBUTING adds the fast-unit-test guideline, and the contributor guidance adds the pynumerics coverage rule and validation steps.
Install only the .NET 10 SDK in the integration, release and NuGet workflows, run package validation against the baseline release in integration, and let the release workflow retry an existing tag and skip live-service tests. Build and test the pynumerics wheel, and add PythonPublish for TestPyPI and PyPI. Update the issue template examples to net10.0.
Set Version 2.3.0, AssemblyVersion 2.3.0.0 and the 2.3.0 PackageReleaseNotes, update CITATION.cff and codemeta.json to version 2.3.0 with the release date and supported runtimes, and advance the snapshot version to 2.3.1.
…cs, wheel, pytest and identity checks; shell scripts keep LF endings
…ion and SHA-256 into the wheel's _version.py; _version.py declares the 2.3.0 release values
…ilds from the nuget.org package; the PR wheel ships a Numerics.dll built from the PR source
…e; on other platforms they use the smallest ulp tolerance measured on Linux, or Monte Carlo error where the NUTS chains diverge
…benchmarks; every CI pytest run deselects benchmarks explicitly
…h a merge commit, pynumerics version and changelog in the metadata checklist, and the PyPI publish and verification steps
…README and docs overviews for 2.3.0, and the pynumerics changelog and PyPI metadata
… copy as a safe git directory, so CI checkouts owned by the runner user pass git's ownership check
…aled ulps off Windows, where Exp and Log come from a different platform math library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: metadata updates
Numerics/Numerics.csproj:Version2.3.0,AssemblyVersion2.3.0.0, andPackageReleaseNotesfor 2.3.0.CITATION.cff:version2.3.0 anddate-released2026-11-10.codemeta.json:version2.3.0,dateModified2026-11-10, andruntimePlatform.NET 10.0 and .NET Framework 4.8.1..github/workflows/Snapshot.yml: snapshot version advanced to 2.3.1.python/pynumerics/src/pynumerics/_version.py:__version__2.3.0,NUMERICS_VERSION2.3.0 andNUMERICS_ASSEMBLY_VERSION2.3.0.0. The SHA-256, source commit and build command stay empty; the wheel build writes the published package's identity.python/pynumerics/CHANGELOG.md: the 2.3.0 entry, also rendered in the Sphinx docs.README.md,docs/index.mdanddocs/getting-started.md: supported frameworks (net10.0 and net481), the 2.3.0 install command, the 2.3.0 feature overview, and the pynumerics install.python/pynumerics/pyproject.toml: description, keywords, Python 3.10 to 3.14 and Linux and Windows classifiers, and documentation and changelog URLs.PackageValidationBaselineVersion2.2.0 for this release. Its only suppressions are the two PKV006 entries for the dropped net8.0 and net9.0 targets. After 2.3.0 is published, the baseline advances to 2.3.0 and those suppressions are removed.Summary: user-facing changes
net10.0andnet481only. .NET 8 and .NET 9 reach end of support on November 10, 2026; projects on those runtimes can stay on 2.2.0.GeneralizedExtremeValue.ParametersFromLinearMomentsthrows for λ2 ≤ 0, non-finite λ1 or λ2, or |τ3| ≥ 1.DijkstraandNetworkreject negative edge weights.Deterministic.PDF,CDFandInverseCDFthrow for a NaN or infiniteValue.Tools.LogSumExpreturns +inf for +inf input and -inf for an empty list.GoodnessOfFit.PBIASfollows the Moriasi et al. (2007) sign.Beta.Incompleteand its inverse, and the inverse incomplete gamma.InverseConditionalCDFedges, and AMH at θ = 0 and θ = 1.GoodnessOfFit.KolmogorovSmirnovandAndersonDarlingcompute on a sorted copy, with newdataIsSortedoverloads.AdaptiveSimpsonsRulereports non-finite results as failures;Powell,MultiStartandMLSLstop cleanly at the evaluation budget.Numerics.Distributions.Regional).GaussianProcessRegression,Kriging,ElasticNetRegressionandPrincipalComponentAnalysis.LBFGSB,CMAES,DynamicallyDimensionedSearch,ParetoFront,DynamicProgrammingandKnapsack, with optimizer progress and cancellation.Brent.SolveandDijkstra.ShortestDistances.LogSumExpby axis, and Poisson and Binomial array members.net10.0build and pynumerics are tested on Linux in the.github/docker/linux-testimage (Ubuntu 24.04, .NET 10 SDK, Python 3.12).PythonWheel.ymlbuilds the wheel from the PR source and tests it on Linux, in the Docker image and on Windows.PythonPublish.ymlruns afterNuGetPublish.ymlsucceeds for a release.scipy.stats.poisson.ppffrom n = 200).Tools.Expm1, column statistics and pynumerics marshalling.AdaptiveGaussKronrodpath are bitwise unchanged.Validation
dotnet restoredotnet build -c Release: 0 warnings, 0 errors (also with--no-incremental)dotnet test -c Release --no-build -f net10.0 --filter "TestCategory!=LiveServiceIntegration"withVSTEST_CONNECTION_TIMEOUT=600: 4,075 passed, 0 faileddotnet test -c Release --no-build -f net481 --filter "TestCategory!=LiveServiceIntegration"withVSTEST_CONNECTION_TIMEOUT=600: 4,058 passed, 0 faileddotnet pack Numerics/Numerics.csproj -c Release -p:Version=2.3.0 --no-build -o ./packages: package validation against 2.2.0 clean apart from the PKV006 suppressions for net8.0 and net9.0.nupkgmetadata: version 2.3.0,lib/net10.0andlib/net481only, and the 2.3.0 release notesruff checkclean,pytestagainst this build: 5,770 passed, 0 failed (5 skipped, 3 benchmarks deselected),sphinx-build -Wclean with the changelog page.github/docker/linux-test): Test_Numerics net10.0 passed with no failures, ruff clean, pytest against the wheel 5,769 passed, 0 failed (6 skipped, 3 benchmarks deselected), and the fresh-container identity check passed (CoreCLR, assembly 2.3.0.0, SHA-256 matches)docs/data/time-series.mdrun against the USGS Water Data APIPythonWheel.ymlcheck on this PR buildsNumerics.dllfrom the PR source, then builds and tests the wheel on Linux (ubuntu-24.04 and thelinux-testDocker image) and WindowsNuGetPublish.ymlsucceeds andPythonPublish.ymlstarts by itself: it waits for nuget.org, builds the wheel from the published package with its SHA-256 written in, tests it on Linux and Windows, and publishes to TestPyPIpypienvironment to publish to PyPIpip install pynumerics==2.3.0in a clean environment with the .NET 10 runtime;pynumerics.numerics_identity()reports assembly version 2.3.0.0 and the SHA-256 oflib/net10.0/Numerics.dllin the published package, andpynumerics.assert_numerics_identity()passes