function C = mtimes(C1,C2)
% @komplex/mtimes - nasobeni 2 komplexnich cisel
% C = mtimes(C1,C2)
% C = C1*C2

C1 = komplex(C1);
C2 = komplex(C2);

C.real = C1.real*C2.real - C1.imag*C2.imag; % definice scitani kompl. cisel
C.imag = C1.real*C2.imag + C1.imag*C2.real;
C = class(C,'komplex'); % ze struktury vznika objekt

% C = komplex(double(C1)*double(C2)); % zpusob zneuziti knihovniho 'mtimes'