Mentions légales du service

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

Update demo scripts to conform to last changes in API.

- rcg variable name can't be use because of Faust.rcg().
- mexHierarchical_fact() is now mexHierarchical_factReal() for real matrix facto.
- mexHierarchical_fact*() functions do the lambda mul. internally.
parent 2d229740
Branches
Tags 2.3rc6
No related merge requests found
Pipeline #833854 skipped
...@@ -126,7 +126,7 @@ set(gca,'xtick',[],'ytick',[]) ...@@ -126,7 +126,7 @@ set(gca,'xtick',[],'ytick',[])
%get the factor of the Faust %get the factor of the Faust
facts=cell(1,M); facts=cell(1,M);
for i=1:M for i=1:M
facts{i}=get_fact(hadamard_faust,i); facts{i}=get_factor(hadamard_faust,i);
end end
for kk = 1:params_hadamard.nfacts for kk = 1:params_hadamard.nfacts
......
...@@ -49,11 +49,11 @@ A = rand(dim1,dim2); ...@@ -49,11 +49,11 @@ A = rand(dim1,dim2);
% Rational complexity Gain (theoretical speed-up) of the Faust % Rational complexity Gain (theoretical speed-up) of the Faust
rcg = 100; rcg_ = 100;
% number of factor of the Faust % number of factor of the Faust
nb_factor = 2; nb_factor = 2;
%% generate parameters of the factorisation %% generate parameters of the factorisation
params = generate_params(dim1,dim2,nb_factor,rcg); params = generate_params(dim1,dim2,nb_factor,rcg_);
%% factorisation (create Faust from matrix A) %% factorisation (create Faust from matrix A)
faust_A = faust_decompose(A,params); faust_A = faust_decompose(A,params);
......
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
function Faust_M = faust_decompose(M,params) function Faust_M = faust_decompose(M,params)
import matfaust.Faust import matfaust.Faust
[lambda,fact]=mexHierarchical_fact(M,params); [lambda,fact]=mexHierarchical_factReal(M,params);
Faust_M=Faust(fact,lambda); Faust_M=Faust(fact,true);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment