e3x.config.Config
- class e3x.config.Config[source]
Static class for storing global configuration options for e3x.
- cartesian_order
Whether operations assume irreps are stored in Cartesian order or not by default.
- use_fused_tensor
Whether modules that internally need tensor products use
FusedTensor
orTensor
for computing the tensor product by default.
- normalization
Which normalization is assumed for the spherical harmonics by default.
- spherical_harmonics_cache
Path to disk cache with coefficients for computing spherical harmonics.
- clebsch_gordan_cache
Path to disk cache with Clebsch-Gordan coefficients.
- wigner_d_cache
Path to disk cache with coefficients for converting rotation matrices to Wigner-D matrices.
- tensor_conversion_cache
Path to disk cache with tensor conversion coefficients.
- static set_normalization(normalization='racah')[source]
Sets the value of Config.normalization.
- Parameters:
normalization ({
'4pi'
,'orthonormal'
,'racah'
,'schmidt'
}, default:'racah'
) – New value for Config.normalization.- Raises:
ValueError – If
normalization
has an invalid value.- Return type:
- static set_spherical_harmonics_cache(path=None)[source]
Sets the value of Config.spherical_harmonics_cache.
- static set_tensor_conversion_cache(path=None)[source]
Sets the value of Config.tensor_conversion_cache.