Artifact c052fc4a5b50539b5b0b6f9789f783e87b208dd73df84899dd53a48a8ab58768:
- Executable file
r37/lisp/csl/html/r37_0572.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: 1281) [annotate] [blame] [check-ins using] [more...]
<A NAME=add_columns> <TITLE>add_columns</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>ADD_COLUMNS</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> Add columns, add rows: <P> <H3> syntax: </H3> <P> <P> <em>add_columns</em>(<matrix>,<c1>,<c2>,<expr>) <P> <P> <P> <matrix> :- a <A HREF=r37_0345.html>matrix</A>. <P> <P> <c1>,<c2> :- positive integers. <P> <P> <expr> :- a scalar expression. <P> <P> The Operator <em>add_columns</em> replaces column <\meta{c2>} of <matrix> by <expr> * column(<matrix>,<c1>) + column(<matrix>,<c2>). <P> <P> <em>add_rows</em>performs the equivalent task on the rows of <matrix>. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> add_columns(A,1,2,x); [1 x + 2 3] [ ] [4 4*x + 5 6] [ ] [7 7*x + 8 9] add_rows(A,2,3,5); [1 2 3 ] [ ] [4 5 6 ] [ ] [27 33 39] </TT></PRE><P>Related functions: <A HREF=r37_0574.html>add_to_columns</A>, <A HREF=r37_0575.html>add_to_rows</A>, <A HREF=r37_0603.html>mult_columns</A>, <A HREF=r37_0604.html>mult_rows</A>. <P> <P>