MULT_COLUMNS _ _ _ _ _ _ _ _ _ _ _ _ operator
Mult columns, mult rows:
<matrix> :- a matrix.
<column\_list> :- a positive integer or a list of positive integers.
<expr> :- an algebraic expression.
mult_columnsreturns a copy of <matrix> in which the columns specified in <column\_list> have been multiplied by <expr>.
mult_rowsperforms the same task on the rows of <matrix>.
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 ]
Related functions: add_to_columns, add_to_rows.