Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4dafb3a1 authored by hhadjdji's avatar hhadjdji
Browse files

Fix cuMatDs::elt_wise_mul overflow in broacasting.

parent 379f19c4
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,7 @@ template<>
kernel_mult(data, M.data, numel());
#endif
}
else
throw dim_error;
else throw dim_error;
}
else
{
......@@ -67,12 +66,13 @@ template<>
for(int j=0;j<ncols;j++)
{
#if(IS_COMPLEX==1)
kernel_mult_cplx(data+j*nrows, M.data, numel());
kernel_mult_cplx(data+j*nrows, M.data, M.numel());
#else
kernel_mult(data+j*nrows, M.data, numel());
kernel_mult(data+j*nrows, M.data, M.numel());
#endif
}
}
else throw dim_error;
}
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment