Difference between revisions of "Lin2lm.m"

From Spinach Documentation Wiki
Jump to: navigation, search
 
(Update function See also links and function index membership)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Converts linear indexing state specification to L,M indexing. In
+
{{DISPLAYTITLE:lin2lm.m}} __NOTOC__
the linear indexing convention, the states are listed in the order
+
Converts linear indexing of spin states into L,M indexing. In the linear indexing convention, spin states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection. Zero base counting is used:  
of increasing L rank, and, within ranks, in the order of decreas-
+
           
ing M projection. Syntax: [L,M]=lin2lm(I)
+
                  I=0 -> (L=0,M=0)
 +
                  I=1 -> (L=1,M=1)
 +
                  I=2 -> (L=1,M=0), et cetera...
  
WARNING - zero base indexing, that is:
+
==Syntax==
           
+
 
                          I=0 -> (L=0,M=0)
+
    [L,M]=lin2lm(I)
                          I=1 -> (L=1,M=1)
+
 
                          I=2 -> (L=1,M=0), et cetera...
+
==Parameters==
 +
 
 +
    I  - linear indices of spin states, with
 +
          I=0 corresponding to L=0, M=0.
 +
 
 +
==Outputs==
 +
 
 +
    L  - ranks of the spin states
 +
 +
    M  - projections of the spin states
 +
 
 +
==Notes==
 +
See the [[Appendix_B:_spin_state_indexing|state indexing]] section for further information about how ''Spinach'' enumerates spherical tensor states.
 +
 
 +
==See also==
 +
[[lm2lin.m]], [[lin2lmn.m]], [[lmn2lin.m]], [[irr_sph_ten.m]], [[adelim.m]], [[coherence.m]], [[correlation.m]], [[dfpt.m]], [[homospoil.m]], [[human2opspec.m]], [[path_trace.m]], [[scomponents.m]], [[sinkhole.m]], [[sparse2csr.m]], [[sphten2zeeman.m]], [[stitch.m]], [[zte.m]], [[Kernel_utilities]]
  
Arrays of any dimension are accepted as arguments.
+
''Version 2.3, authors: [[Ilya Kuprov]]''

Latest revision as of 19:38, 6 June 2026

Converts linear indexing of spin states into L,M indexing. In the linear indexing convention, spin states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection. Zero base counting is used:

                 I=0 -> (L=0,M=0)
                 I=1 -> (L=1,M=1)
                 I=2 -> (L=1,M=0), et cetera...

Syntax

    [L,M]=lin2lm(I)

Parameters

    I   - linear indices of spin states, with
          I=0 corresponding to L=0, M=0.

Outputs

    L   - ranks of the spin states

    M   - projections of the spin states

Notes

See the state indexing section for further information about how Spinach enumerates spherical tensor states.

See also

lm2lin.m, lin2lmn.m, lmn2lin.m, irr_sph_ten.m, adelim.m, coherence.m, correlation.m, dfpt.m, homospoil.m, human2opspec.m, path_trace.m, scomponents.m, sinkhole.m, sparse2csr.m, sphten2zeeman.m, stitch.m, zte.m, Kernel_utilities

Version 2.3, authors: Ilya Kuprov