MathNet.Numerics
2.5.0
Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Numerics is the result of merging dnAnalytics with Math.NET Iridium and is intended to replace both. Also includes a portable build supporting .Net 4 and higher, SL5, WP8 and .NET for Windows Store apps.
See the version list below for details.
InstallPackage MathNet.Numerics Version 2.5.0
dotnet add package MathNet.Numerics version 2.5.0
<PackageReference Include="MathNet.Numerics" Version="2.5.0" />
paket add MathNet.Numerics version 2.5.0
Release Notes
### Potentially Breaking Changes:
Despite semver this release contains two changes that may break code but without triggering a major version number change. The changes fix semantic bugs and a major usability issue without changing the formal API itself. Most users are not expected to be affected negatively. Nevertheless, this is an exceptional case and we try hard to avoid such changes in the future.
 Statistics: Empty statistics now return NaN instead of either 0 or throwing an exception. *This may break code in case you relied upon the previous unusual and inconsistent behavior.*
 Linear Algebra: More reasonable ToString behavior for matrices and vectors. *This may break code if you relied upon ToString to export your full data to text form intended to be parsed again later. Note that the classes in the MathNet.Numerics.IO library are more appropriate for storing and loading data.*
### Statistics:
 More consistent behavior for empty and singleelement data sets: Min, Max, Mean, Variance, Standard Deviation etc. no longer throw exceptions if the data set is empty but instead return NaN. Variance and Standard Deviation will also return NaN if the set contains only a single entry. Population Variance and Population Standard Deviation will return 0 in this case.
 Reworked order statistics (Quantile, Quartile, Percentile, IQR, Fivenum, etc.), now much easier to use and supporting compatibility with all 9 Rtypes, Excel and Mathematica. The obsolete Percentile class now leverages the new order statistics, fixing a range check bug as side effect.
 New Hybrid Monte Carlo sampler for multivariate distributions.
 New financial statistics: absolute risk and return measures.
 Explicit statistics for sorted arrays, unsorted arrays and sequences/streams. Faster algorithms on sorted data, also avoids multiple enumerations.
 Some statistics like Quantile or empirical inverse CDF can optionally return a parametric function when multiple evaluations are needed, like for plotting.
### Linear Algebra:
 More reasonable ToString behavior for matrices and vectors: `ToString` methods no longer render the whole structure to a string for large data, among others because they used to wreak havoc in debugging and interactive scenarios like F# FSI. Instead, ToString now only renders an excerpt of the data, together with a line about dimension, type and in case of sparse data a sparseness indicator. The intention is to give a good idea about the data in a visually useful way. How much data is shown can be adjusted in the Control class. See also ToTypeString and ToVector/MatrixString.
 Performance: reworked and tuned common parallelization. Some operations are up to 3 magnitudes faster in some extreme cases. Replaced copy loops with native routines. More algorithms are storageaware (and should thus perform better especially on sparse data).
 Fixed range checks in the ThinQR decomposition.
 Fixed bug in Gram Schmidt for solving tall matrices.
 Vectors now implement the BCL IList interfaces (fixedlength) for better integration with existing .Net code.
 Matrix/Vector parsing has been updated to be able to parse the new visual format as well (see ToMatrixString).
 DebuggerDisplay attributes for matrices and vectors.
 Map/IndexedMap combinators with storageaware and partially parallelized implementations for both dense and sparse data.
 Reworked Matrix/Vector construction from arrays, enumerables, indexed enumerables, nested enumerables or by providing an init function/lambda. Nonobsolete constructors now always use the raw data array directly without copying, while static functions always return a matrix/vector independent of the provided data source.
 F#: Improved extensions for matrix and vector construction: create, zeroCreate, randomCreate, init, ofArray2, ofRows/ofRowsList, ofColumns/ofSolumnsList, ofSeqi/Listi (indexed). Storageaware for performance.
 F#: Updated map/mapi and other combinators to leverage core implementation, added nz variants where zerovalues may be skipped (relevant mostly for sparse matrices).
 F#: Idiomatic slice setters for submatrices and subvectors
 F#: More examples for matrix/vector creation and linear regression in the F# Samplepackage.
### Misc:
 Control: Simpler usage with new static ConfigureAuto and ConfigureSingleThread methods. Resolved misleading configuration logic and naming around disabling parallelization.
 Control: New settings for linear algebra ToString behavior.
 Fixed range check in the Xorshift pseudoRNG.
 Parallelization: Reworked our common logic to avoid expensive lambda calls in inner loops. Tunable.
 F#: Examples (and thus the NuGet Sample package) are now F# scripts prepared for experimenting interactively in FSI, instead of normal F# files. Tries to get the assembly references right for most users, both within the Math.NET Numerics solution and the NuGet package.
 Various minor improvements on consistency, performance, tests, xml docs, obsolete attributes, redundant code, argument checks, resources, cleanup, nuget, etc.
