sarkit.cphd.PolyType.set_elem

PolyType.set_elem(elem, val)

Set elem node using the polynomial coefficients from val.

Parameters:
elemlxml.etree.Element

XML element to set

valarray_like

nvar-dimensional array of coefficients ordered so that the coefficient of the term of multi-exponent n_1, n_2, …, n_nvar is contained in val[n_1, n_2, ..., n_nvar].