summaryrefslogtreecommitdiff
path: root/src/CuBaseLib/cumatrix.h
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-04-14 10:25:54 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-04-14 10:25:54 +0800
commit094828d59df3931dfced69c59cbb538d6b0f1d99 (patch)
tree753c6138eb05ef16e9a613e8b95dbb169e17fca3 /src/CuBaseLib/cumatrix.h
parentcccccbf6cca94a3eaf813b4468453160e91c332b (diff)
downloadtnet-094828d59df3931dfced69c59cbb538d6b0f1d99.tar.gz
tnet-094828d59df3931dfced69c59cbb538d6b0f1d99.tar.bz2
tnet-094828d59df3931dfced69c59cbb538d6b0f1d99.zip
make const compatible
Diffstat (limited to 'src/CuBaseLib/cumatrix.h')
-rw-r--r--src/CuBaseLib/cumatrix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CuBaseLib/cumatrix.h b/src/CuBaseLib/cumatrix.h
index 887b92d..dd76bb2 100644
--- a/src/CuBaseLib/cumatrix.h
+++ b/src/CuBaseLib/cumatrix.h
@@ -76,9 +76,9 @@ namespace TNet {
/// Allocate the memory
ThisType& Init(size_t rows, size_t cols);
/// Copy the ptr of rSrc starting at x with span of cols
- ThisType& Init(CuMatrix<_ElemT>& rSrc, size_t x, size_t cols);
+ ThisType& Init(const CuMatrix<_ElemT>& rSrc, size_t x, size_t cols);
/// Copy the settings of rSrc
- ThisType& Init(CuMatrix<_ElemT>& rSrc);
+ ThisType& Init(const CuMatrix<_ElemT>& rSrc);
/// Deallocate the memory
void Destroy();