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

Portabilityportable
Stabilityprovisional
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Safe HaskellSafe-Infered

Data.Packed.Repa

Description

Repa / hmatrix conversion functions

Synopsis

Documentation

vectorToRepa :: (Storable e, Vector Vector e) => Vector e -> Array V DIM1 eSource

convert a Storable vector to a DIM1 repa array

repaToVector :: Vector Vector e => Array V DIM1 e -> Vector eSource

convert a 1d repa array to a Storable vector

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

convert a Storable matrix to a DIM2 repa array

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

convert a 2d repa array to a Storable matrix