Hi,

I haven't worked with numerics a whole lot in F#, but I thought everything available in VB is there in F# as well, perhaps sometimes with less convenient syntax. Here is how to instantiate a 2D 8x10^6 double array:

1
2
let arr : double[,] =
    Array2D.init 8 1000000 (fun x y -> 0.0)

For more than 2/3D the convenience functions aren't there, but the functionality is around in System.Array.

Let us know how F# works out for you in your project!

Thanks,

--A

By on 1/10/2013 12:15 PM ()

Anton,

Thanks for the syntax. It was my fault, I was using angle instead of square brackets. What is really nice, I find, is the "F# Interactive" mode. I will keep the community apprised.

By on 1/11/2013 9:14 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper