This tag doesn't currently have an excerpt. Help contribute by writing one
Questions tagged [math.net]
256 questions
2
votes
2 answers
Is SVD included in MathNet.Numerics x86?
I need to calculate the Singular Value Decomposition of a Dense matrix but it doesn't seem to be included in the package I'm using: MathNet.Numerics x86 v2.4.0.26 downloaded from Nuget package manager.
I am referencing this question Svd…

Felix Castor
- 1,598
- 1
- 18
- 39
2
votes
1 answer
MathNET Matrix Casting
I have recently started using the MathNET library and it is awesome. I am working heavily with matrices and vectors. The library works great, but I am finding that I have to use casting all the time; an example of this would be:
using…

MoonKnight
- 23,214
- 40
- 145
- 277
2
votes
2 answers
math.net matrix juxtaposition
What is the math.net equivalent of this type of MATLAB operations on matrices for matrix juxtaposition?
A = [2 2; 3 3]
B = [4 4; 5 5]
C = [A B]
D = [A; B]
Is there a cheat sheet that compares MATLAB/NUMPY to Math.net? That may help me in the…

NoIdeaHowToFixThis
- 4,484
- 2
- 34
- 69
2
votes
1 answer
math.net conversion of Matrix to Generic.Matrix
let v = [| 5.0; 2.0; 3.0; 11.0 |]
let m2 = new DenseMatrix(2, 2, v)
let invm = m2.Inverse()
let invt = m2.Transpose()
Here m2 is a Matrix. However, invm and invt are Generic.Matrix. Why this conversion?

NoIdeaHowToFixThis
- 4,484
- 2
- 34
- 69
2
votes
1 answer
MathNet Numerics out of memory exception
I'm using MathNet.Numerics in my F# project, and it runs out of memory when dealing with matrices that should be well within its remit.
EDIT: The problem is definitely not with MathNet.Numerics. It's something I'm doing, though I have yet to work…

Rob Lyndon
- 12,089
- 5
- 49
- 74
2
votes
1 answer
add numerically the values of two vectors using Math.Net Numerics with C#
I have two vectors like the following:
vdA = { 8.0, 7.0, 6.0 }
vdB = { 0.0, 1.0, 2.0, 3.0 }
I basicly want a vector vdX that result is to sum all element of vdA by all values of vdB.
vdX = {
8.0, 9.0, 10.0 11.0,
7.0, 8.0, 9.0,…

LeMoussel
- 5,290
- 12
- 69
- 122
2
votes
2 answers
Svd recomposition with Mathnet numerics library seems wrong
I'm looking for non regression between Mathnet.Iridium and Mathnet.Numerics. Here is my code, using Mathnet.Numerics :
double[][] symJaggedArray = new double[5][];
symJaggedArray[0] = new double[] { 3, 0, 0, 0, 0 };
symJaggedArray[1] = new double[]…

Fabrice E.
- 413
- 1
- 4
- 13
2
votes
1 answer
C# Can LinearRegression code from Math.NET Numerics be made faster?
I need to do multiple linear regression efficiently. I am trying to use the Math.NET Numerics package but it seems slow - perhaps it is the way I have coded it? For this example I have only simple (1 x value) regression.
I have this snippet:
…

ManInMoon
- 6,795
- 15
- 70
- 133
2
votes
2 answers
Multiple Regression in Math.Net Numerics
I achieved simple single regression using math.net regression method like this:
var xdata = new double[] { 10, 20, 30, 40, 50 };
var ydata = new double[] { 15, 20, 25, 55, 95 };
var X = DenseMatrix.CreateFromColumns(new[] { new…

1teamsah
- 1,863
- 3
- 23
- 43
1
vote
1 answer
How can I solve a Matrix in MathNet?
I can't figure out how to get the values for the resulting matrix using MathNet, can anyone please help? I have a 4 column, 3 row matrix which represents 3 polynomials and I am trying to solve for a=, b=, c=. row1 representing a, 2 b, 3 c. I…

Travis J
- 81,153
- 41
- 202
- 273
1
vote
0 answers
BesselJ function with double parameters
When I want to use the function BesselJ(double n,double z) the compiler complains with the following message:
The type 'Complex' is defined in an assembly that is not referenced.
You must add a reference to assembly…
1
vote
0 answers
How to Read and display my new transformated pixel coordinate in c#
I've been working on a project for a week with the manipulation image coordinate, and I´m mostly done. However, I am experiencing some difficulties. I am programming with C# with the library Emgu.Cv (This is the image, I want to rotate the…

elcapo
- 9
- 2
1
vote
0 answers
Sigmoid Curve fit in MathNet Numerics
I have a 3rd degree polynomial fit in MathNet and tested that it works
However, the application here is for edge finding, and I need to do an S-curve fit,
I cannot find the correct function for this.
Essentially this would be a rotated polynomial…

Mich
- 3,188
- 4
- 37
- 85
1
vote
1 answer
Multiple regression for percentiles using Math.NET
I am currently using Fit.MultiDim from Math.NET to calculate an estimated value for a data set that has 2 dimensions like so:
using MathNet.Numerics;
using System.Collections.Generic;
using System.Linq;
namespace Project
{
public class Program
…

Marin Petkov
- 2,128
- 4
- 17
- 23
1
vote
0 answers
Math.net get eigenvector for specific eigenvalue
I have a matrix object and want to find the eigenvector that corresponds to an eigenvalue of 1. How would I do that? I'm currently solving it with a good ole' for loop, but am wondering whether there are more elegant ways to do it
using…

emilaz
- 1,722
- 1
- 15
- 31