Mercurial > hg > smallbox
annotate util/classes/@dictionary/mtimes.m @ 174:dc2f0fa21310 danieleb
multiple trials with error bars
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Nov 2011 11:16:15 +0000 |
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 |