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.poly.array.ArrayPoly Class Reference
Inheritance diagram for nzmath.poly.array.ArrayPoly:
[legend]

Public Member Functions

def __init__ (self, coefficients=[0])
 
def coefficients_to_dict (self)
 
def __repr__ (self)
 
def __str__ (self)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 
def scalar_mul (self, scalar)
 
def upshift_degree (self, slide)
 
def downshift_degree (self, slide)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __mul__ (self, other)
 
def power (self)
 
def split_at (self, split_point)
 
def FFT_mul (self, other)
 

Public Attributes

 coefficients
 
 degree
 

Detailed Description

Polynomial with integer number coefficients.
Coefficients has to be a initializer for list.

Definition at line 25 of file array.py.

Constructor & Destructor Documentation

◆ __init__()

def nzmath.poly.array.ArrayPoly.__init__ (   self,
  coefficients = [0] 
)
Initialize the polynomial.
coefficients:initializer for polynomial coefficients

Definition at line 31 of file array.py.

Member Function Documentation

◆ __add__()

◆ __eq__()

◆ __mul__()

◆ __ne__()

◆ __repr__()

def nzmath.poly.array.ArrayPoly.__repr__ (   self)

Reimplemented in nzmath.poly.array.ArrayPolyMod.

Definition at line 51 of file array.py.

References nzmath.poly.array.ArrayPoly.coefficients_to_dict().

◆ __str__()

def nzmath.poly.array.ArrayPoly.__str__ (   self)

Reimplemented in nzmath.poly.array.ArrayPolyMod.

Definition at line 55 of file array.py.

References nzmath.poly.array.ArrayPoly.coefficients_to_dict().

◆ __sub__()

◆ coefficients_to_dict()

◆ downshift_degree()

◆ FFT_mul()

◆ power()

◆ scalar_mul()

◆ split_at()

def nzmath.poly.array.ArrayPoly.split_at (   self,
  split_point 
)
Return tuple of two polynomials, which are splitted at the
given degree.  The term of the given degree, if exists,
belongs to the lower degree polynomial.

Reimplemented in nzmath.poly.array.ArrayPolyMod.

Definition at line 163 of file array.py.

References nzmath.poly.array.ArrayPoly.coefficients, nzmath.algfield.NumberField.degree, nzmath.poly.array.ArrayPoly.degree, nzmath.algfield.BasicAlgNumber.degree, nzmath.finitefield.ExtendedField.degree, nzmath.algfield.MatAlgNumber.degree, and nzmath.bigrange.range().

◆ upshift_degree()

def nzmath.poly.array.ArrayPoly.upshift_degree (   self,
  slide 
)
Return the polynomial obtained by shifting upward all terms
with degrees of 'slide'.

Reimplemented in nzmath.poly.array.ArrayPolyMod.

Definition at line 106 of file array.py.

References nzmath.poly.array.ArrayPoly.coefficients.

Referenced by nzmath.poly.uniutil.OrderProvider.shift_degree_to().

Member Data Documentation

◆ coefficients

◆ degree


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