summaryrefslogtreecommitdiff
path: root/src/CuBaseLib/cumatrix.h
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-04-14 11:18:58 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-04-14 11:18:58 +0800
commitf98b9b720f0f5c511f5cb735f0456f0d5fe3c791 (patch)
treecb9398f27458348c9f1b43fb1a734ded16a5507a /src/CuBaseLib/cumatrix.h
parentcccccbf6cca94a3eaf813b4468453160e91c332b (diff)
downloadtnet-f98b9b720f0f5c511f5cb735f0456f0d5fe3c791.tar.gz
tnet-f98b9b720f0f5c511f5cb735f0456f0d5fe3c791.tar.bz2
tnet-f98b9b720f0f5c511f5cb735f0456f0d5fe3c791.zip
Supporting const rev.
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();