Personal website Rudolf Adamkovič

Home / NumPy / Pre-filling: np.<empty|zeros|ones|full>[_like]


Example: np.full infers DTYPE from VALUE

import numpy as np

a = np.full(3, 10)

a.dtype

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.