# Lmn2lin.m

Converts L,M,N Wigner function specification to linear indexing speci- fication. 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:

                         I=lmn2lin(L,M,N)


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

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


Arrays of any dimension are accepted as arguments.