title: Is there a way to invert a complex matrix in dlib?
body: <p>Is there a way to invert a complex matrix <code>dlib::matrix&lt;std::complex&lt;float&gt; &gt;</code> in dlib? <code>dlib::inv()</code> does not seem to accept complex input. Or am I doing something wrong?</p>
  <p>Example:</p>
  <pre><code>dlib::matrix&lt;std::complex&lt;float&gt; &gt; M(dlib::identity_matrix&lt;std::complex&lt;float&gt; &gt;(2));
  dlib::matrix&lt;std::complex&lt;float&gt; &gt; Minv = dlib::inv(M);
  </code></pre>
  <p>The first line compiles, the second results in a compilation error:</p>
  <pre><code>.../dlib/matrix/matrix_lu.h:41:9: error: static assertion failed: Failed assertion
      COMPILE_TIME_ASSERT((is_same_type&lt;float, type&gt;::value ||
  
  </code></pre>