__init__.py 870 B

1234567891011121314151617181920212223
  1. """A module to manipulate symbolic objects with indices including tensors
  2. """
  3. from .indexed import IndexedBase, Idx, Indexed
  4. from .index_methods import get_contraction_structure, get_indices
  5. from .functions import shape
  6. from .array import (MutableDenseNDimArray, ImmutableDenseNDimArray,
  7. MutableSparseNDimArray, ImmutableSparseNDimArray, NDimArray, tensorproduct,
  8. tensorcontraction, tensordiagonal, derive_by_array, permutedims, Array,
  9. DenseNDimArray, SparseNDimArray,)
  10. __all__ = [
  11. 'IndexedBase', 'Idx', 'Indexed',
  12. 'get_contraction_structure', 'get_indices',
  13. 'shape',
  14. 'MutableDenseNDimArray', 'ImmutableDenseNDimArray',
  15. 'MutableSparseNDimArray', 'ImmutableSparseNDimArray', 'NDimArray',
  16. 'tensorproduct', 'tensorcontraction', 'tensordiagonal', 'derive_by_array', 'permutedims',
  17. 'Array', 'DenseNDimArray', 'SparseNDimArray',
  18. ]