| License | MIT | 
|---|---|
| Safe Haskell | None | 
| Language | Haskell2010 | 
Language.Egison.Tensor
Contents
Description
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
| TensorComponent WHNFData ObjectRef Source # | |
| TensorComponent EgisonValue EgisonValue Source # | |
Defined in Language.Egison.Tensor Methods fromTensor :: Tensor EgisonValue -> EvalM EgisonValue Source # toTensor :: EgisonValue -> EvalM (Tensor EgisonValue) Source #  | |
Tensor
enumTensorIndices :: Shape -> [[Integer]] Source #
tTranspose :: [Index EgisonValue] -> Tensor a -> EvalM (Tensor a) Source #
tTranspose' :: [EgisonValue] -> Tensor a -> EvalM (Tensor a) Source #