I'd like to use ComplexIntervalFieldElements in sparse vectors and matrices.

Comparison of intervals is somewhat delicate ( for a real interval field 
element I:
        I != 0  holds iff 0 is not contained in I
        I == 0  holds iff I consists only of 0
        bool(I) holds iff I does not consist of 0 only,
so bool(I) is equivalent to not I == 0,
but I != 0 is not equivalent to not I == 0.). I therefore changed one occurrence
of "if  I != 0" in the construction of sparse vectors to "if I" in order to
avoid deletion of possibly non-zero entries:
        http://trac.sagemath.org/ticket/17101

Furthermore, ComplexIntervalFieldElements had another comparison semantics. I
think that RealIntervalFieldElements and ComplexIntervalFieldElements should
have the same behaviour. Therefore, I modified ComplexIntervalFieldElement in
        http://trac.sagemath.org/ticket/17105

On my machine, these changes did not cause any failing doctests (make
ptestlong); the buildbot for #17101 did fail, but I think that these failures
are unrelated and have been discussed on this list.

regards, CH

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to