[shark] 57/79: added missing special case for gemv when the matrix orientation is unknown (which very rarely happens)
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Nov 26 15:41:02 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 58ee65bd7302fc4810ba0464fd646b6365c945f8
Author: Oswin <oswin.krause at di.ku.dk>
Date: Mon Oct 26 08:15:10 2015 +0100
added missing special case for gemv when the matrix orientation is unknown (which very rarely happens)
---
include/shark/LinAlg/BLAS/kernels/default/gemv.hpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/shark/LinAlg/BLAS/kernels/default/gemv.hpp b/include/shark/LinAlg/BLAS/kernels/default/gemv.hpp
index b962324..8716fb8 100644
--- a/include/shark/LinAlg/BLAS/kernels/default/gemv.hpp
+++ b/include/shark/LinAlg/BLAS/kernels/default/gemv.hpp
@@ -72,6 +72,18 @@ void gemv_impl(
}
}
+//unknown orientation is dispatched to row_major
+template<class ResultV, class M, class V>
+void gemv_impl(
+ matrix_expression<M> const& A,
+ vector_expression<V> const& x,
+ vector_expression<ResultV>& result,
+ typename ResultV::value_type alpha,
+ unknown_orientation
+) {
+ gemv_impl(A,x,result,alpha,row_major());
+}
+
// result += alpha * A * x
template<class ResultV, class M, class V>
void gemv(
--
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