title: Initialize boost array/multi_array
body: <p>I've defined <code>boost::(multi_)array</code>  with </p>
  
  <pre><code>typedef boost::multi_array&lt;unsigned int, 1&gt;  uint_1d_vec_t;
  typedef boost::multi_array&lt;unsigned int, 2&gt;  uint_2d_vec_t;
  
  uint_1d_vec_t    foo( boost::extents[ num_elements   ]          );
  uint_2d_vec_t    boo( boost::extents[ num_elements/2 ][ kappa ] );
  </code></pre>
  
  <p>were <code>num_elements/2</code> ist an integer and <code>kappa</code> is a double, but contains only integer numbers (for example 79).</p>
  
  <p>How do can I initialize <code>foo</code> and <code>boo</code> to <code>0</code>, when the number of elements in side them is known only at runtime?</p>