title: error: type ‘class Eigen::Tensor<double, 3>’ argument given to ‘delete’, expected pointer
body: <p>I am trying to delete a tensor created with Eigen::Tensor</p>
  
  <p>N1, N2 , N3 are vectors of int</p>
  
  <pre><code>N1 &lt;&lt; 1,2,3
  N2 &lt;&lt; 4,3,5
  N3 &lt;&lt; 9,7,8
  
  
   for(int i = 0; i &lt; 3; i++ )
  {
   Eigen::Tensor&lt;double, 3&gt; Hs(N1(i),N2(i),N3(i));
  
   Hs.setZero();
  
   delete Hs;
    }
  </code></pre>
  
  <p>How can I delete my tensor? I have to clear it and change its size</p>
  
  <p>Thank you in advance</p>