Mentions légales du service

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

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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment