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

Public Member Functions

def __init__ (self, basis, denominator, **hints)
 
def get_rationals (self)
 
def get_polynomials (self)
 
def __add__ (self, other)
 
def __mul__ (self, scale)
 
def __truediv__ (self, divisor)
 
def determinant (self)
 
def linear_combination (self, coefficients)
 

Public Attributes

 basis
 
 denominator
 
 rank
 
 dimension
 
 rational_basis
 
 poly_basis
 

Static Private Attributes

def __rmul__ = __mul__
 

Detailed Description

Represent basis of Z-module with denominator

Definition at line 393 of file round2.py.

Constructor & Destructor Documentation

◆ __init__()

def nzmath.round2.ModuleWithDenominator.__init__ (   self,
  basis,
  denominator,
**  hints 
)
basis is a list of integer sequences.
denominator is a common denominator of all bases.

Example:
ModuleWithDenominator([[1, 2], [4, 6]], 2) represents a module
<[1/2, 1], [2, 3]>.

Definition at line 397 of file round2.py.

Member Function Documentation

◆ __add__()

◆ __mul__()

◆ __truediv__()

◆ determinant()

def nzmath.round2.ModuleWithDenominator.determinant (   self)

◆ get_polynomials()

def nzmath.round2.ModuleWithDenominator.get_polynomials (   self)

◆ get_rationals()

def nzmath.round2.ModuleWithDenominator.get_rationals (   self)

◆ linear_combination()

def nzmath.round2.ModuleWithDenominator.linear_combination (   self,
  coefficients 
)
Return a list corresponding a linear combination of basis with
given coefficients.  The denominator is ignored.

Definition at line 490 of file round2.py.

References nzmath.lattice.Lattice.basis, nzmath.round2.ModuleWithDenominator.basis, nzmath.round2.ModuleWithDenominator.dimension, and nzmath.bigrange.range().

Member Data Documentation

◆ __rmul__

def nzmath.round2.ModuleWithDenominator.__rmul__ = __mul__
staticprivate

Definition at line 478 of file round2.py.

◆ basis

◆ denominator

◆ dimension

nzmath.round2.ModuleWithDenominator.dimension

◆ poly_basis

nzmath.round2.ModuleWithDenominator.poly_basis

Definition at line 414 of file round2.py.

Referenced by nzmath.round2.ModuleWithDenominator.get_polynomials().

◆ rank

nzmath.round2.ModuleWithDenominator.rank

◆ rational_basis

nzmath.round2.ModuleWithDenominator.rational_basis

Definition at line 413 of file round2.py.

Referenced by nzmath.round2.ModuleWithDenominator.get_rationals().


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