mkl cblas_dgemm wrong parameter
<p>I tried to use mkl <code>cblas_dgemm</code> to compute matrix matrix multiplication.</p>

<p>As I know, <code>lda</code>, <code>ldb</code>, <code>ldc</code> should be the number of columns for simple row major matrix. I tried to do following:</p>

<pre><code>double a[3 * 2] = { 1,2,3,4,5,6 };      // 3 x 2 matrix
double b[2 * 4] = { 1,2,3,4,5,6,7,8 };  // 2 x 4 matrix
double c[3 * 4] = { 0, };               // 3 x 4 matrix

// c &lt;- 1.0 * (a*b) + 0.0 * c
cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, 3, 2, 4, 1.0, a, 2, b, 4, 0.0, c, 4);
//            rowmajor       no trans      no trans    m  k  n  alph A lda B ldb beta C ldc
</code></pre>

<p>but it gave me an error message and <code>c</code> is not updated.</p>

<pre><code>Intel MKL ERROR: Parameter 9 was incorrect on entry to cblas_dgemm.
</code></pre>

<p>Parameter 9 is <code>lda</code></p>

<p>what is wrong with my code?</p>