Skip to content

Category 2 Methods

pyrix.matrix.Matrix.equals()

Abstract Code Description

1
2
def equals(self,matrix2):
    ....

details

parameters:

  • matrix2(MatrixType) : The second matrix to be compared with

Returns:

  • return : A Boolean True or False is returned depending on the equality

parameters considered

Data,dimensions are the only factors of matrixdata compared for equality.

pyrix.matrix.Matrix.isSquareMatrix()

Abstract Code Description

1
2
def isSquareMatrix(self):
    ....

details

Returns:

  • return : A Boolean True or False is returned depending on the dimensions

parameters considered

Dimension factors of matrixdata considered.

pyrix.matrix.Matrix.isInvertible()

Abstract Code Description

1
2
def isInvertible(self):
    ....

details

Returns:

  • return : A Boolean True or False is returned depending on the singularity/determinant

parameters considered

singularity/invertibility or determinant factors of matrixdata compared for singularity check.

pyrix.matrix.Matrix.isUpperTriangular()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def isUpperTriangular(self):
        ....

details

Returns:

  • return : A Boolean True or False is returned depending on the triangular nature.

pyrix.matrix.Matrix.isLowerTriangular()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def isLowerTriangular(self):
        ....

details

Returns:

  • return : A Boolean True or False is returned depending on the triangular nature.

pyrix.matrix.Matrix.isSymmetricMatrix()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def isSymmetricMatrix(self):
        ....

details

Returns:

  • return : A Boolean True or False is returned depending on the symmetric nature.

pyrix.matrix.Matrix.isOrthogonalMatrix()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def isOrthogonalMatrix(self):
        ....

details

Returns:

  • return : A Boolean True or False is returned depending on the orthogonal nature.

pyrix.matrix.Matrix.getRow()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def getRow(self, index):
        ....

details

parameters:

  • index : this will provide the index of the row to be fetched.

Returns:

  • return : A new Matrix object is returned for the specified row element.

pyrix.matrix.Matrix.getCol()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def getCol(self, index):
        ....

details

parameters:

  • index : this will provide the index of the column to be fetched.

Returns:

  • return : A new Matrix object is returned for the specified column element.

pyrix.matrix.Matrix.RoundOff()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def RoundOff(self):
        ....

details

parameters:

  • extent : this will provide the round off digits.

pyrix.matrix.Matrix.scaleMatrix()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def scaleMatrix(self,scalar):
        ....

details

parameters:

  • scalar : the scaling factor for matrix.

Returns:

  • return : Self is returned.

pyrix.matrix.Matrix.determinantValue()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def determinantValue(self):
        ....

details

Returns:

  • return : Returns int/float data or determinant.

pyrix.matrix.Matrix.__determinantHelper()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def __determinantHelper(self,x,sum=0):
        ....

details

parameters:

  • x : the Matrix input for recursive use.
  • sum: default=0, the sum of previous iteration of determinant process.

Returns:

  • return : sum value is returned.

pyrix.matrix.Matrix.matrixRank()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def matrixRank(self):
        ....

details

Returns:

  • return : returns rank value (int/float) type.

pyrix.matrix.Matrix.matrixTrace()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def matrixTrace(self):
        ....

details

Returns:

  • return : returns trace value (int) type.

pyrix.matrix.Matrix.minorSpecific()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def minorSpecific(self,row,column):
        ....

details

parameters:

  • row : the row index .
  • column : the column index.

Returns:

  • return : The "minor" value of the specific element in matrix.

pyrix.matrix.Matrix.getAllMinors()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def getAllMinors(self):
        ....

details

Returns:

  • return : A matrixobject is returned with all the "minor" values.

pyrix.matrix.Matrix.cofactorSpecific()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def cofactorSpecific(self,row,column):
        ....

details

parameters:

  • row : the row index .
  • column : the column index.

Returns:

  • return : The "cofactor" value of the specific element in matrix.

pyrix.matrix.Matrix.getAllCofactors()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def getAllCofactors(self):
        ....

details

Returns:

  • return : A matrixobject is returned with all the "cofactor" values.

pyrix.matrix.Matrix.__minor()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def __minor(self,matrixdata):
        ....

details

parameters:

  • matrixdata : The matrixdata in a nested list format.

Returns:

  • return : A nested list is returned with all the "minor" values.

pyrix.matrix.Matrix.__cofactor()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def __cofactor(self,minorlist):
        ....

details

parameters:

  • matrixdata : The matrixdata in a nested list format.

Returns:

  • return : A nested list is returned with all the "cofactor" values.

pyrix.matrix.Matrix.__minor2x2()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def __minor2x2(self,matrixdata):
        ....

details

parameters:

  • matrixdata : The matrixdata in a nested list format for 2x2 matrix.

Returns:

  • return : A list is returned with all the "minor" values for 2x2 matrix.

pyrix.matrix.Matrix.__matrixsplitter()

Abstract Code Description

1
2
3
4
class Matrix:
    ::
    def __matrixsplitter(self,matrixdata,exceptionrow,exceptioncol):
        ....

details

parameters:

  • matrixdata : The matrixdata in a nested list format.
  • exceptionrow : The index of row to be excluded from the resultant matrix.
  • exceptioncol : The index of col to be excluded from the resultant matrix.

Returns:

  • return : A nested list is returned after excluding the indexed row and columns.

Last update: December 3, 2020