Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViennaCL: fix linalg::element_product() parameters constness #4025

Merged
merged 1 commit into from
Dec 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/shogun/mathematics/linalg/LinalgBackendViennaCL.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace shogun

/** Implementation of @see LinalgBackendBase::element_prod */
#define BACKEND_GENERIC_IN_PLACE_ELEMENT_PROD(Type, Container) \
virtual void element_prod(Container<Type>& a, Container<Type>& b,\
virtual void element_prod(const Container<Type>& a, const Container<Type>& b,\
Container<Type>& result) const \
{ \
element_prod_impl(a, b, result); \
Expand Down Expand Up @@ -364,7 +364,7 @@ namespace shogun
/** ViennaCL matrix in-place elementwise product method */
template <typename T>
void element_prod_impl(
SGMatrix<T>& a, SGMatrix<T>& b, SGMatrix<T>& result) const
const SGMatrix<T>& a, const SGMatrix<T>& b, SGMatrix<T>& result) const
{
GPUMemoryViennaCL<T>* a_gpu = cast_to_viennacl(a);
GPUMemoryViennaCL<T>* b_gpu = cast_to_viennacl(b);
Expand Down