1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*!
Contains all the tooling for working with arbitrary rank tensors, symbolically, numerically, and parametrically.
It includes special support for a minkowski metric, and a way to add any custom diagonal (sign based) metric.
All tensor types make use of a tensor structure type, either the minimum `Vec` of [`Slot`]s or a more complete (but slightly more computationally heavy) [`HistoryStructure`].
Data is then added, to make parametric, or fully numeric tensors.
If no data is added, some [`TensorStructure`]s behave like symbolic tensors: namely [`HistoryStructure`] and [`SymbolicTensor`]
There are two main types of data tensors, [`DenseTensor`] and [`SparseTensor`].
They each implement a different type of storage for data.
All types of tensors can be contracted together using the [`Contract`] trait.
This can be done manually, or using a [`TensorNetwork`] and specifying a contraction algorithm.
Several Enums are defined to be able to store heterogenous tensors.
Namely
- [`DataTensor`]
- [`NumTensor`]
- [`MixedTensor`]
*/
extern crate self as spenso;
/// All tooling for tensor structures, indices and representations
// pub use structure::*;
//
/// Tensor contraction