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

Public Member Functions

def __init__ (self, generator)
 
def __repr__ (self)
 
def __str__ (self)
 
def __add__ (self, other)
 
def __mul__ (self, other)
 
def __pow__ (self, other)
 
def copy (self)
 
def to_HNFRepresentation (self)
 
def twoElementRepresentation (self)
 

Public Attributes

 generator
 
 number_field
 

Detailed Description

ideal given as a generator
(i.e. (a_1,...,a_n) = a_1 Z_K + ... + a_n Z_K)

Definition at line 776 of file module.py.

Constructor & Destructor Documentation

◆ __init__()

def nzmath.module.Ideal_with_generator.__init__ (   self,
  generator 
)
Ideal_with_generator(generator)
generator: list of instances in BasicAlgNumber
   (over same number_field)

Definition at line 781 of file module.py.

Member Function Documentation

◆ __add__()

def nzmath.module.Ideal_with_generator.__add__ (   self,
  other 
)
self + other as ideal
other must be an instance of Ideal_with_generator

Definition at line 802 of file module.py.

References nzmath.group.GenerateGroup.generator, nzmath.module.Ideal_with_generator.generator, nzmath.module.Module.number_field, and nzmath.module.Ideal_with_generator.number_field.

◆ __mul__()

def nzmath.module.Ideal_with_generator.__mul__ (   self,
  other 
)
self * other as ideal
other must be an instance of Ideal_with_generator

Definition at line 814 of file module.py.

References nzmath.group.GenerateGroup.generator, nzmath.module.Ideal_with_generator.generator, nzmath.module.Module.number_field, and nzmath.module.Ideal_with_generator.number_field.

◆ __pow__()

def nzmath.module.Ideal_with_generator.__pow__ (   self,
  other 
)

◆ __repr__()

◆ __str__()

def nzmath.module.Ideal_with_generator.__str__ (   self)
simple representation

Definition at line 796 of file module.py.

References nzmath.group.GenerateGroup.generator, and nzmath.module.Ideal_with_generator.generator.

◆ copy()

◆ to_HNFRepresentation()

def nzmath.module.Ideal_with_generator.to_HNFRepresentation (   self)

◆ twoElementRepresentation()

def nzmath.module.Ideal_with_generator.twoElementRepresentation (   self)
Reduce the number of generator to only two elements
Warning: If self is not a prime ideal, this method is not efficient

Definition at line 891 of file module.py.

References nzmath.group.GenerateGroup.generator, nzmath.module.Ideal_with_generator.generator, nzmath.module.Module.number_field, nzmath.module.Ideal_with_generator.number_field, and nzmath.bigrange.range().

Member Data Documentation

◆ generator

◆ number_field


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