title: Apply a vectorized function to array numpy
body: <p>I want to apply a function to an array, but when I call it, it generates an error since the function only enters the first component of the array</p>
  
  <pre><code>import numpy as np
  
  def fObjetivo(x):
      print(x)
      return x[0] + x[1] + x[2]
  
  fObjetivo = np.vectorize(fObjetivo)
  
  a = np.array([1,2,3])
  
  print(fObjetivo(a))
  </code></pre>
  
  <p>where are the error?</p>