nzmath.poly.multivar

TermIndeces

Indeces of terms of multivariate polynomials. It is a tuple-like object.

Constructor

TermIndeces(indeces)

The constructor does not check the validity of indeces, such as integerness, nonnegativity, etc.

Method

pop(pos)

Return the index at pos and a new TermIndeces object as the omitting-the-pos indeces.

gcd(other)

Return "gcd" of indeces with other indeces.
(new in 0.*.*)

lcm(other)

Return "lcm" of indeces with other indeces.
(new in 0.*.*)

Operators

t == u, t != uequality
t + ucomponentwise addition
t - ucomponentwise subtraction
t * ascalar multiplication
t <= u, t < u, t >= u, t > uordering
t[k]k-th index
len(t)length
iter(t)iterator
hash(t)hash