numpoly.zeros#

numpoly.zeros(shape: int | ~typing.Sequence[int], dtype: DTypeLike = <class 'float'>, order: ~typing.Literal['C'] | ~typing.Literal['F'] | None = 'C') ndpoly[source]#

Return a new array of given shape and type, filled with zeros.

Args:
shape:

Shape of the new array, e.g., (2, 3) or 2.

dtype:

The desired data-type for the array, e.g., numpy.int8. Default is numpy.float64.

order:

Whether to store multi-dimensional data in row-major (C-style) or column-major (Fortran-style) order in memory.

Return:

Array of zeros with the given shape, dtype, and order.

Example:
>>> numpoly.zeros(5)
polynomial([0.0, 0.0, 0.0, 0.0, 0.0])