CenterSpace.NMath 7.x

Package CenterSpace.NMath contains foundational classes for object-oriented numerics on the .NET platform. CenterSpace.NMathincludes 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.

Package CenterSpace.NMathalso provides functions for statistical computation and biostatistics, including descriptive statistics, probability distributions, combinatorial functions, multiple linear regression, hypothesis testing, analysis of variance, multivariate statistics, partial least squares, and nonnegative matrix factorization.


This document covers versions of NMath 7.0 and greater


CenterSpace.NMath types are organized into a single namespace:

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

All major NMath versions previous to NMath 7.0 had three namespaces. These namespaces are still compatible with NMath 7.0, however they all now simply forward to CenterSpace.NMath.Core.


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.NMathlicense 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.