Stability parameters

Stability function

EXAMPLES:

sage: from msinvar import Stability
sage: z=Stability([1,0]); z
Stability function [[1, 0], [1, 1]]
sage: z([1,2]) #slope
0.333333333333
class msinvar.stability.Stability(a, b=None)[source]

Bases: object

Stability function corresponding to the vectors a, b.

EXAMPLES:

sage: from msinvar import Stability
sage: z=Stability([1,0]); z
Stability function [[1, 0], [1, 1]]
sage: z([1,2]) #slope
0.333333333333
sage: z([1,0],[0,1]) #difference of slopes
1
sage: z.less([1,0],[0,1])
False
slope(d)[source]

Slope of the vector d.

compare(d, e)[source]

Difference of slopes.

has_slope(d, slope)[source]
less(d, e)[source]

Return True if slope(d)<slope(e).

lesseq(d, e)[source]

Return True if slope(d)<=slope(e).

equal(d, e=None)[source]

Return True if slope(d)=slope(e).

dim()[source]

Rank of the lattice.

weight(d)[source]

Return vector w such that w*e<0 iff slope(e)<slope(d).

normalize(d)[source]

Return function f such that f(e)<0 iff slope(e)<slope(d).

randomize()[source]

Generic perturbation of self.

is_generic(prec)[source]

Return True if slope(d)=slope(e) for d,e<=prec implies that d, e are proportional.

static trivial(n)[source]

Return trivial stability of dimension n.

static check(z)[source]

Check if z is a stability. If it is a vector, convert it to a stability.