numpoly.align_dtype

numpoly.align_dtype(*polys: numpoly.typing.PolyLike)Tuple[numpoly.baseclass.ndpoly, ...][source]

Align polynomial by shape.

Args:
polys (numpoly.ndpoly):

Polynomial to make adjustment to.

Returns:
(Tuple[numpoly.ndpoly, …]):

Same as polys, but internal adjustments made to make them compatible for further operations.

Examples:
>>> q0 = numpoly.variable()
>>> q0.dtype.name
'int64'
>>> poly, _ = numpoly.align_dtype(q0, 4.5)
>>> poly.dtype.name
'float64'