|
| BLAS.Matrix.Mutable | | Stability | experimental | | Maintainer | Patrick Perry <patperry@stanford.edu> |
|
|
|
|
|
| Description |
|
|
| Synopsis |
|
| getRow :: (MMatrix a e m, WriteVector x m) => a (k, l) e -> Int -> m (x l e) | | | getCol :: (MMatrix a e m, WriteVector x m) => a (k, l) e -> Int -> m (x k e) | | | getRows :: (MMatrix a e m, WriteVector x m) => a (k, l) e -> m [x l e] | | | getCols :: (MMatrix a e m, WriteVector x m) => a (k, l) e -> m [x k e] | | | getRows' :: (MMatrix a e m, WriteVector x m) => a (k, l) e -> m [x l e] | | | getCols' :: (MMatrix a e m, WriteVector x m) => a (k, l) e -> m [x k e] | | | getApply :: (MMatrix a e m, ReadVector x m, WriteVector y m) => a (k, l) e -> x l e -> m (y k e) | | | getSApply :: (MMatrix a e m, ReadVector x m, WriteVector y m) => e -> a (k, l) e -> x l e -> m (y k e) | | | getApplyMat :: (MMatrix a e m, ReadMatrix b x m, WriteMatrix c y m) => a (r, s) e -> b (s, t) e -> m (c (r, t) e) | | | getSApplyMat :: (MMatrix a e m, ReadMatrix b x m, WriteMatrix c y m) => e -> a (r, s) e -> b (s, t) e -> m (c (r, t) e) | | | doApply :: (MMatrix a e m, ReadVector x m, WriteVector y m) => a (k, l) e -> x l e -> y k e -> m () | | | doSApplyAdd :: (MMatrix a e m, ReadVector x m, WriteVector y m) => e -> a (k, l) e -> x l e -> e -> y k e -> m () | | | doApply_ :: (MMatrix a e m, WriteVector y m) => a (n, n) e -> y n e -> m () | | | doSApply_ :: (MMatrix a e m, WriteVector y m) => e -> a (n, n) e -> y n e -> m () | | | doApplyMat :: (MMatrix a e m, ReadMatrix b x m, WriteMatrix c y m) => a (r, s) e -> b (s, t) e -> c (r, t) e -> m () | | | doSApplyAddMat :: (MMatrix a e m, ReadMatrix b x m, WriteMatrix c y m) => e -> a (r, s) e -> b (s, t) e -> e -> c (r, t) e -> m () | | | doApplyMat_ :: (MMatrix a e m, WriteMatrix b y m) => a (s, s) e -> b (s, t) e -> m () | | | doSApplyMat_ :: (MMatrix a e m, WriteMatrix b y m) => e -> a (s, s) e -> b (s, t) e -> m () | | | class (BaseMatrix a, BLAS1 e, Monad m) => MMatrix a e m where | | unsafeGetSApply :: (ReadVector x m, WriteVector y m) => e -> a (k, l) e -> x l e -> m (y k e) | | unsafeGetSApplyMat :: (ReadMatrix b x m, WriteMatrix c y m) => e -> a (r, s) e -> b (s, t) e -> m (c (r, t) e) | | unsafeDoSApplyAdd :: (ReadVector x m, WriteVector y m) => e -> a (k, l) e -> x l e -> e -> y k e -> m () | | unsafeDoSApplyAddMat :: (ReadMatrix b x m, WriteMatrix c y m) => e -> a (r, s) e -> b (s, t) e -> e -> c (r, t) e -> m () | | unsafeDoSApply_ :: WriteVector y m => e -> a (n, n) e -> y n e -> m () | | unsafeDoSApplyMat_ :: WriteMatrix b y m => e -> a (k, k) e -> b (k, l) e -> m () | | unsafeGetRow :: WriteVector x m => a (k, l) e -> Int -> m (x l e) | | unsafeGetCol :: WriteVector x m => a (k, l) e -> Int -> m (x k e) |
| | | unsafeGetApply :: (MMatrix a e m, ReadVector x m, WriteVector y m) => a (k, l) e -> x l e -> m (y k e) | | | unsafeDoApply :: (MMatrix a e m, ReadVector x m, WriteVector y m) => a (k, l) e -> x l e -> y k e -> m () | | | unsafeDoApply_ :: (MMatrix a e m, WriteVector y m) => a (n, n) e -> y n e -> m () | | | unsafeGetApplyMat :: (MMatrix a e m, ReadMatrix b x m, WriteMatrix c y m) => a (r, s) e -> b (s, t) e -> m (c (r, t) e) | | | unsafeDoApplyMat :: (MMatrix a e m, ReadMatrix b x m, WriteMatrix c y m) => a (r, s) e -> b (s, t) e -> c (r, t) e -> m () | | | unsafeDoApplyMat_ :: (MMatrix a e m, WriteMatrix b y m) => a (s, s) e -> b (s, t) e -> m () |
|
|
|
| Getting rows and columns
|
|
|
| Get the given row in a matrix.
|
|
|
| Get the given column in a matrix.
|
|
|
| Get a lazy list the row vectors in the matrix. See also getRows'.
|
|
|
| Get a lazy list of the column vectors in the matrix. See also getCols'.
|
|
|
| Get a strict list the row vectors in the matrix. See also getRows.
|
|
|
| Get a strict list of the column vectors in the matrix. See also getCols.
|
|
| Matrix and vector multiplication
|
|
|
| Apply to a vector
|
|
|
| Scale and apply to a vector
|
|
|
| Apply to a matrix
|
|
|
| Scale and apply to a matrix
|
|
| In-place multiplication
|
|
|
| Apply to a vector and store the result in another vector
|
|
|
y := alpha a x + beta y |
|
|
x := a x |
|
|
x := alpha a x |
|
|
| Apply to a matrix and store the result in another matrix
|
|
|
c := alpha a b + beta c |
|
|
b := a b |
|
|
b := alpha a b |
|
| The MMatrix type class
|
|
|
| Minimal complete definition: (unsafeDoSApplyAdd, unsafeDoSApplyAddMat)
| | | Methods | | | | | | | | | | | | unsafeDoSApplyMat_ :: WriteMatrix b y m => e -> a (k, k) e -> b (k, l) e -> m () | Source |
| | | | |
| | Instances | |
|
|
| Unsafe operations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Produced by Haddock version 2.3.0 |