127
Chapter 8: Matrix Features
07 row_swap( row_swap(
matrix name
,
row number
,
row number
)
Returns the matrix with specified rows swapped.
Example
•Swap the 2nd and 3rd rows in
the matrix E.
e
2j
= e
3j
, e
3j
= e
2j
08 row_plus( row_plus(
matrix name
,
row number
,
row number
)
Adds the first specified row data to the second specified row data.
Example
• Add the 2nd row data to the
first row of matrix E.
e
1j
= e
1j
+ e
2j
09 row_mult( row_mult(
multiplied number
,
matrix name
,
row number
)
Returns the scalar multiplication of elements in a specified row.
Example
•3
× each element of 1st row of
mat E
e
1j
= 3 × e
1j
10 row_m.p.( row_m.p.(
multiplied number, matrix name
,
row number
,
row
number
)
Returns the scalar multiplication of elements in a specified row
and adds result to elements in another specified row.
Example
•2
× each element of 3rd row
and add the result to each
element of the 1st row.
e
1j
= e
1j
+ 2 × e
2j