in reply to Re^2: Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to?
in thread Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to?
The first thing to try is to run that as a C program and see if the same issue arises.use strict; use warnings; use feature 'say'; use Alien::GSL; use Math::GSL; use Math::GSL::SparseMatrix ':all'; my $m = gsl_spmatrix_alloc( 1, 1 ); my $v; #$v = 3 + (1 << 32); # no problem with this value #$v = 2 + (1 << 32); # no problem with this value #$v = 0 + (1 << 32); # no problem with this value $v = 1 + (1 << 32); # blows up, but only if # gsl_spmatrix_get($m, $v, 0) # is called. die if gsl_spmatrix_set( $m, 1, 0, 1.5 ); say gsl_spmatrix_get($m, 1, 0); say gsl_spmatrix_nnz( $m ); die if gsl_spmatrix_set( $m, $v, 0, 1.75 ); say gsl_spmatrix_get($m, $v, 0); # comment out to avoid blow up # when $v is 1 + (1 << 32). # But still gives wrong result # (for that value only). say gsl_spmatrix_nnz( $m );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Math::GSL::SparseMatrix is broken if installed on latest 5.32.1.1 "Strawberry Perl PDL edition", whom to report this issue to?
by syphilis (Archbishop) on Nov 11, 2022 at 05:25 UTC | |
by syphilis (Archbishop) on Nov 12, 2022 at 14:20 UTC | |
by syphilis (Archbishop) on Nov 13, 2022 at 12:58 UTC | |
|