Mercurial > hg > smallbox
annotate util/classes/@dictionary/mtimes.m @ 171:e8428989412f danieleb
Added dictionary decorrelation functions and test script for Letters paper.
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 06 Oct 2011 14:33:52 +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 |