title: Numpy, multiply array with scalar
body: <p>Is it possible to use ufuncs <a href="https://docs.scipy.org/doc/numpy/reference/ufuncs.html" rel="noreferrer">https://docs.scipy.org/doc/numpy/reference/ufuncs.html</a><br>
  In order to map function to array (1D and / or 2D) and scalar<br>
  If not what would be my way to achieve this?<br>
  For example:  </p>
  
  <pre><code>a_1 = np.array([1.0, 2.0, 3.0])
  a_2 = np.array([[1., 2.], [3., 4.]])
  b = 2.0  
  </code></pre>
  
  <p>Expected result:  </p>
  
  <pre><code>a_1 * b = array([2.0, 4.0, 6.0]);  
  a_2 * b = array([[2., 4.], [6., 8.]])
  </code></pre>
  
  <p>I`m using python 2.7 if it is relevant to an issue.</p>