Artifact 1297d6558ec348d4b1876e4cb2fdd5f205073ca2728c699ecfcf04dd03878c09:
- Executable file
r37/lisp/csl/html/r37_0586.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1059) [annotate] [blame] [check-ins using] [more...]
<A NAME=diagonal> <TITLE>diagonal</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>DIAGONAL</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> <P> <P> <P> <H3> syntax: </H3> <em>diagonal</em>({<mat\_list>}) <P> <P> <P> (If you are feeling lazy then the braces can be omitted.) <P> <P> <mat\_list> :- each can be either a scalar expression or a square <A HREF=r37_0345.html>matrix</A>. <P> <P> <em>diagonal</em>creates a matrix that contains the input on the diagonal. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> H := mat((66,77),(88,99)); [66 77] h := [ ] [88 99] diagonal({A,x,H}); [1 2 3 0 0 0 ] [ ] [4 5 6 0 0 0 ] [ ] [7 8 9 0 0 0 ] [ ] [0 0 0 x 0 0 ] [ ] [0 0 0 0 66 77] [ ] [0 0 0 0 88 99] </TT></PRE><P>Related functions: <A HREF=r37_0596.html>jordan_block</A>. <P> <P>