spintensor 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
spintensor/__init__.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""
|
|
2
|
+
SpinTensor: Build linear constraints for tensors under transformations.
|
|
3
|
+
|
|
4
|
+
This package constructs linear constraints for order-r tensors in dimension n
|
|
5
|
+
under spin-group operations (Rs, Rr) using Kronecker products.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
import spintensor
|
|
9
|
+
from spintensor import solve_tensor_constraints
|
|
10
|
+
from spintensor.core import solve_bcd
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from spintensor.core import (
|
|
14
|
+
tensor_indices,
|
|
15
|
+
flat_index,
|
|
16
|
+
unflat_index,
|
|
17
|
+
kronecker_power,
|
|
18
|
+
kronecker_product_axes,
|
|
19
|
+
compute_det_sign,
|
|
20
|
+
parse_transformation,
|
|
21
|
+
build_transformation_matrix_axes,
|
|
22
|
+
build_transformation_matrix,
|
|
23
|
+
build_permutation_matrix,
|
|
24
|
+
build_constraint_matrix,
|
|
25
|
+
compute_nullspace_svd,
|
|
26
|
+
index_to_symbol,
|
|
27
|
+
format_latex_relations,
|
|
28
|
+
format_tensor_components,
|
|
29
|
+
build_bcd_extra_constraints,
|
|
30
|
+
solve_tensor_constraints,
|
|
31
|
+
solve_bcd,
|
|
32
|
+
solve_qmd,
|
|
33
|
+
solve_imd,
|
|
34
|
+
solve_ahe,
|
|
35
|
+
example_rank2_3d,
|
|
36
|
+
example_rank3_vector,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
__version__ = "0.1.0"
|
|
40
|
+
|
|
41
|
+
__all__ = [
|
|
42
|
+
"tensor_indices",
|
|
43
|
+
"flat_index",
|
|
44
|
+
"unflat_index",
|
|
45
|
+
"kronecker_power",
|
|
46
|
+
"kronecker_product_axes",
|
|
47
|
+
"compute_det_sign",
|
|
48
|
+
"parse_transformation",
|
|
49
|
+
"build_transformation_matrix_axes",
|
|
50
|
+
"build_transformation_matrix",
|
|
51
|
+
"build_permutation_matrix",
|
|
52
|
+
"build_constraint_matrix",
|
|
53
|
+
"compute_nullspace_svd",
|
|
54
|
+
"index_to_symbol",
|
|
55
|
+
"format_latex_relations",
|
|
56
|
+
"format_tensor_components",
|
|
57
|
+
"build_bcd_extra_constraints",
|
|
58
|
+
"solve_tensor_constraints",
|
|
59
|
+
"solve_bcd",
|
|
60
|
+
"solve_qmd",
|
|
61
|
+
"solve_imd",
|
|
62
|
+
"solve_ahe",
|
|
63
|
+
"example_rank2_3d",
|
|
64
|
+
"example_rank3_vector",
|
|
65
|
+
]
|