Mentions légales du service

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

Update matfaust.quickstart.factorize_matrix demo to enhance the Faust speedup.

Minor change in runtimecmp.
parent ce4a867b
No related branches found
No related tags found
No related merge requests found
......@@ -202,9 +202,9 @@ classdef quickstart
%============================================================
function factorize_matrix()
% number of row of the matrix
dim1 = 100;
dim1 = 500;
% number of column of the matrix
dim2 = 200;
dim2 = 1000;
% matrix to factorize
A = rand(dim1,dim2);
......@@ -219,8 +219,7 @@ classdef quickstart
%% factorization (create Faust from matrix A)
faust_A = faust_decompose(A,params);
faust_A = optimize_memory(faust_A);
%% speed-up multiplication
y=zeros(dim2,1);
......
......@@ -186,7 +186,7 @@ classdef runtimecmp
t_dense(1,:,:)=[];
runPath=which(mfilename);
pathname = 'output'
pathname = 'output';
if(~ exist(pathname))
mkdir(pathname)
end
......@@ -206,7 +206,7 @@ classdef runtimecmp
%=========================================================================
function Fig_runtime_comparison()
runPath=which(mfilename);
pathname = 'output'
pathname = 'output';
matfile = fullfile(pathname, 'runtime_comparison.mat');
if (not(exist(matfile)))
error('run runtime_comparison.m before Fig_runtime_comparison.m');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment