Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 612a2945 authored by hhakim's avatar hhakim
Browse files

Fix memory leak in C++ svdtj and update its matfaust doc.

parent 84950f7d
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,8 @@ void Faust::svdtj_core_cplx(MatGeneric<FPP,DEVICE>* M, MatDense<FPP,DEVICE> &dM,
// thW2->push_back(P);
delete algoW1;
delete algoW2;
delete PS;
delete P;
*U = thW1;
*V = thW2;
*S_ = ordered_S;
......
......@@ -122,6 +122,7 @@ namespace Faust
virtual void multiply(Faust::MatSparse<FPP, DEVICE>& M, char opThis) const=0;
//! \brief Replace this by (this) * A
virtual void multiplyRight(Faust::MatSparse<FPP, DEVICE> const& M) =0;
......
......@@ -23,8 +23,8 @@
%> % in a matlab terminal
%> >> import matfaust.fact.svdtj
%> >> M = rand(128,128)
%>%> >> [U,S,V] = svdtj(M,1024,'nGivens_per_fac', 64)
%>%> @endcode
%> >> [U,S,V] = svdtj(M,1024,'nGivens_per_fac', 64)
%> @endcode
%>If we call svdtj on the matrix M, it makes two internal calls to eigtj.
%>
%> In Matlab it would be:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment