repa-algorithms-3.0.0.1: Algorithms using the Repa array library.

Safe HaskellNone

Data.Array.Repa.Algorithms.Matrix

Contents

Description

Algorithms operating on matrices.

These functions should give performance comparable with nested loop C implementations.

If you care deeply about runtime performance then you may be better off using a binding to LAPACK, such as hvector.

Synopsis

Documentation

row :: DIM2 -> IntSource

Take the row number of a rank-2 index.

col :: DIM2 -> IntSource

Take the column number of a rank-2 index.

Matrix Multiplication.

mmultP :: Array U DIM2 Double -> Array U DIM2 Double -> Array U DIM2 DoubleSource

Matrix matrix multiply, in parallel.

mmultS :: Array U DIM2 Double -> Array U DIM2 Double -> Array U DIM2 DoubleSource

Matrix matrix multiply, sequentially.

Transposition.

transpose2P :: Array U DIM2 Double -> Array U DIM2 DoubleSource

Transpose a 2D matrix, in parallel.

transpose2S :: Array U DIM2 Double -> Array U DIM2 DoubleSource

Transpose a 2D matrix, sequentially.