I have the following code:
r = numpy.zeros(shape = (width, height, 9))
It creates a width x height x 9
matrix filled with zeros. Instead, I’d like to know if there’s a function or way to initialize them instead to NaN
s in an easy way.
I have the following code:
r = numpy.zeros(shape = (width, height, 9))
It creates a width x height x 9
matrix filled with zeros. Instead, I’d like to know if there’s a function or way to initialize them instead to NaN
s in an easy way.