| Copyright | (c) Artur M. Brodzki 2018 |
|---|---|
| License | BSD3 |
| Maintainer | artur@brodzki.org |
| Stability | experimental |
| Portability | Windows/POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Multilinear.Tensor
Contents
Description
- This module provides convenient constructors that generate a arbitrary finitely- or infinitely-dimensional tensors.
- Finitely-dimensional tensors provide much greater performance than inifitely-dimensional
Generators
Arguments
| :: (Num a, Unbox a) | |
| => (String, [Int]) | Upper indices names (one character per index) and its sizes |
| -> (String, [Int]) | Lower indices names (one character per index) and its sizes |
| -> ([Int] -> [Int] -> Tensor a) | Generator function (f [u1,u2,...] [d1,d2,...] returns a tensor element at t [u1,u2,...] [d1,d2,...]) |
| -> Tensor a | Generated tensor |
Generate tensor composed of other tensors