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
0a3386ac
Commit
0a3386ac
authored
6 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Block matfaust.Faust by sparse matrix multiplication and display error msg.
pyfaust.Faust's already blocking Faust-sparse mul.
parent
8ad07584
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrapper/matlab/+matfaust/@Faust/Faust.m
+3
-1
3 additions, 1 deletion
wrapper/matlab/+matfaust/@Faust/Faust.m
with
3 additions
and
1 deletion
wrapper/matlab/+matfaust/@Faust/Faust.m
+
3
−
1
View file @
0a3386ac
...
@@ -294,7 +294,9 @@ classdef Faust
...
@@ -294,7 +294,9 @@ classdef Faust
if
(
trans
~=
1
)
&&
(
trans
~=
0
)
if
(
trans
~=
1
)
&&
(
trans
~=
0
)
error
(
'invalid argument trans, must be equal to 0 or 1'
);
error
(
'invalid argument trans, must be equal to 0 or 1'
);
end
end
if
(
isa
(
A
,
'matfaust.Faust'
))
if
(
issparse
(
A
))
error
(
'Faust multiplication to a sparse matrix isn
''
t supported.'
)
elseif
(
isa
(
A
,
'matfaust.Faust'
))
if
(
F
.
isReal
)
if
(
F
.
isReal
)
C
=
matfaust
.
Faust
(
F
,
mexFaustReal
(
'mul_faust'
,
F
.
matrix
.
objectHandle
,
A
.
matrix
.
objectHandle
));
C
=
matfaust
.
Faust
(
F
,
mexFaustReal
(
'mul_faust'
,
F
.
matrix
.
objectHandle
,
A
.
matrix
.
objectHandle
));
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