|
| Numeric.LinearAlgebra.Tensor | | Stability | experimental | | Maintainer | Alberto Ruiz <aruiz@um.es> |
|
|
|
|
|
| Description |
| Tensor computations. Indices can only be contracted if they are of different Variant type.
|
|
| Synopsis |
|
|
|
|
| The Tensor type
|
|
|
|
|
| Constructors | | Instances | |
|
|
|
| :: Coord t | | | => [Int] | coordinates
| | -> [t] | | | -> Tensor t | | | Creates a tensor from a list of dimensions and a list of coordinates.
A positive dimension means that the index is assumed to be contravariant (vector-like), and
a negative dimension means that the index is assumed to be covariant (like a linear function, or covector). Contractions can only be performed between indices of different type.
|
|
|
| Tensor creation utilities
|
|
|
| Create an Tensor from a list of parts with a contravariant index (superindex = newIndex Contra).
|
|
|
| Create an Tensor from a list of parts with a covariant index (subindex = newIndex Co).
|
|
|
| Create a contravariant rank-1 tensor from a list of coordinates.
|
|
|
| Create a covariant rank-1 tensor from a list of coordinates.
|
|
|
| Create a 1-contravariant, 1-covariant rank-2 tensor from list of lists of coordinates.
|
|
| Index manipulation
|
|
|
| Change the Variant nature of all dimensions to the opposite ones.
|
|
|
| Make all dimensions covariant.
|
|
|
| Make all dimensions contravariant.
|
|
|
| Remove the Variant nature of coordinates.
|
|
| General array operations
|
|
| module Numeric.LinearAlgebra.Array |
|
| Produced by Haddock version 2.6.0 |