next up previous
Next: MATC Function Statement Up: MATC Matrix Language Previous: MATC general flow control

MATC Operators

a,b and c ordinary matrices

l,t and r logical matrices

s,n and m scalars

b=a' is transpose of matrix a.

b=@a evaluate content of a string variable a as a MATC statement.

tex2html_wrap_inline203 elementwise logical not of tex2html_wrap_inline205 if x is not zero.

tex2html_wrap_inline209 if a is a square matrix and s is integral, a matrix power is computed, otherwise an elementwise power.

c=a*b if a and b are compatible for matrix product, that is computed, otherwise if they are of the same size or at least one of them is scalar, an elementwise product is computed.

tex2html_wrap_inline221 elementwise multiplication of a and b.

c=a/b is fraction of a and b computed elementwise.

c=a+b is sum of matrices a and b computed elementwise.

c=a-b is difference of matrices a and b computed elementwise.

l=a==b equality of matrices a and b elementwise.

l=a<>b inequality of matrices a and b elementwise.

l=a<b true if a is less than b computed elementwise.

l=a>b true if a is greater than b computed elementwise.

l=a<=b true if a is less than or equal to b computed elementwise.

l=a>=b true if a is greater than or equal to b computed elementwise.

a=n:m return a vector of values starting from n and ending to m by increment of (plus-minus) one.

tex2html_wrap_inline285 elementwise logical and of a and b.

l=a|b elementwise logical or of a and b.

c=a?b reduction: set values of a where b is zero to zero.

tex2html_wrap_inline303 resize a to matrix of size n by m.

b=a assign a to b.



Juha Ruokolainen
Fri Feb 14 15:59:30 EET 1997