Mentions légales du service

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

Return to caller the parameters used in FaustFactory.fact_hierarchical().

It's useful especially when simplified parameters are used and the caller want to have the details/full parameters used behind the scene.
parent 5472bc28
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ classdef FaustFactory
[lambda, core_obj] = mexHierarchical_factCplx(M, mex_params);
end
F = Faust(core_obj, isreal(M));
varargout = {F, lambda};
varargout = {F, lambda, p};
end
%==========================================================================================
......
......@@ -1382,7 +1382,7 @@ class FaustFactory:
return Faust(core_obj=FaustCorePy.FaustFact.fact_palm4msa(M, p))
@staticmethod
def fact_hierarchical(M, p, ret_lambda=False):
def fact_hierarchical(M, p, ret_lambda=False, ret_params=False):
"""
Factorizes the matrix M with Hierarchical Factorization using the parameters set in p.
......@@ -1437,10 +1437,12 @@ class FaustFactory:
"with the first factor constraint defined in p.")
core_obj,_lambda = FaustCorePy.FaustFact.fact_hierarchical(M, p)
F = Faust(core_obj=core_obj)
ret_list = [ F ]
if(ret_lambda):
return F, _lambda
else:
return F
ret_list += [ _lambda ]
if(ret_params):
ret_list += [ p ]
return ret_list
@staticmethod
def wht(n):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment