From ff5e828d3a3db7edeeea6a550dabbb2de37aa54a Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Mon, 29 Dec 2008 15:42:07 -0500 Subject: [PATCH] Fix the det method in Matrix to use the real signum, not the value to see if the function worked properly --- pod/Matrix.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pod/Matrix.pod b/pod/Matrix.pod index 4d01721..f05163c 100644 --- a/pod/Matrix.pod +++ b/pod/Matrix.pod @@ -438,7 +438,7 @@ sub det($) my $p = Math::GSL::Permutation->new( $self->rows ); my $LU = $self->copy; - my $s = gsl_linalg_LU_decomp($LU->raw, $p->raw); + my ($result, $s) = gsl_linalg_LU_decomp($LU->raw, $p->raw); return gsl_linalg_LU_det($LU->raw, $s ); } -- 2.11.4.GIT