Data.Packed.Repa

vectorToRepa

repaToVector

matrixToRepa

repaToMatrix