Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
faust group
faust
Commits
b4e89c24
Commit
b4e89c24
authored
8 years ago
by
Nicolas Bellot
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wrapper matlab
parent
4503967d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc/demo/Hadamard_factorization/norm_hadamard.m
+6
-3
6 additions, 3 deletions
misc/demo/Hadamard_factorization/norm_hadamard.m
wrapper/matlab/tools/Faust.m
+1
-1
1 addition, 1 deletion
wrapper/matlab/tools/Faust.m
with
7 additions
and
4 deletions
misc/demo/Hadamard_factorization/norm_hadamard.m
+
6
−
3
View file @
b4e89c24
...
@@ -72,7 +72,8 @@ dense_times=zeros(nb_mult,nb_dim);
...
@@ -72,7 +72,8 @@ dense_times=zeros(nb_mult,nb_dim);
faust_times
=
zeros
(
nb_mult
,
nb_dim
);
faust_times
=
zeros
(
nb_mult
,
nb_dim
);
norm_dense
=
zeros
(
1
,
nb_dim
);
norm_dense
=
zeros
(
1
,
nb_dim
);
norm_faust
=
zeros
(
1
,
nb_dim
);
norm_faust
=
zeros
(
1
,
nb_dim
);
RCGs
=
ns
.
/(
Ms
*
2
);
%RCGs=ns./(Ms*2);
RCGs
=
zeros
(
1
,
nb_dim
);
h
=
waitbar
(
0
,
'2-norm hadamard : multiplication time comparison ...'
);
h
=
waitbar
(
0
,
'2-norm hadamard : multiplication time comparison ...'
);
for
i
=
1
:
nb_mult
for
i
=
1
:
nb_mult
...
@@ -81,7 +82,7 @@ for i=1:nb_mult
...
@@ -81,7 +82,7 @@ for i=1:nb_mult
n
=
ns
(
k
);
n
=
ns
(
k
);
hadamard_dense
=
Hadamard_matrices
{
k
};
hadamard_dense
=
Hadamard_matrices
{
k
};
hadamard_faust
=
Faust
(
Hadamard_facts
{
k
});
hadamard_faust
=
Faust
(
Hadamard_facts
{
k
});
RCGs
(
k
)
=
RCG
(
hadamard_faust
);
%% 2-norm of the hadamard matrix
%% 2-norm of the hadamard matrix
...
@@ -143,6 +144,7 @@ semilogy(Ms,speed_up,'linewidth',plot_tickness);
...
@@ -143,6 +144,7 @@ semilogy(Ms,speed_up,'linewidth',plot_tickness);
hold
on
hold
on
semilogy
(
Ms
,
ones
(
1
,
nb_dim
),
'k'
,
'linewidth'
,
plot_tickness
);
semilogy
(
Ms
,
ones
(
1
,
nb_dim
),
'k'
,
'linewidth'
,
plot_tickness
);
semilogy
(
Ms
,
RCGs
,
'g'
,
'linewidth'
,
plot_tickness
);
semilogy
(
Ms
,
RCGs
,
'g'
,
'linewidth'
,
plot_tickness
);
grid
on
grid
on
axis
([
Ms
(
1
)
Ms
(
end
)
min
([
speed_up
,
1
,
RCGs
])
max
([
speed_up
,
1
,
RCGs
])]);
axis
([
Ms
(
1
)
Ms
(
end
)
min
([
speed_up
,
1
,
RCGs
])
max
([
speed_up
,
1
,
RCGs
])]);
title
(
'speed-up norm(A)'
);
title
(
'speed-up norm(A)'
);
...
@@ -150,7 +152,7 @@ xlabel('log(dim)');
...
@@ -150,7 +152,7 @@ xlabel('log(dim)');
ylabel
(
'speedup'
);
ylabel
(
'speedup'
);
legend
(
'faust'
,
'neutral'
,
'theoretical'
,
'Location'
,
legend_location
);
legend
(
'faust'
,
'neutral'
,
'theoretical'
,
'Location'
,
legend_location
);
set
(
gca
,
'XTick'
,
Ms
);
set
(
gca
,
'XTick'
,
Ms
);
%
%
%
subplot
(
1
,
3
,
3
);
subplot
(
1
,
3
,
3
);
id
=
find
(
err_norm_faust
~=
0
);
% semilogy is not compatible with 0
id
=
find
(
err_norm_faust
~=
0
);
% semilogy is not compatible with 0
...
@@ -192,3 +194,4 @@ print(figure_name, format_fig);
...
@@ -192,3 +194,4 @@ print(figure_name, format_fig);
This diff is collapsed.
Click to expand it.
wrapper/matlab/tools/Faust.m
+
1
−
1
View file @
b4e89c24
...
@@ -319,7 +319,7 @@ classdef Faust
...
@@ -319,7 +319,7 @@ classdef Faust
%% nnz : Relative Complexity Gain (inverse of the density)
%% nnz : Relative Complexity Gain (inverse of the density)
function speed_up=RCG(this)
function speed_up=RCG(this)
dens=density(this)
dens=density(this)
;
if (dens > 0)
if (dens > 0)
speed_up=1/dens;
speed_up=1/dens;
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment