----------------------------------------------------------------------------- -- | -- Module : BLAS.Matrix.Base -- Copyright : Copyright (c) , Patrick Perry -- License : BSD3 -- Maintainer : Patrick Perry -- Stability : experimental -- module BLAS.Matrix.Base ( Matrix(..) ) where import BLAS.Elem.Base ( Elem ) -- | A base class for matrices. class Matrix a where -- | The number of rows in the matrix. numRows :: a (m,n) e -> Int -- | The number of columns in the matrix. numCols :: a (m,n) e -> Int -- | Creates a new matrix view that conjugates and transposes the -- given matrix. herm :: Elem e => a (m,n) e -> a (n,m) e