title: How to initialize double matrix with NaN element?
body: <p>in my code I have a matrix of double like this:</p>
  
  <pre><code>double * * matrix=new double * [10];
  for(int i=0;i&lt;10;i++) 
      matrix[i]=new double[10];
  </code></pre>
  
  <p>I want to have <em>NaN value</em> in every cell of this matrix when I initialize it, is it possible to do automatically or the only solution is: </p>
  
  <pre><code>for(int i=0;i&lt;10;i++)
      for(int j=0;j&lt;10;j++)
          matrix[i][j]=nan("");
  </code></pre>
  
  <p>Is it possible to infer that when the matrix will costruct, it doesn't use the default constructor of double that insert, for every matrix[i][j], 0.0 value but insert nan("")?</p>