This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [math.net]
256 questions
1
vote
1 answer
Difference between methods Matrix Divide(double scalar) and Matrix DivideByThis(double scalar) in MathNet Numerics?
I'm looking at the documentation for DenseMatrix in MathNet Numerics which can be found here. I found two method definitions Matrix Divide(double scalar) and Matrix DivideByThis(double scalar) which both seem to return a Matrix and accept a…

covfefe
- 2,485
- 8
- 47
- 77
1
vote
1 answer
Multiple Linear Regression in C#
I want to make a multiple linear regression in C#. I am trying to achieve this with MathNet.Numerics, but I keep getting the error "Matrix dimensions must agree 2x3".
/*****************************************************
* MathNet.Numerics…

Christoph Bühler
- 2,795
- 2
- 28
- 43
1
vote
2 answers
Best way to use Math.NET statistics functions on the properties of objects in a List
I'm trying to figure out the best way to perform a computation fast and wanted to find out what sort of approach people would usually take in a situation like this.
I have a List of objects which have properties that I want to compute the mean and…

rex
- 3,133
- 6
- 35
- 62
1
vote
1 answer
math.net DenseVectors vs DenseMatrix 1xn | nx1
This is really simple stuff but, as I am a noob with math.net, I may need to be pointed in the right direction:
let a = new DenseVector([| 5.0; 2.0; 3.0; |])
let m = new DenseMatrix(3, 3, 1.0)
let r = a * m
let r2 = m * a
results in:
> r;;
val it…

NoIdeaHowToFixThis
- 4,484
- 2
- 34
- 69
1
vote
1 answer
Using mathnet-numerics as CLR assembly in SQL Server
Has anyone successfully used MathNet.Numerics as a CLR assembly in SQL Server?
Using SQL Server 2012 on Windows 8, I've managed to do a CREATE ASSEMBLY pointing at the DLL but when I try to do
CREATE TYPE Normal EXTERNAL NAME…

Nick de Voil
- 13
- 2
1
vote
1 answer
How to add a new element into a DenseVector
I need to add a new element (double value) into an existing DenseVector. I found some workarounds, however, what is the right way how to do this in Math.NET?

Jan
- 43
- 7
1
vote
1 answer
Is there a way to get a spearmans correlation matrix for more than two arrays?
I have code that produces N arrays of doubles and I'd like to create a spearmans correlation matrix. Is there a function to do it for me or do I have to iterate through all the combinations and build my own correlation matrix with…

Justin Dearing
- 14,270
- 22
- 88
- 161
1
vote
1 answer
Math.Net Complex32 Division giving NaN
Alright, so i have two large complex values. Top, and Bottom:
Top = 4.0107e+030
Bot = 5.46725E26 -2.806428e26i
when i divide these two numbers in Math.Net's Complex32, it gives me a NaN for both the real and imaginray. I am assuming that it has…

zellwwf
- 15
- 2
1
vote
2 answers
MathNet Numerics Statistics Histogram
I am using MathNet library to compute some statistics e.g.. median, min, max. I computed some histogram data using this code:
var histogram = new Histogram(data, numberOfBuckets);
What does the bucket number mean? Is it a probability which can be…

Kevin Sky
- 45
- 1
- 10
0
votes
1 answer
NullReferenceException when testing (m == nullptr) with Mathnet Matrix type
I am struggeling with a weird NullReferenceException which occurs when I try to compare an attribute of a type derived from a Matrix type from the MathNet library to nullptr.
I want to write a a C++/CLI Class Library with a class Transformation,…

richn
- 164
- 2
- 9
0
votes
1 answer
How to get a sub matrix from a multi dimensional array in Math.Net?
I'm new to Math.Net.
Let's say I have a multi-dimensional matrix as:
double [,,] matA = new double [2,3,3];
for(k = 0; k < 2; k++)
{
for(i = 0; i < 3; i++)
{
for(j = 0 ;j < 3; j++)
{
matA[k,i,j] = ... // assign some value
…

hasahmet
- 1
- 2
0
votes
0 answers
Solving Linear Program with Branch-and-Bound
I am trying to solve a linear integer programming problem with Branch-and-Bound. Therefore, I calculated the optimal solution (relaxation) first and got 4 values:
x1: 84.949144123197641
x2: 80.6791757549221
x3: 0
x4: 38.459016105691269
My Target…

OXO
- 391
- 1
- 8
0
votes
1 answer
Mathnet.Numerics suddenly requires CUDA DLL
I maintain a .Net Framework 4.0 application (yes, I know) that depends on Mathnet.Numerics 3.11. Recently I started getting DllNotFoundException, saying that I lack MathNet.Numerics.CUDA.dll, when I call either Matrix.Solve(Vector) or…

Grault
- 974
- 12
- 31
0
votes
1 answer
Vector vs. Double.Vector error in F# when using BfgsSolver
I'm trying to use the BfgsSolve method from MathNet.Numerics for F# on a simple test case I wrote, but I'm running into a type mismatching issue.
Here's my code:
#r "nuget: MathNet.Numerics, 5.0.0-alpha08"
#r "nuget: MathNet.Numerics.FSharp,…

johnymm
- 131
- 6
0
votes
0 answers
How does extrapolation for spline in Matlabs interp2 works?
I know there has already been a lot of questioning about spline extrapolation in Matlab. I have an example where this works great in 2D and I want to understand this behaviour to programm it in C# using Math.Net. Here is my example:
matrix =…

Till
- 183
- 7