title: xtensor : How to write an vector to an array
body: <p>What is the equivalent in <a href="https://github.com/xtensor-stack/xtensor" rel="nofollow noreferrer">xtensor</a> or the most optimized way to write a vector to an array.</p>
  <p>Thanks</p>
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  
  array = np.zeros((4, 4))
  
  array[0] = np.array([1, 2, 3, 4]) # this
  
  </code></pre>