# Dcm2wigner.m

From Spinach Documentation Wiki

Converts a directional cosine matrix into second-rank Wigner function matrix. Rows and columns of the resulting Wigner matrix are sorted by descending ranks, that is:

[D( 2,2) ... D( 2,-2) ... ... ... D(-2,2) ... D(-2,-2)]

The resulting Wigner matrix is to be used as v=W*v, where v is a column vector of irreducible spherical tensor coefficients, listed vertically in the following order: T(2,2), T(2,1), T(2,0), T(2,-1), T(2,-2).