annotate util/classes/@dictionary/mtimes.m @ 160:e3035d45d014 danieleb

Added support classes
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 10:53:10 +0100
parents
children
rev   line source
daniele@160 1 function C = mtimes(A,B)
daniele@160 2 isAdic = strcmp(class(A),'dictionary');
daniele@160 3 isBdic = strcmp(class(B),'dictionary');
daniele@160 4 if isAdic && ~isBdic
daniele@160 5 C = A.phi*B;
daniele@160 6 elseif isBdic && ~isAdic
daniele@160 7 C = A*B.phi;
daniele@160 8 elseif isAdic && isBdic
daniele@160 9 C = A.phi*B.phi;
daniele@160 10 end
daniele@160 11 end