Construction of MultiIndex from degree for Constant Polynomials
There is a problem if one wants to construct a MultiIndex
instance for constant polynomials:
>>> import numpy as np
>>> import minterpy as mp
>>> mp.MultiIndex.from_degree(2,0)
...
ValueError: zero-size array to reduction operation maximum which has no identity
However, it works fine if lp_degree = np.inf
. Is this a bug, or shall we catch this input and raise a more comprehensive error?