next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Divisor :: cleanSupport

cleanSupport -- removes primes with coefficient zero from a divisor

Synopsis

Description

This function returns a divisor where all entries with coefficient zero are removed.

i1 : R = QQ[x,y,z];
i2 : D = divisor({1,0,-2}, {ideal(x), ideal(y), ideal(z)})

o2 = Div(x) + 0*Div(y) + -2*Div(z)

o2 : WeilDivisor on R
i3 : cleanSupport(D)

o3 = Div(x) + -2*Div(z)

o3 : WeilDivisor on R

Ways to use cleanSupport :

For the programmer

The object cleanSupport is a method function.