Safe Haskell | None |
---|---|
Language | Haskell2010 |
The wrapper for a C implementation of the Tensor interface.
Documentation
A wrapper type to seamlessly convert between internal representations
This type is an instance of Tensor
.
Tensor CT Source | |
Fact m => Functor (CT m) Source | |
Fact m => Applicative (CT m) Source | |
Fact m => Foldable (CT m) Source | |
Fact m => Traversable (CT m) Source | |
Eq r => Eq (CT m r) Source | |
Show r => Show (CT m r) Source | |
(Storable r, Random (CT' m r)) => Random (CT m r) Source | |
(Storable r, Arbitrary (CT' m r)) => Arbitrary (CT m r) Source | |
NFData r => NFData (CT m r) Source | |
(Fact m, Ring r, Storable r, CRNS r) => C (CT m r) Source | |
(ZeroTestable r, Storable r, Fact m) => C (CT m r) Source | |
(Additive r, Storable r, CRNS r, Fact m) => C (CT m r) Source | |
type TElt CT r = (IntegralDomain r, ZeroTestable r, Eq r, Random r, NFData r, Storable r, CRNS r) Source |
Class to dispatch tuples to the C backend. In a different life,
the library used product-ring representation at the Cyclotomic
level, so FastCyc
called Tensor
-level functions on each
component of the product ring. This class emulates that behavior
because making C handle arbitrary product rings seems difficult.
zipWrapper, crtWrapper, lgWrapper, divGWrapper, gaussWrapper
Class to safely match Haskell types with the appropriate C function.
dcrt, dcrtinv, dl, dlinv, dmulgpow, dmulgdec, dginvpow, dginvdec, dadd, dmul, dgcrt, dginvcrt, dgaussdec