Linear Algebra

open FSharp.Stats
open FSharp.Stats.Algebra

let A = 
    matrix [ [ 1.0;  1.0; -1.0 ]
             [ 1.0; -2.0; -3.0 ]
             [ 2.0;  3.0;  1.0 ] ]

let B = 
    matrix [ [  4.0; ]
             [ -6.0; ]
             [  7.0; ] ]

Using unmanaged optimized linear algebra functions

Attention: These bindings are highly incomplete and will most likely be dropped for something like MKL.NET. See issue#

the native libraries are contained in the nuget package at the netlib_LAPACK path. Include that one instead of the /../../lib pth used here.

ServiceLocator.setEnvironmentPathVariable (__SOURCE_DIRECTORY__ + "/../../lib") //"D:/Source/FSharp.Stats/lib"

LinearAlgebra.Service()

let svdRes = LinearAlgebra.SVD A
No value returned by any evaluator
namespace Plotly
namespace Plotly.NET
module Axis

from Plotly.NET
module StyleParam

from Plotly.NET
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
namespace FSharp.Stats
namespace FSharp.Stats.Algebra
val A : Matrix<float>
Multiple items
val matrix : ll:seq<#seq<float>> -> Matrix<float>

--------------------
type matrix = Matrix<float>
val B : Matrix<float>
module ServiceLocator

from FSharp.Stats
val setEnvironmentPathVariable : dllDirectory:string -> unit
module LinearAlgebra

from FSharp.Stats.Algebra
val Service : unit -> ILinearAlgebra
val svdRes : vector * Matrix<float> * Matrix<float>
val SVD : a:Matrix<float> -> vector * Matrix<float> * Matrix<float>