Skip to content

Intra-Matrix Methods

pyrix.matrix.Matrix.addRow()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def addRow(self, index1, index2):
        ....

details

This method adds row at index2 of current matrix to the row at index1 of current matrix and store the resultant row at index1 position.

parameters:

  • index1: This will locate the position of the row of the current matrix (int type).
  • index2: This will locate the position of the second row of the matrix (int type).

pyrix.matrix.Matrix.subRow()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def subRow(self, index1, index2):
        ....

details

This method subtracts row at index2 of current matrix from the row at index1 of current matrix and store the resultant row at index1 position.

parameters:

  • index1: This will locate the position of the row of the current matrix (int type).
  • index2: This will locate the position of the second row of the matrix (int type).

Last update: December 3, 2020