Dependencies
This package has no dependencies.
GitHub Usage
Showing the top 10 GitHub repositories that depend on MathNet.Numerics:
Repository  Stars  

QuantConnect/Lean
Lean Algorithmic Trading Engine by QuantConnect (C#, Python, F#)


mathnet/mathnetnumerics
Math.NET Numerics


microsoft/RoomAliveToolkit


kreeben/resin
Search engine


zenogantner/MyMediaLite
recommender system library for the CLR (.NET)


thelinuxlich/artemis_CSharp
Artemis Entity System Framework ported to C#


mdabros/SharpLearning
Machine learning for C# .Net


vvvv/vvvvsdk
public sources of vvvv


HearthstoneTracker/HearthstoneTracker
Automatically track and generate statistics for all your HearthStone games.


Wouterdek/NodeNetwork
A C# library with a WPF node editor component based on ReactiveUI

Version History
Version  Downloads  Last updated  

4.9.0  136  10/13/2019  
4.8.1  138,105  6/11/2019  
4.8.0  18,573  6/2/2019  
4.8.0beta02  911  5/30/2019  
4.8.0beta01  3,300  4/28/2019  
4.7.0  408,347  11/11/2018  
4.6.0  48,827  10/19/2018  
4.5.1  356,911  5/22/2018  
4.5.0  1,777  5/22/2018  
4.4.1  50,109  5/6/2018  
4.4.0  172,831  2/25/2018  
4.3.0  1,775  2/24/2018  
4.2.0  5,592  2/21/2018  
4.1.0  3,555  2/19/2018  
4.0.0  18,057  2/11/2018  
4.0.0beta07  423  2/10/2018  
4.0.0beta06  971  2/3/2018  
4.0.0beta05  1,497  1/22/2018  
4.0.0beta04  1,465  1/13/2018  
4.0.0beta03  1,978  1/9/2018  
4.0.0beta02  978  1/7/2018  
4.0.0beta01  412  1/7/2018  
4.0.0alpha04  481  1/5/2018  
4.0.0alpha03  1,211  12/26/2017  
4.0.0alpha02  2,257  11/30/2017  
4.0.0alpha01  1,789  11/26/2017  
3.20.2  44,211  1/22/2018  
3.20.1  12,239  1/13/2018  
3.20.0  287,626  7/15/2017  
3.20.0beta01  7,046  5/31/2017  
3.19.0  110,198  4/29/2017  
3.18.0  46,204  4/9/2017  
3.17.0  120,833  1/15/2017  
3.16.0  19,042  1/3/2017  
3.15.0  7,311  12/27/2016  
3.14.0beta03  1,124  11/20/2016  
3.14.0beta02  587  11/15/2016  
3.14.0beta01  1,041  10/30/2016  
3.13.1  171,427  9/6/2016  
3.13.0  10,701  8/18/2016  
3.12.0  63,875  7/3/2016  
3.11.1  49,453  4/24/2016  
3.11.0  53,748  2/13/2016  
3.10.0  33,918  12/30/2015  
3.9.0  24,448  11/25/2015  
3.8.0  102,527  9/26/2015  
3.7.1  11,619  9/21/2015  
3.7.0  81,833  5/9/2015  
3.6.0  17,505  3/22/2015  
3.5.0  34,100  1/10/2015  
3.4.0  2,471  1/4/2015  
3.3.0  8,717  11/26/2014  
3.3.0beta2  650  10/25/2014  
3.3.0beta1  6,675  9/28/2014  
3.2.3  44,646  9/6/2014  
3.2.2  566  9/5/2014  
3.2.1  4,130  8/5/2014  
3.2.0  801  8/5/2014  
3.1.0  4,681  7/20/2014  
3.0.2  10,241  6/26/2014  
3.0.1  802  6/24/2014  
3.0.0  6,883  6/21/2014  
3.0.0beta05  426  6/20/2014  
3.0.0beta04  512  6/15/2014  
3.0.0beta03  593  6/5/2014  
3.0.0beta02  524  5/29/2014  
3.0.0beta01  1,249  4/14/2014  
3.0.0alpha9  611  3/29/2014  
3.0.0alpha8  676  2/26/2014  
3.0.0alpha7  840  12/30/2013  
3.0.0alpha6  668  12/2/2013  
3.0.0alpha5  1,125  10/2/2013  
3.0.0alpha4  640  9/22/2013  
3.0.0alpha1  797  9/1/2013  
2.6.2  40,878  10/21/2013  
2.6.1  12,070  8/13/2013  
2.6.0  2,543  7/26/2013  
2.5.0  8,440  4/14/2013  
2.4.0  6,318  2/3/2013  
2.3.0  4,065  11/25/2012  
2.2.1  6,016  8/29/2012  
2.2.0  769  8/27/2012  
2.1.2  19,031  10/9/2011  
2.1.1  5,310  10/3/2011 