<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>