Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6bdfdfec authored by hhakim's avatar hhakim
Browse files

Fix MatPerm/Butterfly::to_dense.

parent ac43be3a
Branches
Tags
No related merge requests found
......@@ -521,7 +521,7 @@ namespace Faust
MatDense<FPP, Cpu> MatButterfly<FPP, Cpu>::to_dense() const
{
MatDense<FPP, Cpu> dense(this->getNbCol(), this->getNbCol());
dense.setOnes();
dense.setEyes();
multiply(dense, 'N');
return dense;
}
......
......@@ -116,7 +116,7 @@ namespace Faust
void MatPerm<FPP, Cpu>::multiply(Vect<FPP,Cpu> & x, char opThis) const
{
Vect<FPP, Cpu> z(x.size());
const_cast<MatPerm<FPP, Cpu>*>(this)->multiply(x.getData(), z.getData(), x.size(), opThis != 'N'); //TODO: conjugate
const_cast<MatPerm<FPP, Cpu>*>(this)->multiply(x.getData(), z.getData(), x.size(), opThis != 'N', 'H' == opThis || 'C' == opThis); //TODO: conjugate
x = z;
}
......@@ -506,7 +506,7 @@ namespace Faust
MatDense<FPP, Cpu> MatPerm<FPP, Cpu>::to_dense() const
{
MatDense<FPP, Cpu> dense(this->getNbCol(), this->getNbCol());
dense.setOnes();
dense.setEyes();
multiply(dense, 'N');
return dense;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment