Questions tagged [nmath]

CenterSpace's NMath library for mathematical calculations on the .Net framework.

CenterSpace's NMath library for mathematical calculations on the .Net framework.

8 questions
53
votes
7 answers

C# linear algebra library

Is there stable linear algebra (more specifically, vectors, matrices, multidimensional arrays and basic operations on them) library for C#? Search yielded a few open source libraries which are either not updated for couple of years or are in an…
ima
  • 8,105
  • 3
  • 20
  • 19
18
votes
8 answers

The speed of .NET in numerical computing

In my experience, .NET is 2 to 3 times slower than native code. (I implemented L-BFGS for multivariate optimization). I have traced the ads on stackoverflow to http://www.centerspace.net/products/ the speed is really amazing, the speed is close to…
Yin Zhu
  • 16,980
  • 13
  • 75
  • 117
5
votes
3 answers

C# and NMath for Computational Finance and Econometrics

I am currently (mostly) using C++ for computationally intensive econometrics in my research. I have been wanting to move to a more productive environment. D sounds promising, but perhaps not mature enough for me to be fully productive currently. I…
TJB
  • 3,493
  • 4
  • 23
  • 20
2
votes
1 answer

Weird NullReferenceException in third party dll: C#

I have a strange error, which has started suddenly and which is driving me crazy. In my C# application, I am doing some heavy mathematical calculations and for that purpose, I am using CenterSpace's NMath library. Recently, when I started my…
Ufuk Can Bicici
  • 3,589
  • 4
  • 28
  • 57
1
vote
4 answers

C# Nmath to Python SciPy

I need to port some functions from C# to Python, but i can't implement next code right: [SqlFunction(IsDeterministic = true, DataAccess = DataAccessKind.None)] public static SqlDouble LogNormDist(double probability, double mean, double stddev) { …
Ivan
  • 45
  • 6
0
votes
1 answer

Fast image gamma correction

I am doing a gamma correction on an image of dimensions 5000x3000x3. The formula is value ^ (1 / gamma) for RGB values from 0.0 to 1.0 My input gamma values range from 0.0 to 10.0 while gamma = 0.0 always outputs 0.0. The trouble is that the…
tde
  • 150
  • 13
0
votes
1 answer

NMath/SolverFoundation claims non-convex model, despite being solvable by Matlab's "quadprog"

I have a quadratic programming problem defined by the Hessian H and the vector c. This problem is in a reference solved using Matlab's quadprog function like that result = quadprog(H, c, [], [], [], [], lb, ub, init, opts); lb and ub are vectors of…
Jens
  • 6,275
  • 2
  • 25
  • 51
0
votes
1 answer

NMath IIS access denied

I have tried using the NMath library on a ASP.NET 4 web application hosted in IIS. While it works perfectly o the development machine, on the server it throws this exception: Unable to load DLL 'nmath_native_x86.dll': Access is denied. (Exception…
Andr
  • 617
  • 2
  • 9
  • 24