bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] ⍋ on complex data


From: Elias Mårtenson
Subject: Re: [Bug-apl] ⍋ on complex data
Date: Sat, 5 Mar 2016 22:46:07 +0800

On 5 March 2016 at 20:12, Alexey Veretennikov <address@hidden> wrote:

Complex numbers are incomparable in mathematical sense. In Dyalog APL
this leads to DOMAIN ERROR however.

This is the intended behaviour in GNU APL as well. This can be seen in the function Bif_F12_SORT::sort():

    loop(bz, len_BZ)
       {
         array[bz] = &B->get_ravel(bz*comp_len);
         if (array[bz]->is_complex_cell())
            return Token(TOK_ERROR, E_DOMAIN_ERROR);
       }

I believe the problem is that this function returns a Token instead of directly raising DOMAIN ERROR.

Regards,
Elias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]