[shark] 72/79: fixed typo
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Nov 26 15:41:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository shark.
commit 87653fe6aa0820a18d1d7a7cd2a706c25f432a28
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date: Thu Oct 29 14:56:32 2015 +0100
fixed typo
---
include/shark/LinAlg/BLAS/matrix_expression.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/shark/LinAlg/BLAS/matrix_expression.hpp b/include/shark/LinAlg/BLAS/matrix_expression.hpp
index a725052..77b23ac 100644
--- a/include/shark/LinAlg/BLAS/matrix_expression.hpp
+++ b/include/shark/LinAlg/BLAS/matrix_expression.hpp
@@ -730,7 +730,7 @@ typename boost::enable_if<
matrix_expression<E> const& e,
T t
){
- return e + scalar_matrix<T>(e().size(),t);
+ return e + scalar_matrix<T>(e().size1(),e().size2(),t);
}
///\brief Adds a matrix plus a scalar which is interpreted as a constant matrix
@@ -742,7 +742,7 @@ typename boost::enable_if<
T t,
matrix_expression<E> const& e
){
- return e + scalar_matrix<T>(e().size(),t);
+ return e + scalar_matrix<T>(e().size1(),e().size2(),t);
}
///\brief Subtracts a scalar which is interpreted as a constant matrix from a matrix.
@@ -754,7 +754,7 @@ typename boost::enable_if<
matrix_expression<E> const& e,
T t
){
- return e - scalar_matrix<T>(e().size(),t);
+ return e - scalar_matrix<T>(e().size1(),e().size2(),t);
}
///\brief Subtracts a matrix from a scalar which is interpreted as a constant matrix
@@ -766,7 +766,7 @@ typename boost::enable_if<
T t,
matrix_expression<E> const& e
){
- return scalar_matrix<T>(e().size(),t) - e;
+ return scalar_matrix<T>(e().size1(),e().size2(),t) - e;
}
template<class E1, class E2, class F>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git
More information about the debian-science-commits
mailing list