triqs_modest.misc.sigma_to_data_idx
- triqs_modest.misc.sigma_to_data_idx()
Dispatched C++ function(s).
[1] (spin_kind: str {"Polarized", "NonPolarized", "NonColinear"}, sigma: int) -> int
Map a spin index to a data index.
The mapping depends on the spin kind:
Polarized: \(\sigma \to \sigma\) (an object can have different values for different \(\sigma\)).
NonPolarized: \(\sigma \to 0\) (an object is the same for both \(\sigma\), so only one copy is stored).
NonCollinear: \(\sigma \to 0\) (\(\sigma\) is always 0).