Contains additional numeric types that complement the numeric primitives (such as Byte
, Double
, and Int32
) that are defined by .NET. This includes:
- The
BigInteger
structure, which is a non-primitive integral type that supports arbitrarily large integers. - The
Complex
structure, which represents a complex number. A complex number is a number in the form a + bi, where a is the real part, and b is the imaginary part. - The SIMD-enabled vector types, which include
Vector2
,Vector3
,Vector4
,Matrix3x2
,Matrix4x4
,Plane
, andQuaternion
.
Documentation can be found here: https://learn.microsoft.com/en-us/dotnet/api/system.numerics.
This area also includes all of the interfaces that make up Generic Math, which is discussed more here: https://learn.microsoft.com/en-us/dotnet/standard/generics/math.
See the Help Wanted issues.
BigInteger
andComplex
: ./src/System/Numerics.- Everything else: ../System.Private.CoreLib/src/System/Numerics
System.Numerics.Vectors
: ../System.Numerics.Vectors/tests- Everything else: ./tests
System.Runtime.Numerics is included in the shared framework. The package does not need to be installed into any project compatible with .NET Standard 2.0.