This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [math.net]
256 questions
2
votes
2 answers
MathNet - 'System.TypeInitializationException'
I am trying to parse string of expression using MathNet in C# and when I try this code:
var h = MathNet.Symbolics.Infix.ParseOrUndefined("1/(a*b)");
it threw exception.
"An unhandled exception of type 'System.TypeInitializationException'…

Renton Thurston
- 69
- 7
2
votes
1 answer
Extracting common terms with MathNet Symbolics
I'm using MathNet Symbolics to handle the symbolic algebra portion of a program I'm working on. The general use is create a pair of symbolic formulas, and then divide those two formulas. This works quite well most of the time. However, sometimes, it…

Matt Sieker
- 9,349
- 2
- 25
- 43
2
votes
2 answers
Find covariance of Math Net matrix
I'm using MathNet Numerics matrices and trying to find out covariance of a matrix.
How can we find covariance of matrix?
We have method to find covariance between two IEnumerable under Statistics…

malkam
- 2,337
- 1
- 14
- 17
2
votes
2 answers
Mono Mathnet MKL Nativer provider not found
I'm trying to use the Mkl native provider from mathdotnet with mono in Linux.
I'm using monodevelop and installed MathNet.Numerics and both MathNet.Numerics.MKL.Linux-x64 and -x86 packages via the build in NuGet package manager.
When I try this…

Robert
- 101
- 7
2
votes
1 answer
Parse expression with double coefficient values in mathdotnet
I am using Infix.Parse to parse equations like
apples + oranges = 2
Expression aleft = Infix.ParseOrThrow("apples + oranges");
Expression aright = Infix.ParseOrThrow("2");
Sometimes I need to parse fractional values, like
2.5*tax + income =…

shyamupa
- 1,528
- 4
- 16
- 24
2
votes
2 answers
Why is the MathNet.Numerics NuGet package so big?
I recently added MathNet.Numerics through NuGet to my C# solution. The package directory in the solution folder ballooned to about 50 MB! Yet I can simply download the MathNet dll and use only that, which takes up only 1.5 MB. If I want…

Superbest
- 25,318
- 14
- 62
- 134
2
votes
1 answer
Multiple Regression with Math.net in VB.Net
So I am trying to use math.net in vb.net. I have copied the c# excerpt from the website and tried to convert it to vb.net. I have gotten to this point:
Dim m = Matrix(Of Double).Build.DenseOfArray({{1.0, 4.0}, {2.0, 5.0}, {3.0, 2.0}})
Dim y =…

Scott Craner
- 148,073
- 10
- 49
- 81
2
votes
1 answer
RunningStatistics: Is there a way to track only a window of the last 5 samples?
MathNet.Numerics.Statistics has only Push() method, there is no Pop() method.
Let's say my window size is set to 5, and I've already sampled 5 values using Push(), I would want at that point that when I sample the next (sixth) value, it would remove…

Amir
- 21
- 2
2
votes
1 answer
Matrix pointwise operation using a function
How do I change the value of each element in a Matrix that involves a function call. Something like
matrix[i,j] = funct(matrix[i,j]*2)-1;

Yang
- 6,682
- 20
- 64
- 96
2
votes
1 answer
Linear fit with Math.NET: error in data and error in fit parameters?
I am trying to use Math.NET to perform a simple linear fit through a small set of datapoints. Using Fit.Line I am very easily able to perform the linear fit and obtain the slope and intercept:
Tuple result = Fit.Line(xdata,…

Nick Thissen
- 1,802
- 4
- 27
- 38
2
votes
1 answer
Getting the dimension of a Vector in Math.NET
If I was given a Vector in Math.NET, how can I check the number of dimensions that it has? I can't seem to find anything in the documentation

9a3eedi
- 696
- 2
- 7
- 18
2
votes
1 answer
Impossible to remove rows from matrix with Math.NET Numerics
I have a weird problem with Math.NET Numerics. Let say I have a matrix well instantiated and filled (I verified by writing it in a text file), which size is (949 x 30).
All I want is to remove a row from this matrix. But it seems that I…

Kabulan0lak
- 2,116
- 1
- 19
- 34
2
votes
1 answer
MathNet.Numerics not utilizing the Mkl native provider
I have an F# project that uses MathNet.Numerics for Linear Algebra routines.
I have placed the following code in an F# module:
module LinearAlgebra
open MathNet.Numerics
open MathNet.Numerics.LinearAlgebra.Double
open…

JTS
- 33
- 5
2
votes
1 answer
Is there a method in recent Math.Net to return the SquaredNorm of a vector?
In the old version (Iridium) there was a method Vector.SquaredNorm() but in the most recent stable version of Math.Net there is none available.
What method should I use?

Stécy
- 11,951
- 16
- 64
- 89
2
votes
2 answers
math.net installation for F#
I am quite new to F# and am trying to install math.net on Ubuntu 13.04. The following page recommends using the Package Manager Console to install on Linux 64
https://www.nuget.org/packages/MathNet.Numerics.MKL.Linux-x64/
but I am puzzled by the…

gappy
- 10,095
- 14
- 54
- 73