def _deg_ord_idx(deg, order):
 return ((((deg * deg) + deg) + order) - 1)

def _deg_ord_idx ( deg , order ) : return ( ( ( ( deg * deg ) + deg ) + order ) - 1 )
get the index into s_in or s_out given a degree and order .