Hi Charles (CC: libsingular-devel),
On Friday 02 Nov 2012, you wrote:
> Hi Martin,
>
> I am trying to a) understand and b) fix
>
http://trac.sagemath.org/sage_trac/ticket/13671
>
> It seems that things are going awfully wrong in libsingular (I can't
> explain the non-deterministic behavior of this function otherwise).
From the ticket it doesn't look non-deterministic. It returns (0,0,...,0)
instead of raising an error, but (0,0,....,0) can only be true if test == 0.
What am I missing.
> However, the singular manual advertises that idLift should somehow return
> a warning if the "lifted" sub-ideal is not contain in the (larger) ideal.
> I would like, in this case, to throw an exception. The thing is that I
> don't know how to catch the warning. Where should I look at ?
I see idLift calls:
WerrorS("2nd module does not lie in the first");
If I recall correctly, this calls WerrorS_callback which we fill with:
cdef void libsingular_error_callback(const_char_ptr s):
_s = s
error_messages.append(_s)
Hence, error_messages should contain the error message afterwards.
Cheers,
Martin
--
name: Martin Albrecht
_pgp:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www:
http://martinralbrecht.wordpress.com/
_jab:
martinr...@jabber.ccc.de