Copyright | 2014 Edward Kmett [2015..2020] Trevor L. McDonell |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Simple matrix operations for low-dimensional primitives
Documentation
class Trace m => Trace m where Source #
Nothing
trace :: (Num a, Box2 m m a) => Exp (m (m a)) -> Exp a Source #
Compute the trace of a matrix
diagonal :: Box2 m m a => Exp (m (m a)) -> Exp (m a) Source #
Compute the diagonal of a matrix
Instances
Trace Complex Source # | |
Trace Plucker Source # | |
Trace Quaternion Source # | |
Defined in Data.Array.Accelerate.Linear.Trace trace :: (Num a, Box2 Quaternion Quaternion a) => Exp (Quaternion (Quaternion a)) -> Exp a Source # diagonal :: Box2 Quaternion Quaternion a => Exp (Quaternion (Quaternion a)) -> Exp (Quaternion a) Source # | |
Trace V0 Source # | |
Trace V4 Source # | |
Trace V3 Source # | |
Trace V2 Source # | |
Trace V1 Source # | |