
    bi                     "    d dl mZ d dlmZ d Zy)    )combinations_with_replacement)combc                     t        || z   |       }t        |      D cg c]  }dg| z  
 }}d}t        |dz         D ]8  }t        t        |       |      D ]  }|D ]  }||   |xx   dz  cc<    |dz  }  : |S c c}w )a\  Return the powers for each monomial in a polynomial.

    Parameters
    ----------
    ndim : int
        Number of variables in the polynomial.
    degree : int
        Degree of the polynomial.

    Returns
    -------
    (nmonos, ndim) int ndarray
        Array where each row contains the powers for each variable in a
        monomial.

    r      )r   ranger   )	ndimdegreenmonos_outcountdegmonovars	            ^/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/scipy/interpolate/_rbfinterp_common.py_monomial_powers_implr      s    " &4-&F"6]
+A3t8
+C
+EVaZ  1%+sC 	D  %E
31$%QJE	 J ,s   A9N)	itertoolsr   mathr   r        r   <module>r      s    3 r   