aboutsummaryrefslogtreecommitdiff
path: root/matrix/generic/cumatrix.c
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-06-02 13:59:41 +0800
committercloudygoose <[email protected]>2015-06-02 13:59:41 +0800
commit6e58756ea75fb912c27436b5b3f556fb03e5e647 (patch)
treecfcba1b5ebbf79b303a399a687c6ea8e2fea8b23 /matrix/generic/cumatrix.c
parent2bb2076fe12deb3bf6a38bd2e192dca06c7736e0 (diff)
doc change about matrix
Diffstat (limited to 'matrix/generic/cumatrix.c')
-rw-r--r--matrix/generic/cumatrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix/generic/cumatrix.c b/matrix/generic/cumatrix.c
index 58f3679..0df1bd7 100644
--- a/matrix/generic/cumatrix.c
+++ b/matrix/generic/cumatrix.c
@@ -74,7 +74,7 @@ static int nerv_matrix_(mul)(lua_State *L) {
if (an != bm)
nerv_error(L, "Wrong dimension of multipliers");
/* MATRIX_ELEM alpha = 1.0f, beta = 0.0f; */
- CUBLAS_SAFE_CALL(
+ CUBLAS_SAFE_CALL( //Because matrix in Nerv is row-major, here b comes first
NERV_CUBLAS_(gemm)(cublas_handle, tb, ta,
bn, am, bm,
&alpha,