| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Tensor.Compiler
Contents
Syntax
Parametric higher-order abstract syntax (PHOAS), after B. Oliveira, A. Loeh, `Abstract Syntax Graphs for Domain Specific Languages`
let2_ :: Phoas a -> Phoas b -> (a -> b -> Phoas c) -> Phoas c Source #
Bind two variables into a closure
Exceptions
data CException Source #
Tensor contraction
Inject two Tensor constant into Vars, while ensuring that all the contraction indices are compatible with those of the tensors.
Throws a CException if any index is nonnegative or too large for the shape of the given tensor.
Exceptions
Constructors
| IncompatShape String | |
| IncompatIx String |
Instances