Difference between revisions of "Lin2lmn.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(No difference)

Revision as of 16:54, 8 December 2015

Converts linear indexing specification of a Wigner function to L,M,N indexing. In the linear indexing convention, the Wigner functions are listed in the order of increasing L rank. Within each L rank, the func- tions are listed in the order of decreasing left index, and, for each left index, in the order of decreasing right index. Syntax:

                       [L,M,N]=lin2lmn(I)

Wigner functions are enumerated using one base indexing, that is:

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

Arrays of any dimension are accepted as arguments.