License | MIT |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This module contains functions for tensors.
Synopsis
- class TensorComponent a b | a -> b where
- tref :: [Index EgisonValue] -> Tensor a -> EvalM (Tensor a)
- enumTensorIndices :: Shape -> [[Integer]]
- tTranspose :: [Index EgisonValue] -> Tensor a -> EvalM (Tensor a)
- tTranspose' :: [EgisonValue] -> Tensor a -> EvalM (Tensor a)
- tFlipIndices :: Tensor a -> EvalM (Tensor a)
- appendDF :: Integer -> WHNFData -> WHNFData
- removeDF :: WHNFData -> EvalM WHNFData
- tMap :: (a -> EvalM b) -> Tensor a -> EvalM (Tensor b)
- tMap2 :: (a -> b -> EvalM c) -> Tensor a -> Tensor b -> EvalM (Tensor c)
- tProduct :: (a -> b -> EvalM c) -> Tensor a -> Tensor b -> EvalM (Tensor c)
- tContract :: Tensor a -> EvalM [Tensor a]
- tContract' :: Tensor a -> EvalM (Tensor a)
- tConcat' :: [Tensor a] -> EvalM (Tensor a)
Documentation
class TensorComponent a b | a -> b where Source #
Instances
Tensor
enumTensorIndices :: Shape -> [[Integer]] Source #
tTranspose :: [Index EgisonValue] -> Tensor a -> EvalM (Tensor a) Source #
tTranspose' :: [EgisonValue] -> Tensor a -> EvalM (Tensor a) Source #