Artifact b4367f9175840668a79fd5bf153c8f1584e03cb7f95b119ea6de8112d98a9046:
- Executable file
r37/lisp/csl/html/r37_0574.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: 1315) [annotate] [blame] [check-ins using] [more...]
<A NAME=add_to_columns> <TITLE>add_to_columns</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>ADD_TO_COLUMNS</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> Add to columns, add to rows: <P> <P> <P> <H3> syntax: </H3> <em>add_to_columns</em>(<matrix>,<column\_list>,<expr>) <P> <P> <P> <matrix> :- a matrix. <P> <P> <column\_list> :- a positive integer or a list of positive integers. <P> <P> <expr> :- a scalar expression. <P> <P> <em>add_to_columns</em>adds <expr> to each column specified in <column\_list> of <matrix>. <P> <P> <em>add_to_rows</em>performs the equivalent task on the rows of <matrix>. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> add_to_columns(A,{1,2},10); [11 12 3] [ ] [14 15 6] [ ] [17 18 9] add_to_rows(A,2,-x) [ 1 2 3 ] [ ] [ - x + 4 - x + 5 - x + 6] [ ] [ 7 8 9 ] </TT></PRE><P>Related functions: <A HREF=r37_0572.html>add_columns</A>, <A HREF=r37_0573.html>add_rows</A>, <A HREF=r37_0604.html>mult_rows</A>, <A HREF=r37_0603.html>mult_columns</A>. <P> <P>