title: returning a "template class object" in a function
body: <p>I have a template class like this</p>
  
  <pre><code>//Matrix.h
  template &lt;class T = double&gt;
  class Matrix
  {
      //some constructors variables and ...
  };
  </code></pre>
  
  <p>defined in a file called <strong>Matrix.h</strong> now how can I return an object from this class in other file say <strong>assemble.h</strong> something like:</p>
  
  <pre><code>//assemble.h
  #include "Matrix.h"
  Matrix&lt;T&gt; assemble(Matrix&lt;T&gt; KG,int node)
  {
      //some other codes
  }
  </code></pre>