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 NaNs in an easy way.

9 Answers
9

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *