annotate util/classes/@dictionary/mtimes.m @ 182:f8bc99a5470c danieleb

Added test for audio buffer function
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Mon, 09 Jan 2012 12:58:00 +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