Package CenterSpace.NMath contains foundational classes for object-oriented numerics on the .NET platform.  CenterSpace.NMath includes complex number classes, general vector and matrix classes, structured sparse matrix classes and factorizations, general sparse matrix classes and factorizations, general matrix decompositions, least squares solutions, random number generators, Fast Fourier Transforms (FFTs), numerical integration and differentiation methods, function minimization, curve fitting, root-finding, linear and nonlinear programming.


This document covers versions of NMath 6.2 and greater.


Other Packages

  • CenterSpace.NMath.Stats adds advanced statistics to CenterSpace.NMath, with classes for data manipulation, statistical computation, data modeling, and biostatistics.
  • CenterSpace.NMath.Charting.Microsoft provides charting for CenterSpace.NMath types using the free Microsoft Chart Controls for .NET, creating a complete data analysis and visualization solution.
  • CenterSpace.NMath.Premium, the premium version of CenterSpace.NMath,  leverages the power of the CUDA™ architecture for GPU-accelerated computations.


CenterSpace.NMath types are organized into three namespaces:

  • CenterSpace.NMath.Core contains basic vector and matrix classes, complex number classes, and random number generators.
  • CenterSpace.NMath.Matrix contains structured sparse matrix classes and factorizations, general sparse matrix classes and factorizations, general matrix decompositions, least squares solutions, and solutions to eigenvalue problems.
  • CenterSpace.NMath.Analysis contains optimization, root-finding, and linear programming.

To avoid using fully qualified names, preface your code with the appropriate using statements.


Code Examples

Numerous code examples are available for CenterSpace.NMath. Studying the examples is one of the best ways to learn how to use the package.


CenterSpace.NMath is distributed as a free, fully-functional trial version for a 30-day evaluation period. For continued use, please purchase a license through our secure online store.

CenterSpace.NMath is licensed per developer seat. Each developer writing code using CenterSpace.NMath requires a license. (For example, if 5 developers are writing an application, and only 3 are doing most of the intense math work, all 5 must have a license.) There are no runtime or deployment fees for products developed that make use of CenterSpace packages. The complete CenterSpace.NMath license agreement is available here.

CenterSpace.NMath license information is stored in a license key which must be found at runtime. The license key governs the properties of your installation. If no license key is found, a default evaluation license key is used which provides a free 30-day evaluation period for CenterSpace.NMath on the current machine.

When you purchase one or more developer seats of CenterSpace.NMath, you will be issued a license key describing the terms of your license. You can set your license key using one of several mechanisms:

  1. By setting the NMATH_LICENSE_KEY environment variable
  2. By setting the NMathLicenseKey configuration app setting
  3. By programmatically setting the LicenseKey property on class NMathConfiguration

For more information read a detailed blog article here.

Technical Support

CenterSpace technical support is available to all customers currently under a maintenance contract. Product purchase comes with one year of maintenance. To obtain technical support, contact CenterSpace by email at: You can save time if you isolate the problem to a small test case before contacting Technical Support. You may also find your questions answered in our FAQ.

Consulting Services

CenterSpace developers are experts at object-oriented numerics. We can bring valuable experience to companies that are building and deploying critical .NET numerical applications. Our developers can assist you in all phases of your numerical development projects, providing expertise and hands-on support in design, development, optimization, and deployment. For more information, contact sales.


Upgrades are available free of charge on NuGet to customers with current annual maintenance contracts.