Questions tagged [mathnet-numerics]

Math.NET Numerics is an opensource numerical library for .Net, Silverlight and Mono.

Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Covered topics include special functions, linear algebra, probability models, random numbers, statistics, interpolation, integration, curve fitting, integral transforms (FFT) and more.

In addition to the core .NET package (which is written entirely in C#), Numerics specifically supports F# 3.0 with idiomatic extension modules and maintains mathematical data structures like BigRational that originated in the F# PowerPack. If a performance boost is needed, the managed-code provider backing its linear algebra routines and decompositions can be exchanged with wrappers for optimized native implementations such as Intel MKL.

Supports Mono and .NET 4.0 on Linux, Mac and Windows, the portable version also Silverlight 5, WindowsPhone 8 and .NET for Windows Store apps.

Source: GitHub: Math.NET Numerics ReadMe file

230 questions
0
votes
1 answer

How to reproduce Excel's TDIST function using Math.NET

I am attempting to reproduce the same results of Excel's TDIST() function in Math.NET. In my tests, Excel produces the following value for this two-tailed Student's T-Test: Excel 1 - TDIST(0.84, 8009, 2) result: 0.599066539 In Math.NET, however, I…
Derek Hunziker
  • 12,996
  • 4
  • 57
  • 105
0
votes
1 answer

MathNet Matrix MapIndexInplace confusion about arguments

The Matrix function MapIndexInplace is documented to take a Func (int, int, float, float). I don't understand what the second float value is. Can anyone explain?
0
votes
2 answers

How to create a submatrix skipping a row and a column using Mathnet.numerics library?

I am trying to code to obtain minors of different elements in a matrix. I am using Mathnet.numerics library. I see the library has submatrix method where I need to input rowindex and rowcount. But for my case I need to create submatrix by skipping…
0
votes
1 answer

Implementing Simpson's Rule math.net numerics

I am trying to implement Simpson's Rule using the math.net numerics library. The method that I would like to use takes four arguments, a Func (function pointer), intervalBegin, intervalEnd and partitionNumbers. Currently I am testing the method…
Doro
  • 671
  • 1
  • 16
  • 34
0
votes
2 answers

Math.net numerics DenseMatrix backward compatibility

Is DenseMatrix from version 3.2.3.2 not comatible with 2.6.x.x version ? Is there any substitute for creating DenseMatrix from two dimensional array ? var xDense = new DenseMatrix(double[,] xData);
Piotr Leniartek
  • 1,177
  • 2
  • 14
  • 33
0
votes
1 answer

Which Method Rotates a 3d Vector

Which Math.Net function do I use to rotate a 3d Vector around another 3d Vector (Pivot Point)? I am using the C# Library Math.Net, mainly because I am not afraid to say that I struggle with complex mathematical concepts. Someone suggested I use…
sazr
  • 24,984
  • 66
  • 194
  • 362
0
votes
1 answer

Getting an eigenvector as a 'Vector' listed from most significant to least using MathNet Numerics?

I used the Evd<> class of MathNet Numerics to get the eigenvector of a matrix but it turned out to be of type Vector and I was unable to cast that into Vector, which is what I need for my operations. This is how I got the…
covfefe
  • 2,485
  • 8
  • 47
  • 77
0
votes
2 answers

Difference between Matrix, SparseMatrix, and DenseMatrix in MathNet Numerics?

I understand that some matrices have a lot of data, while others have mainly 0's or are empty. But what is the advantage of creating a SparseMatrix object to hold a sparsely populated matrix over creating a DenseMatrix object to hold a sparsely…
covfefe
  • 2,485
  • 8
  • 47
  • 77
0
votes
2 answers

Compiler error calling MathNet Numerics DelimitedWriter.WriteFile

I'm trying to write a DenseMatrix object to a csv file using DelimitedWriter like so: DelimitedWriter.WriteFile(originalData, "written.csv", ","); A red line would appear saying that the type arguments for the method cannot be inferred from the…
covfefe
  • 2,485
  • 8
  • 47
  • 77
0
votes
1 answer

How to get vector magnitude using MathNET.Numerics?

I'm trying to get the magnitude of a vector and I tried using the L2Norm() method but there was a red line under it stating that MathNet.Numerics.LinearAlgebra.Double.Vector does not contain a definition for L2Norm and no extension method L2Norm…
covfefe
  • 2,485
  • 8
  • 47
  • 77
0
votes
1 answer

Multiple Linear Regression math.net 2.6 with Fit.LinearMultiDim

Reffering to the question: Multiple Regression with math.net @christoph-ruegg Can you provide me an example of resolving regression using Fit.LinearMultiDim. var xdata = new DenseMatrix( new double[,]{{1, 36, 66, 45, 32}, …
Piotr Leniartek
  • 1,177
  • 2
  • 14
  • 33
0
votes
1 answer

Extract row from Deedle and convert to Matrix

I am trying to extract a row from a Deedle Frame and convert it to a flat (1x4) DenseMatrix. All missing values have been dropped and the values in the Frame are numerical. My code: let matrix = let curr = seq { yield…
NoIdeaHowToFixThis
  • 4,484
  • 2
  • 34
  • 69
0
votes
1 answer

MathNet.Numerics operation return types

I'm using MathsNet.Numerics lib. I want to do operations on Complex Vectors i.e. I'm using MathNet.Numerics.LinearAlgebra.Complex which gives me Vector as Complex version of MathNet.Numerics.LinearAlgebra.Generic.Vector Operatations on Vectors…
Ricibob
  • 7,505
  • 5
  • 46
  • 65
0
votes
1 answer

Multiple Regression with math.net

Hello I am trying to get multiple regression with math.net and I am a little confused. var xdata = new DenseMatrix( new double[,]{{1, 36, 66, 45, 32}, {1, 37, 68, 12, 2}, {1, 47, 64, 78, 34}, {1, 32, 53, 56,…
user1221399
  • 41
  • 2
  • 11
-1
votes
1 answer

Solve general eigenproblem with mathnet

I found a very promissing package (MatNet) to work with in my structural engineering program. However, while MathNet relies heavily on MKL from Intel, I cannot see how I can solve a general eigenproblem to find the structure's…
Erik
  • 894
  • 1
  • 8
  • 25
1 2 3
15
16