title: Multiplication of integer-valued matrices in MATLAB
body: <p>What is the best way to multiply integer-valued matrices in MATLAB?</p>
  
  <p>I was surprised to learn that the following isn't accepted behavior:</p>
  
  <pre><code>&gt;&gt; x = int64([1, 2])
  &gt;&gt; x * x'
  Error using  * 
  MTIMES is not fully supported for integer classes. At least one input must be scalar.
  To compute elementwise TIMES, use TIMES (.*) instead.
  </code></pre>
  
  <p>I can always convert to double and back again.  Is this the best solution?  I'm using R2013b.</p>