Mercurial > hg > smallbox
annotate util/classes/@dictionary/mtimes.m @ 224:fd0b5d36f6ad danieleb
Updated the contents of this branch with the contents of the default branch.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 12 Apr 2012 13:52:28 +0100 |
parents | e3035d45d014 |
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 |