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:
Collaboration diagram for nzmath.round2.ModuleWithDenominator:

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


Static Private Attributes

def __rmul__ = __mul__

Detailed Description

Represent basis of Z-module with denominator

Definition at line 393 of file

Constructor & Destructor Documentation

◆ __init__()

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

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

Definition at line 397 of file

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,
Return a list corresponding a linear combination of basis with
given coefficients.  The denominator is ignored.

Definition at line 490 of file

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__

Definition at line 478 of file

◆ basis

◆ denominator

◆ dimension


◆ poly_basis


Definition at line 414 of file

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

◆ rank


◆ rational_basis


Definition at line 413 of file

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

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