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
9e00233c
Commit
9e00233c
authored
8 years ago
by
Nicolas Bellot
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
matlab wrapper conj raise error
parent
815f618f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc/test/src/test_matlab_faust2.m
+23
-1
23 additions, 1 deletion
misc/test/src/test_matlab_faust2.m
wrapper/matlab/Faust.m
+21
-2
21 additions, 2 deletions
wrapper/matlab/Faust.m
with
44 additions
and
3 deletions
misc/test/src/test_matlab_faust2.m
+
23
−
1
View file @
9e00233c
...
...
@@ -148,7 +148,7 @@ disp('Ok');
disp
(
'test 5 : ctranspose is not yet implemented for complex scalar Faust'
);
disp
(
'test 5 : c
omplex
transpose is not yet implemented for complex scalar Faust'
);
test_pass
=
0
;
expected_err_message
=
'ctranspose is not yet implemented for complex scalar Faust'
;
F
=
Faust
({
ones
(
5
,
4
),
ones
(
4
,
7
)
+
1
i
*
ones
(
4
,
7
)});
...
...
@@ -170,6 +170,28 @@ disp('Ok');
disp
(
'test 6 : conjugate is not yet implemented for Faust'
);
test_pass
=
0
;
expected_err_message
=
'conjugate is not yet implemented for Faust'
;
F
=
Faust
({
ones
(
5
,
4
),
ones
(
4
,
7
)
+
1
i
*
ones
(
4
,
7
)});
try
F_conj
=
conj
(
F
);
catch
ME
if
strcmp
(
ME
.
message
,
expected_err_message
)
test_pass
=
1
;
else
error
([
'error with a wrong message : '
ME
.
message
' must be : '
expected_err_message
]);
end
end
if
(
~
test_pass
)
error
(
'failure'
);
end
disp
(
'Ok'
);
...
...
This diff is collapsed.
Click to expand it.
wrapper/matlab/Faust.m
+
21
−
2
View file @
9e00233c
...
...
@@ -208,7 +208,7 @@ classdef Faust
%
% F_trans = ctranspose(F) is called for syntax F' (complex conjugate transpose) when F is a Faust.
%
% WARNING : c
urrently Faust is a real matrix, so the conjugate transposition is the same as the
real
one
% WARNING : c
transpose is not yet implementd for complex Faust, only supported for
real
Faust
%
% See also transpose.
if
(
isreal
(
F
))
...
...
@@ -219,6 +219,25 @@ classdef Faust
end
function
F_conj
=
conj
(
F
)
%% CONJ ' Complex conjugate Faust (WARNING not implemented) (overloaded Matlab built-in function).
%
% F_trans = conj(F) For a complex F, conj(X) = REAL(F) - i*IMAG(F)
%
%
error
(
'conjugate is not yet implemented for Faust'
);
end
...
...
@@ -305,7 +324,7 @@ classdef Faust
end
...
...
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