17 Sep 13:38
Re: Math.Matrix revisited
From: Felip Alàez Nadal <uu.nix.uu <at> gmail.com>
Subject: Re: Math.Matrix revisited
Newsgroups: gmane.comp.lang.pike.user
Date: 2008-09-17 11:38:03 GMT
Subject: Re: Math.Matrix revisited
Newsgroups: gmane.comp.lang.pike.user
Date: 2008-09-17 11:38:03 GMT
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.
--
Felip Alàez Nadal
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.
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
RSS Feed