hmatrix-repa-0.1.2.2: Adaptors for interoperability between hmatrix and repa

Copyright(c) Alexander Vivian Hugh McPhail 2011, 2015
LicenseBSD3
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Data.Packed.Repa

Description

Repa / hmatrix conversion functions

Synopsis

Documentation

vectorToRepa :: (Storable e, Vector Vector e, Container Vector e) => Vector e -> Array V DIM1 e Source #

convert a Storable vector to a DIM1 repa array

repaToVector :: Vector Vector e => Array V DIM1 e -> Vector e Source #

convert a 1d repa array to a Storable vector

matrixToRepa :: (Element e, Vector Vector e) => Matrix e -> Array V DIM2 e Source #

convert a Storable matrix to a DIM2 repa array

repaToMatrix :: (Storable e, Vector Vector e) => Array V DIM2 e -> Matrix e Source #

convert a 2d repa array to a Storable matrix