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.vector.Vector Class Reference
Inheritance diagram for nzmath.vector.Vector:
[legend]
Collaboration diagram for nzmath.vector.Vector:
[legend]

Public Member Functions

def __init__ (self, compo)
 
def __getitem__ (self, index)
 
def __setitem__ (self, index, value)
 
def __len__ (self)
 
def __iter__ (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __ne__ (self, other)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 
def __neg__ (self)
 
def __mul__ (self, other)
 
def __rmul__ (self, other)
 
def __truediv__ (self, other)
 
def __mod__ (self, other)
 
def __repr__ (self)
 
def __str__ (self)
 
def copy (self)
 
def set (self, compo)
 
def indexOfNoneZero (self)
 
def toMatrix (self, as_column=False)
 

Public Attributes

 compo
 

Static Private Attributes

def __div__ = __truediv__
 

Detailed Description

Class Vector is an elemental class of vector.

Definition at line 3 of file vector.py.

Constructor & Destructor Documentation

◆ __init__()

def nzmath.vector.Vector.__init__ (   self,
  compo 
)
Class Vector is an elemental class of vector.

Definition at line 7 of file vector.py.

Member Function Documentation

◆ __add__()

◆ __eq__()

def nzmath.vector.Vector.__eq__ (   self,
  other 
)

◆ __getitem__()

def nzmath.vector.Vector.__getitem__ (   self,
  index 
)

◆ __hash__()

◆ __iter__()

◆ __len__()

◆ __mod__()

◆ __mul__()

◆ __ne__()

def nzmath.vector.Vector.__ne__ (   self,
  other 
)

◆ __neg__()

◆ __repr__()

◆ __rmul__()

◆ __setitem__()

def nzmath.vector.Vector.__setitem__ (   self,
  index,
  value 
)

◆ __str__()

◆ __sub__()

◆ __truediv__()

◆ copy()

◆ indexOfNoneZero()

def nzmath.vector.Vector.indexOfNoneZero (   self)

◆ set()

def nzmath.vector.Vector.set (   self,
  compo 
)

◆ toMatrix()

def nzmath.vector.Vector.toMatrix (   self,
  as_column = False 
)
toMatrix(as_column): convert to Matrix representation.
If as_column is True, return column matrix, otherwise row matrix.

Definition at line 102 of file vector.py.

References nzmath.vector.Vector.compo, nzmath.matrix.Matrix.compo, nzmath.module.Submodule.compo, nzmath.lattice.LatticeElement.compo, and nzmath.matrix.Subspace.compo.

Member Data Documentation

◆ __div__

def nzmath.vector.Vector.__div__ = __truediv__
staticprivate

Definition at line 71 of file vector.py.

◆ compo


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