128
Chapter 6: Matrix Features
07 row_swap( row_swap(matrix name, row number, row number)
Returnsthematrixwithspeciedrowsswapped.
Example
• Swapthe2ndand3rdrowsin
the matrix E.
e
2j
’ = e
3j
, e
3j
’ = e
2j
08 row_plus( row_plus(matrix name, row number, row number)
Addstherstspeciedrowdatatothesecondspeciedrowdata.
Example
• Addthe2ndrowdatatothe
first row of matrix E.
e
1j
’ = e
1j
+
e
2j
09 row_mult( row_mult(multiplied number, matrix name, row number)
Returnsthescalarmultiplicationofelementsinaspeciedrow.
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)
Returnsthescalarmultiplicationofelementsinaspeciedrowand
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