Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0b23bbd5 authored by hhakim's avatar hhakim
Browse files

Undo one condition added by ce4d08ad in Faust::prox_sp() because...

Undo one condition added by ce4d08ad in Faust::prox_sp() because MatDense::getNonZeros() is not optimized with caching.
parent f787849c
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ void Faust::prox_sp(Faust::MatDense<FPP,Cpu> & M,faust_unsigned_int k)
M.setZeros();
else
{
if (k<nb_elt_mat && k < M.getNonZeros())
if (k<nb_elt_mat /* && k < M.getNonZeros()*/)
{
const std::vector<FPP> vec(M.getData(), M.getData()+nb_elt_mat);
std::vector<int> index;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment