BLAS.Matrix.Immutable
 Stability experimental Maintainer Patrick Perry
 Contents Rows and columns Multiplication
Description
Synopsis
row :: IMatrix a e => a (m, n) e -> Int -> Vector n e
col :: IMatrix a e => a (m, n) e -> Int -> Vector m e
rows :: IMatrix a e => a (m, n) e -> [Vector n e]
cols :: IMatrix a e => a (m, n) e -> [Vector m e]
(<*>) :: IMatrix a e => a (m, n) e -> Vector n e -> Vector m e
(<**>) :: IMatrix a e => a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e
sapply :: IMatrix a e => e -> a (m, n) e -> Vector n e -> Vector m e
sapplyMat :: IMatrix a e => e -> a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e
class (BLAS1 e, BaseMatrix a) => IMatrix a e where
 unsafeSApply :: e -> a (m, n) e -> Vector n e -> Vector m e unsafeSApplyMat :: e -> a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e unsafeRow :: a (m, n) e -> Int -> Vector n e unsafeCol :: a (m, n) e -> Int -> Vector m e
unsafeApply :: IMatrix a e => a (m, n) e -> Vector n e -> Vector m e
unsafeApplyMat :: IMatrix a e => a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e
Rows and columns
 row :: IMatrix a e => a (m, n) e -> Int -> Vector n e Source
Get the given row in a matrix.
 col :: IMatrix a e => a (m, n) e -> Int -> Vector m e Source
Get the given column in a matrix.
 rows :: IMatrix a e => a (m, n) e -> [Vector n e] Source
Get a list the row vectors in the matrix.
 cols :: IMatrix a e => a (m, n) e -> [Vector m e] Source
Get a list the column vectors in the matrix.
Multiplication
 (<*>) :: IMatrix a e => a (m, n) e -> Vector n e -> Vector m e Source
Apply to a vector
 (<**>) :: IMatrix a e => a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e Source
Apply to a matrix
 sapply :: IMatrix a e => e -> a (m, n) e -> Vector n e -> Vector m e Source
 sapplyMat :: IMatrix a e => e -> a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e Source
 class (BLAS1 e, BaseMatrix a) => IMatrix a e where Source
Methods
 unsafeSApply :: e -> a (m, n) e -> Vector n e -> Vector m e Source
 unsafeSApplyMat :: e -> a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e Source
 unsafeRow :: a (m, n) e -> Int -> Vector n e Source
Same as row but index is not range-checked.
 unsafeCol :: a (m, n) e -> Int -> Vector m e Source
Same as col but index is not range-checked.
Instances
 BLAS3 e => IMatrix Matrix e BLAS2 e => IMatrix Banded e BLAS1 e => IMatrix Perm e BLAS1 e => IMatrix (Diag Vector) e BLAS3 e => IMatrix (Herm Matrix) e BLAS3 e => IMatrix (Herm Banded) e BLAS3 e => IMatrix (Tri Matrix) e BLAS2 e => IMatrix (Tri Banded) e
 unsafeApply :: IMatrix a e => a (m, n) e -> Vector n e -> Vector m e Source
 unsafeApplyMat :: IMatrix a e => a (m, k) e -> Matrix (k, n) e -> Matrix (m, n) e Source
Produced by Haddock version 2.3.0