haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Demote statically typed matrix/vector to regular Matrix/Vector? #158

Closed sid-kap closed 9 years ago

sid-kap commented 9 years ago

Hi,

Is there any way to demote a statically typed matrix or vector to a standard matrix or vector (or to a List, which I could then build a regular Matrix/Vector from)?

I believe I should be able to do this using LA.toList since R n is an instance of Numeric.LinearAlgebra.Vector, but I'm getting type errors.

sid-kap commented 9 years ago

It looks like I should be using extract. Sorry for the noise!