title: Create numpy matrix filled with NaNs
body: <p>I have the following code:</p>
  
  <pre><code>r = numpy.zeros(shape = (width, height, 9))
  </code></pre>
  
  <p>It creates a <code>width x height x 9</code> matrix filled with zeros. Instead, I'd like to know if there's a function or way to initialize them instead to <code>NaN</code>s in an easy way.</p>