CenterSpace.NMath.Core Namespace
Vector Examples | Description | Source |
---|---|---|
VectorExample | Example showing some of the basic functionality of the vector classes. | C# VB F# |
VectorArithmeticExample | Example showing the element-wise operators overloaded for vector/vector and vector/scalar operations. | C# VB |
VectorRangeExample | Example showing how to use the indexing class Range with the vector classes. | C# VB |
VectorSliceExample | Example showing how to use the indexing class Slice with the vector classes. | C# VB |
Matrix Examples | Description | Source |
---|---|---|
MatrixExample | Example showing some of the basic functionality of the matrix classes. | C# VB |
MatrixArithmeticExample | Example showing the element-wise operators overloaded for matrix/matrix and matrix/scalar operations. | C# VB |
MatrixRangeExample | Example showing how to use the indexing class Range with the matrix classes. | C# VB |
MatrixSliceExample | Example showing how to use the indexing class Slice with the matrix classes. | C# VB |
Functions of Vectors and Matrices | Description | Source |
---|---|---|
NMathFunctionsExample | Example showing some of the functionality of the NMathFunctions class. | C# VB |
ApplyTransformExample | Example showing how to use the matrix and vector Apply() and Tranform() methods. |
C# VB |
Factorization Examples | Description | Source |
---|---|---|
LUFactorizationExample | Example showing how to use the LU factorization classes to solve linear systems, and to compute matrix inverses, condition numbers, and determinants. | C# VB |
Least Squares Examples | Description | Source |
---|---|---|
LeastSquaresExample | Example showing how to use the least squares classes to solve linear least squares problems. | C# VB |
Random Number Examples | Description | Source |
---|---|---|
RandomNumberExample | Example showing how to generate random number from a normal distribution, using the class RandGenNormal, and place them in a Histogram. | C# VB |
AdvancedRNGExample | Example showing how to create a random number generator for a particular probability distribution using a specified uniform deviate method. | C# VB |
MonteCarloRNGExample | Example showing how to calculate an approximation for Pi using a Monte Carlo method and the uniform random number generator class RandGenUniform. | C# VB |
VectorizedRNGExample | Example showing how to generate random numbers from a stream. | C# VB |
QuasiRandomExample | Example showing how to generate a sequence of quasirandom points. | C# VB |
IndependentStreamsExample | Example showing how to create streams of independent random numbers. | C# VB |
FFT, Convolution, and Correlation Examples | Description | Source |
---|---|---|
FFTExample | Examples showing how to use the basic FFT classes. | C# VB |
FFT1DExample | Example showing how to use the 1D FFT classes. | C# VB |
FFT2DExample | Example showing how to use the 2D FFT classes. | C# VB |
ConvolutionExample | Example showing how to use the convolution classes. | C# VB |
CorrelationExample | Example showing how to use the correlation classes. | C# VB F# |
Discrete Wavelet Transform (DWT) | Description | Source |
---|---|---|
DWTExample | Examples showing how to use the DWT classes. | C# VB |
Signal Processing Examples | Description | Source |
---|---|---|
MovingWindowFilterExample | Example showing how to filter data using a moving average filter. | C# VB |
SavitzkyGolayFilteringExample | Example showing how to use the Savitzky-Golay filtering class. | C# VB |
Calculus Examples | Description | Source |
---|---|---|
OneVariableFunctionExample | Example showing how to create and manipulate functions of one variable. | C# VB |
PolynomialExample | Example showing how to create and manipulate Polynomial objects. | C# VB |
DifferentiationExample | Example showing how to create differentiator objects for greater control over how numerical differentiation is performed. | C# VB |
IntegrationExample | Example showing how to create integrator objects for greater control over how numerical integration is performed. | C# VB |
Misc. Examples | Description | Source |
---|---|---|
CurrencyExample | Example showing how to read and write vectors of currencies. | C# VB |
MissingValuesExample | Example showing how to perform statistical operations on matrices containing missing data. | C# VB |
DatabaseExample | Example showing how to use ADO.NET data structures with matrices. | C# VB |
BinarySerializationExample | Example showing how to serialize and deserialize an NMath Core object in binary format. | C# VB |
SoapSerializationExample | Example showing how to serialize and deserialize an NMath Core object in SOAP format. | C# VB |
CenterSpace.NMath.Matrix Namespace
Structured Sparse Matrix Examples | Description | Source |
---|---|---|
TriangularMatrixExample | Example demonstrating the features of the triangular matrix classes. | C# VB |
SymmetricMatrixExample | Example demonstrating the features of the symmetric matrix classes. | C# VB |
HermitianMatrixExample | Example demonstrating the features of the Hermitian matrix classes. | C# VB |
BandMatrixExample | Example demonstrating the features of the banded matrix classes. | C# VB |
HermitianBandMatrixExample | Example demonstrating the features of the banded Hermitian matrix classes. | C# VB |
SymmetricBandMatrixExample | Example demonstrating the features of the banded symmetric matrix classes. | C# VB |
TridiagonalMatrixExample | Example demonstrating the features of the tridiagonal matrix classes. | C# VB |
Structured Sparse Matrix Factorization Examples | Description | Source |
---|---|---|
SymFactExample | Example demonstrating the features of the factorization classes for symmetric matrices. | C# VB |
BandFactExample | Example demonstrating the features of the factorization classes for banded matrices. | C# VB |
TriDiagFactExample | Example demonstrating the features of the factorization classes for tridiagonal matrices. | C# VB |
HermPDTriDiagFactExample | Example demonstrating the features of the factorization classes for Hermitian positive definite tridiagonal matrices. | C# VB |
General Sparse Vector and Matrix Examples | Description | Source |
---|---|---|
SparseVectorExample | Example demonstrating the features of the general sparse vector classes. | C# VB |
SparseMatrixExample | Example demonstrating the features of the general sparse matrix classes. | C# VB |
SparseFactorizationExample | Example showing how to solve a symmetric sparse linear system. | C# VB |
Decomposition Examples | Description | Source |
---|---|---|
QRDecompExample | Example demonstrating the features of the QR decomposition classes. | C# VB |
SVDecompExample | Example demonstrating the features of the singular value decomposition classes. | C# VB |
EigDecompExample | Example demonstrating the features of the eigenvalue decomposition classes. | C# VB F# |
Least Squares Examples | Description | Source |
---|---|---|
LeastSquaresExample | Example demonstrating the features of the classes for solving orindary least squares problems. | C# VB |
WeightedLeastSquaresExample | Example demonstrating the features of the classes for solving weighted least squares problems. | C# VB |
IterativelyReweightedLeastSqExample | Example demonstrating the features of the classes for solving iteratively reweighted least squares problems. | C# VB |
CenterSpace.NMath.Analysis Namespace
Linear Programming Examples | Description | Source |
---|---|---|
LinearProgrammingExample | Example showing how to solve a linear programming (LP) problem. | C# VB F# |
PrimalDualSimplexExample | Example showing how to solve the Klee Minty cube linear programming problem using both primal and dual simplex methods. | C# VB |
MixedIntLinearProgrammingExample | Example showing how to solve a linear programming (LP) problem where one of the variables is constrained to have an integer value. | C# VB |
BinaryLinearProgrammingExample | Example showing how to solve a linear programming (LP) problem where all the variables are binary. | C# VB |
Minimization Examples | Description | Source |
---|---|---|
OneVariableMinimizationExample | Example showing how to find a minimum of a univariate function. | C# VB |
MultiVariableMinimizationExample | Example showing how to find a minimum of a multivariate function. | C# VB |
TrustRegionMinimizationExample | Example showing how to minimize a function using the Trust Region method. | C# VB |
Simulated Annealing Examples | Description | Source |
---|---|---|
SimulatedAnnealingExample | Example showing how to find the minimum of a function using simulated annealing. | C# VB |
Nonlinear Programming Examples | Description | Source |
---|---|---|
NonlinearProgrammingExample | Example showing how to solve a NonLinear Programming (NLP) problem. | C# VB |
SimpleNonlinearProgrammingExample | Example showing how to solve a NonLinear Programming (NLP) problem with linear constraints and variable bounds. | C# VB |
QuadraticProgrammingExample | Example showing how to solve a Quadratic Programming (QP) problem. | C# VB |
InteriorPointQPExample | Example showing how to use the interior point quadratic programming solver to solve a quadratic programming problem. | C# VB |
StochasticHillClimbingExample | Example showing how to use the stochastic hill climbing solver to solve a nonlinear programming problem. | C# VB |
ConstrainedLeastSquaresExample | Example showing how to solve the constrained least squares problem. | C# VB |
BinaryNonlinearProgrammingExample | Example showing how to solve a nonlinear programming problem that has some binary and integral constraints on its solution variables. | C# VB |
Curve Fitting Examples | Description | Source |
---|---|---|
PolynomialLeastSquaresExample | Example showing how to fit a polynomial through a set of points. | C# VB |
OneVariableCurveFittingExample | Example showing how to fit a generalized one variable function to a set of points. | C# VB |
MultiVariableCurveFittingExample | Example showing how to fit a generalized multivariable function to a set of points. | C# VB F# |
Differential Equation Examples | Description | Source |
---|---|---|
RungeKuttaSolverExample | Example showing how to solve first order initial value differential equations. | C# VB |
Misc Examples | Description | Source |
---|---|---|
RootFindingExample | Example showing how to find a root of a univariate function. | C# VB |
TwoVariableIntegrationExample | Example showing how to integrate over two variables. | C# VB |
GPU Examples
NMath Premium Examples | Description | Source |
---|---|---|
BasicGPUExample | Example showing how to automatically route computations to the GPU. | C# VB |
FlowControlExample | Example showing how to force routing of computations to CPU or GPU. | C# VB |
TaskControlExample | Example showing how route individual threads to a given compute device. | C# VB |