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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
b2914171
Commit
b2914171
authored
8 years ago
by
Nicolas Bellot
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wrapper matlab : doc latex + test
parent
f92abf59
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
gen_doc/LaTeX/chapFirstUse.tex
+5
-1
5 additions, 1 deletion
gen_doc/LaTeX/chapFirstUse.tex
misc/test/src/test_matlab_faust.m
+9
-0
9 additions, 0 deletions
misc/test/src/test_matlab_faust.m
with
14 additions
and
1 deletion
gen_doc/LaTeX/chapFirstUse.tex
+
5
−
1
View file @
b2914171
...
...
@@ -26,12 +26,16 @@ As much as possible, a \textbf{matlab{\_}faust} object is handled as a normal ma
>> y2 = A'*x2;
>>
>>
>>
% get the 2-norm (spectral norm) of the faust A
>> norm
_
A = norm(A);
% equivalent to norm(A,2);
>>
>>
% get the coefficient i,j and slicing for reading purpose
>> coeff=A(i,j);
>> col
_
2=A(:,2);
>> submatrix
_
A=A(3:5,2:3);
>> submatrix
_
A=A(2:end,3:end-1);
>>
% Warning : A(i,j)=3 will not modify A, writing is not allowed
>>
% Warning : A(end,end) give the wrong result
\end{lstlisting}
...
...
This diff is collapsed.
Click to expand it.
misc/test/src/test_matlab_faust.m
+
9
−
0
View file @
b2914171
...
...
@@ -426,10 +426,19 @@ disp('Ok');
disp
(
'TEST 2-norm : '
);
real_norm
=
norm
(
F_dense
);
norm_faust
=
norm
(
F
);
norm_faust2
=
norm
(
F
,
2
);
norm_faust_trans
=
norm
(
F_trans
);
if
(
abs
(
real_norm
-
norm_faust
)
>
threshold
)
error
([
'norm : invalid result, expected '
num2str
(
real_norm
)
' get norm_faust'
num2str
(
norm_faust
)]);
end
if
(
norm_faust
~=
norm_faust2
)
error
([
'norm : norm(F) must be equal to norm(F,2)'
]);
end
if
(
norm_faust_trans
~=
norm_faust
)
error
([
'norm : norm(F) must be equal to norm(F_trans)'
]);
end
disp
(
'Ok'
);
...
...
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