dimension -> degree in docstring, too? (Else this is convoluted, isn't it?)