primaryKLModeNumberFromKLModeNumber
takes any valid WV mode number and returns the primary mode number
Developer documentation: this item describes internal implementation details.
Declaration
[kMode,lMode] = primaryKLModeNumberFromKLModeNumber(kMode,lMode)
Parameters
kModeintegerlModeinteger
Returns
kModeintegerlModeinteger
Discussion
The function first confirms that the mode numbers are valid, and then converts any conjugate mode numbers to primary mode numbers.
The result is affected by the chosen conjugateDimension.