Mercurial > hg > smallbox
comparison 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 |
comparison
equal
deleted
inserted
replaced
159:23763c5fbda5 | 160:e3035d45d014 |
---|---|
1 function C = mtimes(A,B) | |
2 isAdic = strcmp(class(A),'dictionary'); | |
3 isBdic = strcmp(class(B),'dictionary'); | |
4 if isAdic && ~isBdic | |
5 C = A.phi*B; | |
6 elseif isBdic && ~isAdic | |
7 C = A*B.phi; | |
8 elseif isAdic && isBdic | |
9 C = A.phi*B.phi; | |
10 end | |
11 end |