<A NAME=mult_columns>
<TITLE>mult_columns</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>MULT_COLUMNS</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
Mult columns, mult rows:
<P>
<P>
<P> <H3>
syntax: </H3>
<em>mult_columns</em>(<matrix>,<column\_list>,<expr>)
<P>
<P>
<P>
<matrix> :- a
<A HREF=r37_0345.html>matrix</A>.
<P>
<P>
<column\_list> :- a positive integer or a list of positive
integers.
<P>
<P>
<expr> :- an algebraic expression.
<P>
<P>
<em>mult_columns</em>returns a copy of <matrix> in which the
columns specified in <column\_list> have been multiplied by
<expr>.
<P>
<P>
<em>mult_rows</em>performs the same task on the rows of <matrix>.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
mult_columns(A,{1,3},x);
[ x 2 3*x]
[ ]
[4*x 5 6*x]
[ ]
[7*x 8 9*x]
mult_rows(A,2,10);
[1 2 3 ]
[ ]
[40 50 60]
[ ]
[7 8 9 ]
</TT></PRE><P>Related functions:
<A HREF=r37_0574.html>add_to_columns</A>,
<A HREF=r37_0575.html>add_to_rows</A>.
<P>
<P>