[Haskell-cafe] BLAS Solve Example

Darrin Thompson darrinth at gmail.com
Tue Jul 22 16:09:24 EDT 2008


I'm stuck on something that I thought would be easy.

I have a matrix and a vector.

> module Main where
> import Data.Vector.Dense
> import Data.Matrix.Dense
> import BLAS.Matrix.Solve
>
> m = listMatrix (2, 3) ([1, 2, 3, 4, 5, 6]::[Double])
> v = listVector 2 ([1, 2]::[Double])
>
> main = do ???

Can I use one of the haskell libraries to solve that system? My goal
is to automate some tedium on small exercises from the Linear Algebra
text by Jim Heffron.

--
Darrin


More information about the Haskell-Cafe mailing list