Safe Haskell | Safe-Infered |
---|
- class Tensor t where
- class FromList t where
- fromList :: [e] -> t e
- class DirectSum n t1 t2 where
- class Transpose t where
- type TransposeSpace t
- transpose :: t -> TransposeSpace t
- class Zip t where
- zipWith :: (a -> b -> c) -> t a -> t b -> t c
Documentation
returns the dimensions of the dims
. In any
instance of Tensor
Tensor
should be independent of its
argument and work on dims
.
undefined
(!) :: t -> Index t -> Elem tSource
generate :: (Index t -> Elem t) -> tSource
Generates a
according to the given function.
Tensor
(Bounded i, MultiIndex i) => Tensor (Tensor i e) |
(Bounded i, Cardinality i, MultiIndex i) => FromList (Tensor i) |
class DirectSum n t1 t2 whereSource
(Cardinal n, MultiIndex i, MultiIndex j, MultiIndexConcat n i j) => DirectSum n (Tensor i e) (Tensor j e) |
type TransposeSpace t Source
transpose :: t -> TransposeSpace tSource