title: Numpy matrix functions with Numba
body: <p>I am new to Python programming.
   I have the following Python 3.6 code:</p>
  
  <pre><code>import numpy as np
  from numba import jit
  @jit(nopython=True)
  def genarray(rows, cols):
      """return a new matrix"""
      return np.zeros([rows, cols], float)
  L1 = 5
  C1 = 5
  B = genarray(L1, C1)
  print(type(B))
  </code></pre>
  
  <p>When I compile I obtain the following error:</p>
  
  <pre><code>TypingError: &gt;Invalid usage of Function(&lt;built-in function zeros&gt;) with parameters (list(int64), Function(&lt;class 'float'&gt;))
  
   * parameterized
  </code></pre>
  
  <p>I tried with <code>np.float, np.float64</code> and I obtain errors. The code compiles OK without the <code>nopython=true</code> option. </p>
  
  <p>How solve the error with the matrices? Because with vector the code compiles OK
  with <code>nopython=true</code> option.</p>