Latest Updates
Latest Tweets
Fork me on GitHub

Quick Start

With VisualStudio 2010, NuGet and F#

  1. Ensure you have NuGet Packet Manager installed in VisualStudio. If you don't have it yet, you can get it using the Extension Manager in the Tools menu.

  2. Create a new F# project (or open an existing F# project you'd like to extend)

  3. Click Menu Project > Add Library Package Reference

  4. Choose online package sources on the left, then search for Math.NET, and install the MathNet.Numerics.FSharp package.

  5. Enjoy:

    open MathNet.Numerics.FSharp
    open MathNet.Numerics.LinearAlgebra
    // Create a new 100 dimensional dense vector.
    let v = Double.DenseVector.init 100 (fun i -> float i / 100.0)  
    // Another way to create a 100 dimensional vector is using the vector function.
    let w = vector (List.init 100 (fun i -> float i ** 2.0))  
    // We can now add two vectors together ...
    let z = v + w