/usr/share/elmerpost/help/matc/node3.html is in elmer-common 6.1.0.svn.5396.dfsg2-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-d (Mar 10, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>MATC Operators</TITLE>
<META NAME="description" CONTENT="MATC Operators">
<META NAME="keywords" CONTENT="kirja">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="kirja.css">
</HEAD>
<BODY LANG="EN">
<A NAME="tex2html84" HREF="node4.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="lh-figs/next_motif.gif"></A> <A NAME="tex2html82" HREF="kirja.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="lh-figs/up_motif.gif"></A> <A NAME="tex2html76" HREF="node2.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="lh-figs/previous_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html85" HREF="node4.html">MATC Function Statement</A>
<B>Up:</B> <A NAME="tex2html83" HREF="kirja.html">MATC Matrix Language</A>
<B> Previous:</B> <A NAME="tex2html77" HREF="node2.html">MATC general flow control </A>
<BR> <P>
<H1><A NAME="SECTION00300000000000000000">MATC Operators</A></H1>
<P>
<I>a</I>,<I>b</I> and <I>c</I> ordinary matrices
<P>
<I>l</I>,<I>t</I> and <I>r</I> logical matrices
<P>
<I>s</I>,<I>n</I> and <I>m</I> scalars
<P>
<I>b</I>=<I>a</I>' is transpose of matrix <I>a</I>.
<P>
<I>b</I>=@<I>a</I> evaluate content of a string variable <I>a</I> as a MATC statement.
<P>
<IMG WIDTH=44 HEIGHT=12 ALIGN=BOTTOM ALT="tex2html_wrap_inline203" SRC="img11.gif" > elementwise logical not of <IMG WIDTH=124 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline205" SRC="img12.gif" > if <I>x</I> is not zero.
<P>
<IMG WIDTH=53 HEIGHT=13 ALIGN=BOTTOM ALT="tex2html_wrap_inline209" SRC="img13.gif" > if <I>a</I> is a square matrix and <I>s</I> is integral, a matrix power is
computed, otherwise an elementwise power.
<P>
<I>c</I>=<I>a</I>*<I>b</I> if <I>a</I> and <I>b</I> 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.
<P>
<IMG WIDTH=56 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline221" SRC="img14.gif" > elementwise multiplication of <I>a</I> and <I>b</I>.
<P>
<I>c</I>=<I>a</I>/<I>b</I> is fraction of <I>a</I> and <I>b</I> computed elementwise.
<P>
<I>c</I>=<I>a</I>+<I>b</I> is sum of matrices <I>a</I> and <I>b</I> computed elementwise.
<P>
<I>c</I>=<I>a</I>-<I>b</I> is difference of matrices <I>a</I> and <I>b</I> computed elementwise.
<P>
<I>l</I>=<I>a</I>==<I>b</I> equality of matrices <I>a</I> and <I>b</I> elementwise.
<P>
<I>l</I>=<I>a</I><><I>b</I> inequality of matrices <I>a</I> and <I>b</I> elementwise.
<P>
<I>l</I>=<I>a</I><<I>b</I> true if a is less than <I>b</I> computed elementwise.
<P>
<I>l</I>=<I>a</I>><I>b</I> true if <I>a</I> is greater than <I>b</I> computed elementwise.
<P>
<I>l</I>=<I>a</I><=<I>b</I> true if <I>a</I> is less than or equal to <I>b</I> computed elementwise.
<P>
<I>l</I>=<I>a</I>>=<I>b</I> true if <I>a</I> is greater than or equal to <I>b</I> computed elementwise.
<P>
<I>a</I>=<I>n</I>:<I>m</I> return a vector of values starting from <I>n</I> and ending to <I>m</I> by
increment of (plus-minus) one.
<P>
<IMG WIDTH=52 HEIGHT=12 ALIGN=BOTTOM ALT="tex2html_wrap_inline285" SRC="img15.gif" > elementwise logical and of <I>a</I> and <I>b</I>.
<P>
<I>l</I>=<I>a</I>|<I>b</I> elementwise logical or of <I>a</I> and <I>b</I>.
<P>
<I>c</I>=<I>a</I>?<I>b</I> reduction: set values of <I>a</I> where <I>b</I> is zero to zero.
<P>
<IMG WIDTH=90 HEIGHT=25 ALIGN=MIDDLE ALT="tex2html_wrap_inline303" SRC="img16.gif" > resize <I>a</I> to matrix of size <I>n</I> by <I>m</I>.
<P>
<I>b</I>=<I>a</I> assing <I>a</I> to <I>b</I>.
<P>
<BR> <HR>
<P><ADDRESS>
<I>Juha Ruokolainen <BR>
Fri Feb 14 15:59:30 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>
|