Felip Alàez Nadal | 17 Sep 13:38

Re: Math.Matrix revisited

I'm sorry. I forgot to send this mail to pike too:

Here you have an usable matrix_code.h file. The lu decomposition is ok there.

I've noticed what seems to be a bug with pike 7.8. It's an issue with math_error (or error_math, I don't remember It well) at the C code. Well, when a math_error is signaled, pike shows what I believe that is a malformed error message. As an example:

Math.Matrix a = Math.Matrix( ({ ({ 1.2 , 3.5 }) , ({ 2.4 , 5.7 }) }) ) ;
> a->norm() ;
Cannot compute norm of non 1xn or nx1 matricesUnknown program: norm()
src/modules/Math/math_module.
c:90:
    Math.Matrix( ({ ({    1.2,    3.5}),                                     
                    ({    2.4,    5.7}) }) )->norm()                         
HilfeInput:1: HilfeInput()->___HilfeWrapper()

It's obvius that norm is a known method for class Math.Matrix, as a->norm() is called and It signals an error correctly. But I believe that the rest of the message It's wrong.



--
Felip Alàez Nadal
Attachment (matrix_code.h): application/octet-stream, 26 KiB
Martin Stjernholm | 17 Sep 14:13
Favicon

Re: Math.Matrix revisited

"Felip Alàez Nadal" <uu.nix.uu <at> gmail.com> wrote:

> Math.Matrix a = Math.Matrix( ({ ({ 1.2 , 3.5 }) , ({ 2.4 , 5.7 }) }) ) ;
>> a->norm() ;
> Cannot compute norm of non 1xn or nx1 matricesUnknown program: norm()
/.../
> It's obvius that norm is a known method for class Math.Matrix, as a->norm()
> is called and It signals an error correctly. But I believe that the rest of
> the message It's wrong.

There's a newline missing at the end of the error message that
apparently makes you misinterpret it (the "Unknown program" bit comes
from that the backtrace formatter couldn't find the name of the
program that contains norm()). I've now fixed newlines for several
error messages in matrix_code.h. Thanks.

As for your math patches, I hope someone else more familiar with that
area will review your contribution so that we get it in. Note however
that 7.8 is in strict feature freeze, so it's unlikely that it'll get
into that version.

Re: Math.Matrix revisited

What is the delay for 7.8 release right now?


Gmane