This project has moved and is read-only. For the latest updates, please go here.

VB.Net to F# interfacing

Jan 10, 2013 at 3:59 PM
Edited Jan 10, 2013 at 4:00 PM

As a VB.NET developer in the area of data analysis in scientific research, I find the Math.NET library and F# very appealing.  My VB.NET library is extensive and I'm playing around with Math.NET and F# integration for enhancing and extending various utilities.

One question, what is the best way to pass a matrix or multi-dimensional array from VB.NET to F#.NET?  Should I use the Numerics' DenseMatrix?  What would the calling function look like and parameter passing look like.  My arrays are in the scale of 8x1000000 integer and double.

Any thoughts?  Examples?


Jan 11, 2013 at 5:31 PM


let arr : double[,] =

    Array2D.init 8 1000000 (fun x y -> 0.0)

Anton Tayanovskyy gave me this structure from the F# site
Jan 20, 2013 at 10:22 AM

Hi did you use a Matrix of ints?

I was not able to do that since


is still an abstract type and to implement the codeto make it non-abstract required a bit of work.