1、
/* A:m*n
* if CblasTrans
* B:m*1
* C:n*1
* C=alpha*A'*B+beta*C
* else
* B:n*1
* C:m*1
* C=alpha*A*B+beta*C
* end
*/
caffe_cpu_gemv<Dtype>(CblasTrans/CblasNoTrans,
m, n, alpha, A, B, beta, C);
2、
/* C:m*n
* op(A):m*k
* op(B):k*n
* C=alpha*op( A )*op( B ) + beta*C
* function X=op(X)
* if CblasTrans
* X=X'
* else
* X=X
* end
*/
caffe_cpu_gemm<Dtype>(CblasTrans/CblasNoTrans,
CblasTrans/CblasNoTrans,
m, n, k, alpha, A, B, beta, C);