Questions tagged [math.net]

This tag doesn't currently have an excerpt. Help contribute by writing one

256 questions
16
votes
3 answers

Use Math.NET's Fit.Polynomial method on functions of multiple parameters

I previously used Math.NET Numerics library's Fit.Polynomial method to fit a cubic polynomial on a set of data that could be modeled as a function of one parameter y=f(x). Now I would like to similarly find a 2 or 3 order polynomial that fits data…
wip
  • 2,313
  • 5
  • 31
  • 47
12
votes
1 answer

When should I use a linear algebra library like Math.NET

I am not certain there is one correct answer to the question, but here we go. While numerous numerical problems can be stated in a linear algebra form, it seems from my limited experience that there is a performance overhead for simple operations in…
Mathias
  • 15,191
  • 9
  • 60
  • 92
9
votes
2 answers

Parallel.For not utilising all cores

I'm doing heavy mathematical computations using Math.Net Numerics parallely inside Parallel.For block. When I run code in my local system with 4 cores(2*2), it's using all 4 cores. But when I run same code in our dev server with 8 cores(4*2), it's…
malkam
  • 2,337
  • 1
  • 14
  • 17
8
votes
1 answer

Solving system of linear equations using mathdotnet?

I want to solve equations like, (4-x)*2 = (y-1)*10 + 2 x = y*2 + 1 The equations are available in string form. Is there a way to express a equation in mathdotnet? I can only find ways to write expressions.
shyamupa
  • 1,528
  • 4
  • 16
  • 24
7
votes
1 answer

Cuda Native Provider - Missing MathNet.Numerics.CUDA.dll

Math.Net 3.7.0 Release Notes on nuget mention a CUDA native provider. Control.UseNativeCUDA(); throws a DllNotFoundException for MathNet.Numerics.CUDA.dll. For the MKL-provider i need to install an extra NuGet-Package. Is there no package for the…
Robert
  • 101
  • 7
7
votes
2 answers

Cross Product using Math.Net Numerics with C#

I have two vectors MathNet.Numerics.LinearAlgebra.Generic.Vector, like the following: Vector v1 = new DenseVector(new double[] { 1, 2, 3 }); Vector v2 = new DenseVector(new double[] { 3, 2, 1 }); I basicly want to…
Sait
  • 19,045
  • 18
  • 72
  • 99
6
votes
0 answers

C# math library (System.Numerics vs Math.NET)

I'm trying to make my own game engine for learning purposes, but I'm also trying to make something that is optimized and is capable of handling a diverse amount of cross-platform games. That said, I'm now at a point where I need to choose a math…
bootzin
  • 162
  • 1
  • 6
6
votes
0 answers

Get REAL and IMAG from complex number in parsed equation

I am evaluating Math.NET Symbolics for use in our application where we want a simple math parser for the user to calculate custom equations from our measurement data. Our data is in the form of Complex numbers. To test I use the following…
6
votes
2 answers

Cross correlation using mathdotnet

I have recently started using Mathdotnet Numerics statistical package to do data analysis in c#. I am looking for the cross correlation function. Does Mathdotnet have an API for this? Previously I have been using MATLAB xcorr or Python…
lsama
  • 199
  • 3
  • 13
5
votes
4 answers

What is the MathNet equivalent of MATLAB solve C = A \ B

I've recently begun using MathNet to implement our linear algebra, however I'm having some trouble translation MATLAB functions to MathNet. In MATLAB I often use the simple solve using the backslash operator: C = A \ B What is the equivalent of this…
Bildsoe
  • 1,310
  • 6
  • 31
  • 44
5
votes
1 answer

Curve fitting to a 3D polynomial with variable powers

I have 3 data sets. 2 for polynomial itself (let's call them x and y) and 1 for the function value (it's gonna be z). Polynomial looks something like this (assuming the power of both dimensions is 3): z = a00 + a01*x + a02*x^2 + a03*x^3 + a10*y +…
TabakaevGA
  • 51
  • 3
5
votes
1 answer

Matrix Inverse using MathNet.Numerics

I'm writing some C# code that uses MathNet.Numerics.LinearAlgebra, and trying to match results with a textbook example. One part of the code does an inversion of a complex32 array "Ybus", and stores it in another array "Zbus": Matrix
J. McCabe
  • 115
  • 2
  • 9
5
votes
2 answers

Linear regression with constraints with Math.NET

I'm performing simple linear regression with Math.NET. I provided a common code sample below. Alternative to this example one can use the Fit class for simple linear regression. What I additionally want is to specify additional constraints like a…
Stefan Teitge
  • 716
  • 3
  • 10
  • 21
5
votes
1 answer

DebuggerTypeProxy for generic type hierarchy

I'm trying to write a debugger type proxy/surrogate for matrices and vectors in Math.NET Numerics, so the debugger shows more useful information (also in F# FSI). The type hierarchy is as follows: Generic.Matrix Double.Matrix :…
Christoph Rüegg
  • 4,626
  • 1
  • 20
  • 34
4
votes
3 answers

Math.Net Exponential Moving Average

I'm using simple moving average in Math.Net, but now that I also need to calculate EMA (exponential moving average) or any kind of weighted moving average, I don't find it in the library. I looked over all methods under MathNet.Numerics.Statistics…
Alex Michel
  • 416
  • 3
  • 13
1
2 3
17 18