NZMATH  1.2.0
About: NZMATH is a Python based number theory oriented calculation system.
  Fossies Dox: NZMATH-1.2.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

nzmath.matrix.SquareMatrix Class Reference
Inheritance diagram for nzmath.matrix.SquareMatrix:
[legend]
Collaboration diagram for nzmath.matrix.SquareMatrix:
[legend]

Public Member Functions

def __init__ (self, row, column=0, compo=0, coeff_ring=0)
 
def isUpperTriangularMatrix (self)
 
def isLowerTriangularMatrix (self)
 
def isDiagonalMatrix (self)
 
def isScalarMatrix (self)
 
def isSymmetricMatrix (self)
 
- Public Member Functions inherited from nzmath.matrix.Matrix
def __getitem__ (self, index)
 
def __setitem__ (self, key, value)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __ne__ (self, other)
 
def __nonzero__ (self)
 
def __contains__ (self, item)
 
def __repr__ (self)
 
def __str__ (self)
 
def __call__ (self, arg)
 
def map (self, function)
 
def reduce (self, function, initializer=None)
 
def copy (self)
 
def set (self, compo)
 
def setRow (self, m, arg)
 
def setColumn (self, n, arg)
 
def getRow (self, i)
 
def getColumn (self, j)
 
def swapRow (self, m1, m2)
 
def swapColumn (self, n1, n2)
 
def insertRow (self, i, arg)
 
def insertColumn (self, j, arg)
 
def extendRow (self, arg)
 
def extendColumn (self, arg)
 
def deleteRow (self, i)
 
def deleteColumn (self, j)
 
def transpose (self)
 
def getBlock (self, i, j, row, column=None)
 
def subMatrix (self, I, J=None)
 
def toMatrix (self, flag=True)
 

Private Member Functions

def _initialize (self, row, column=0, compo=0, coeff_ring=0)
 

Additional Inherited Members

- Public Attributes inherited from nzmath.matrix.Matrix
 row
 
 column
 
 compo
 
 coeff_ring
 

Detailed Description

SquareMatrix is a class for square matrices.

Definition at line 461 of file matrix.py.

Constructor & Destructor Documentation

◆ __init__()

def nzmath.matrix.SquareMatrix.__init__ (   self,
  row,
  column = 0,
  compo = 0,
  coeff_ring = 0 
)
SquareMatrix(row [, column ,components, coeff_ring])
SquareMatrix must be row == column .

Reimplemented from nzmath.matrix.Matrix.

Reimplemented in nzmath.matrix.FieldSquareMatrix, and nzmath.matrix.RingSquareMatrix.

Definition at line 466 of file matrix.py.

References nzmath.matrix.Matrix._initialize(), and nzmath.matrix.Matrix._selectMatrix().

Member Function Documentation

◆ _initialize()

def nzmath.matrix.SquareMatrix._initialize (   self,
  row,
  column = 0,
  compo = 0,
  coeff_ring = 0 
)
private
initialize matrix.

Reimplemented from nzmath.matrix.Matrix.

Definition at line 474 of file matrix.py.

◆ isDiagonalMatrix()

def nzmath.matrix.SquareMatrix.isDiagonalMatrix (   self)
Check whether self is diagonal matrix or not.

Definition at line 513 of file matrix.py.

References nzmath.matrix.SquareMatrix.isLowerTriangularMatrix(), and nzmath.matrix.SquareMatrix.isUpperTriangularMatrix().

Referenced by nzmath.matrix.SquareMatrix.isScalarMatrix().

◆ isLowerTriangularMatrix()

def nzmath.matrix.SquareMatrix.isLowerTriangularMatrix (   self)

◆ isScalarMatrix()

def nzmath.matrix.SquareMatrix.isScalarMatrix (   self)
Check whether self is scalar matrix or not.
Scalar matrix is matrix which is unit matrix times some scalar.

Definition at line 519 of file matrix.py.

References nzmath.matrix.SquareMatrix.isDiagonalMatrix(), nzmath.bigrange.range(), nzmath.matrix.Matrix.row, and nzmath.lattice.LatticeElement.row.

◆ isSymmetricMatrix()

def nzmath.matrix.SquareMatrix.isSymmetricMatrix (   self)

◆ isUpperTriangularMatrix()

def nzmath.matrix.SquareMatrix.isUpperTriangularMatrix (   self)

The documentation for this class was generated from the following file: