comfort-blas-0.0.2: Numerical Basic Linear Algebra using BLAS
Safe HaskellSafe-Inferred
LanguageHaskell98

Numeric.BLAS.Matrix.RowMajor

Documentation

type Matrix height width = Array (height, width) Source #

takeRow :: (Indexed height, C width, Index height ~ ix, Storable a) => ix -> Matrix height width a -> Vector width a Source #

takeColumn :: (C height, Indexed width, Index width ~ ix, Floating a) => ix -> Matrix height width a -> Vector height a Source #

fromRows :: (C width, Eq width, Storable a) => width -> [Vector width a] -> Matrix ShapeInt width a Source #

tensorProduct :: (C height, C width, Floating a) => Either Conjugation Conjugation -> Vector height a -> Vector width a -> Matrix height width a Source #

decomplex :: Real a => Matrix height width (Complex a) -> Matrix height (width, ComplexShape) a Source #

recomplex :: Real a => Matrix height (width, ComplexShape) a -> Matrix height width (Complex a) Source #

scaleRows :: (C height, Eq height, C width, Floating a) => Vector height a -> Matrix height width a -> Matrix height width a Source #

scaleColumns :: (C height, C width, Eq width, Floating a) => Vector width a -> Matrix height width a -> Matrix height width a Source #

multiplyVectorLeft :: (Eq height, C height, C width, Floating a) => Vector height a -> Matrix height width a -> Vector width a Source #

multiplyVectorRight :: (C height, C width, Eq width, Floating a) => Matrix height width a -> Vector width a -> Vector height a Source #