Codebase list libpdl-ccs-perl / 0ee9fa4
Update upstream source from tag 'upstream/1.23.15' Update to upstream version '1.23.15' with Debian dir 76d8069ef098bdff453dba5ad1511b7ae7bf13c8 Bas Couwenberg 3 years ago
28 changed file(s) with 82 addition(s) and 48 deletion(s). Raw diff Collapse all Expand all
1111 use PDL::CCS::Ops;
1212 use strict;
1313
14 our $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
14 our $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
1515 our @ISA = ('PDL::Exporter');
1616 our @ccs_binops = (qw(plus minus mult divide modulo power),
1717 qw(gt ge lt le eq ne spaceship),
3131 'PDL_IND',
3232 'PDL_LL'
3333 ],
34 'INT_TYPE_MAX_IONAME' => 'ccs_indx',
3435 'USE_PDL_INDX' => 1
3536 );
3637
88 use PDL;
99 use strict;
1010
11 our $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
11 our $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
1212 our @ISA = ('PDL::Exporter');
1313 our @EXPORT_OK =
1414 (
88 use Carp qw(confess);
99 use strict;
1010
11 our $VERSION = '1.23.14';
11 our $VERSION = '1.23.15';
1212 our @ISA = ('PDL::Exporter');
1313 our @EXPORT_OK =
1414 (
99 use Carp qw(confess);
1010 use strict;
1111
12 our $VERSION = '1.23.14';
12 our $VERSION = '1.23.15';
1313 our @ISA = ('PDL::Exporter');
1414 our @EXPORT_OK =
1515 (
1111 use Carp qw(confess);
1212 use strict;
1313
14 our $VERSION = '1.23.14';
14 our $VERSION = '1.23.15';
1515 our @ISA = ('PDL::Exporter');
1616 our @EXPORT_OK = qw(ccs_writefraw ccs_readfraw ccs_mapfraw);
1717 our %EXPORT_TAGS =
1212 use Carp qw(confess);
1313 use strict;
1414
15 our $VERSION = '1.23.14';
15 our $VERSION = '1.23.15';
1616 our @ISA = ('PDL::Exporter');
1717 our @EXPORT_OK =
1818 (
1212 use Carp qw(confess);
1313 use strict;
1414
15 our $VERSION = '1.23.14';
15 our $VERSION = '1.23.15';
1616 our @ISA = ('PDL::Exporter');
1717 our @EXPORT_OK =
1818 (
1111 use Carp qw(confess);
1212 use strict;
1313
14 our $VERSION = '1.23.14';
14 our $VERSION = '1.23.15';
1515 our @ISA = ('PDL::Exporter');
1616 our @EXPORT_OK =
1717 (
1212
1313
1414
15 $PDL::CCS::MatrixOps::VERSION = 1.23.14;
15 $PDL::CCS::MatrixOps::VERSION = 1.23.15;
1616 @ISA = ( 'PDL::Exporter','DynaLoader' );
1717 push @PDL::Core::PP, __PACKAGE__;
1818 bootstrap PDL::CCS::MatrixOps $VERSION;
44 ##======================================================================
55
66 use PDL::VectorValued::Dev;
7 my $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
7 my $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
88 pp_setversion($VERSION);
99
1010 ##-- for integer-type keys
1818 *can = \&UNIVERSAL::can;
1919 }
2020
21 our $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
21 our $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
2222 our @ISA = qw();
2323 our %EXPORT_TAGS =
2424 (
1212
1313
1414
15 $PDL::CCS::Ops::VERSION = 1.23.14;
15 $PDL::CCS::Ops::VERSION = 1.23.15;
1616 @ISA = ( 'PDL::Exporter','DynaLoader' );
1717 push @PDL::Core::PP, __PACKAGE__;
1818 bootstrap PDL::CCS::Ops $VERSION;
44 ##======================================================================
55
66 use PDL::VectorValued::Dev;
7 my $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
7 my $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
88 pp_setversion($VERSION);
99
1010 ##------------------------------------------------------
1212
1313
1414
15 $PDL::CCS::Ufunc::VERSION = 1.23.14;
15 $PDL::CCS::Ufunc::VERSION = 1.23.15;
1616 @ISA = ( 'PDL::Exporter','DynaLoader' );
1717 push @PDL::Core::PP, __PACKAGE__;
1818 bootstrap PDL::CCS::Ufunc $VERSION;
44 ##======================================================================
55
66 use PDL::VectorValued::Dev;
7 my $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
7 my $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
88 pp_setversion($VERSION);
99
1010 ##------------------------------------------------------
384384 #GenericTypes => ['B','S','U','L',], ##-- 'Q', 'N'
385385 GenericTypes=>$PDL::CCS::Config::ccsConfig{INT_TYPE_CHRS},
386386 },
387 max_type_perl => 'ccs_indx',
387 max_type_perl => $PDL::CCS::Config::ccsConfig{INT_TYPE_MAX_IONAME},
388388 init_missingOut=>'missingOut = missingVal;',
389389 tmp_addmissing =>'if (nMissing > 0) { tmp = tmp | missingVal; }',
390390 tmp_addval =>'tmp = (tmp | $nzvalsIn(NnzIn=>nnzii));',
405405 #GenericTypes => ['B','S','U','L',], ##-- 'Q', 'N'
406406 GenericTypes=>$PDL::CCS::Config::ccsConfig{INT_TYPE_CHRS},
407407 },
408 max_type_perl => 'ccs_indx',
408 max_type_perl => $PDL::CCS::Config::ccsConfig{INT_TYPE_MAX_IONAME},
409409 init_missingOut=>'missingOut = missingVal;',
410410 tmp_addmissing =>'if (nMissing > 0) { tmp &= missingVal; }',
411411 tmp_addval =>'tmp = (tmp & $nzvalsIn(NnzIn=>nnzii));',
492492 ccs_accum_def('nbad', 'number of bad values',
493493 extra =>{HandleBad=>1},
494494 out_type =>'int+',
495 max_type_perl =>'ccs_indx',
495 max_type_perl =>'ccs_indx', #$PDL::CCS::Config::ccsConfig{INT_TYPE_MAX_IONAME},
496 #
496497 #init_missingOut=>'missingOut=$N();',
497498 init_missingOut=>'missingOut=missingVal;', ##-- not really right, but compatible
498499 ($PDL::Bad::Status
519520 ccs_accum_def('ngood', 'number of good values',
520521 extra =>{HandleBad=>1},
521522 out_type =>'int+',
522 max_type_perl =>'ccs_indx',
523 max_type_perl =>'ccs_indx', #$PDL::CCS::Config::ccsConfig{INT_TYPE_MAX_IONAME},
523524 #init_missingOut=>'missingOut=$N();',
524525 init_missingOut=>'missingOut=missingVal;', ##-- not really right, but compatible
525526 ($PDL::Bad::Status
545546 ## Operations: Accumulators (Ufuncs): nnz
546547 ccs_accum_def('nnz', 'number of non-zero values',
547548 out_type =>'int+',
548 max_type_perl =>'ccs_indx',
549 max_type_perl =>$PDL::CCS::Config::ccsConfig{INT_TYPE_MAX_IONAME},
549550 #init_missingOut=>'missingOut=$N();',
550551 init_missingOut=>'missingOut=missingVal;', ##-- not really right, but compatible
551552 tmp_addmissing =>'if (nMissing > 0 && missingVal != 0) { tmp += nMissing; }',
1212
1313
1414
15 $PDL::CCS::Utils::VERSION = 1.23.14;
15 $PDL::CCS::Utils::VERSION = 1.23.15;
1616 @ISA = ( 'PDL::Exporter','DynaLoader' );
1717 push @PDL::Core::PP, __PACKAGE__;
1818 bootstrap PDL::CCS::Utils $VERSION;
44 ##======================================================================
55
66 use PDL::VectorValued::Dev;
7 my $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
7 my $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
88 pp_setversion($VERSION);
99
1010 ##------------------------------------------------------
22 ## Description: set version for PDL::CCS
33
44 package PDL::CCS::Version;
5 our $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
5 our $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
66
77 1; ##-- make perl happy
6363 ##-- check output type
6464 SKIP: {
6565 skip("${label}:type - only for PDL >= v2.014",1) if (!$HAVE_PDL_2_014);
66
67 # bandover,borover type-checks fail again as of PDL v2.039
68 # + see http://www.cpantesters.org/cpan/report/9ea0e2bc-a3e5-11eb-8917-5f9a624ac675
69 # # Failed test 'bandover:missing=0:type'
70 # # at /local/home/moocow/work/diss/perl/public/PDL-CCS/t/common.plt line 11.
71 # # got: 'indx'
72 # # expected: 'longlong'
73 skip("${label}:type - not b*over in PDL >= v2.039 ",1) if ($HAVE_PDL_2_039 && $ufunc_name =~ /^b(?:and|or)over$/);
7466 isok("${label}:type", $ccs_rc->type, $dense_rc->type);
7567 }
7668
1414 use PDL::CCS::IO::FastRaw;
1515 use strict;
1616
17 our $VERSION = '1.23.14'; ##-- update with perl-reversion from Perl::Version module
17 our $VERSION = '1.23.15'; ##-- update with perl-reversion from Perl::Version module
1818 our @ISA = ('PDL::Exporter');
1919 our @EXPORT_OK =
2020 (
0 v1.23.15 Tue, 27 Apr 2021 13:13:20 +0200 moocow
1 + added new PDL-2.039 integer-type listing code to Config.PL
2 + fixed downcasting in b*over methods be PDL-compatible (problem was 'max_int_type' option to ccs_accum_def())
3 + re-enabled b*over tests skipped in v1.23.14
4 + added Makefile.PL META_MERGE section pointing to new public github repo moocow-the-bovine/PDL-CCS
5 - github repo is just a fork of read-only ZDL git mirror of upstream SVN repository
6
07 v1.23.14 Mon, 26 Apr 2021 14:58:50 +0200 moocow
18 + skip some b(and|or)over type-check tests to avoid test failures for PDL >= v2.039
29 - CCS implementations are returning 'indx' type here, dense PDL versions are giving 'longlong' for input type=double
4444 $cconfig{INDX_TYPEDEF} = "typedef $cconfig{INDX_CTYPE} CCS_Indx; /**< typedef for CCS indices */\n";
4545 $cconfig{INDX_FUNCDEF} = "*ccs_indx = \\&PDL::$cconfig{INDX_FUNC}; ##-- typecasting for CCS indices\n";
4646
47 ##-- figure out what integer types we have available
4748 require PDL::Types;
48 $cconfig{INT_TYPE_KEYS} = [map {$_->{sym}}
49 sort {$a->{numval} <=> $b->{numval}}
50 grep {$_->{ppsym} =~ /^(?:[BSULQN]|LL|US)$/}
51 values %PDL::Types::typehash
52 ];
53 $cconfig{INT_TYPE_CHRS} = [map {$_->{ppsym}} @PDL::Types::typehash{ @{$cconfig{INT_TYPE_KEYS}} }];
49 if (version->parse($PDL::VERSION) >= version->parse("2.039")) {
50 ##-- integer types for b*over &c, PDL >= v2.039: elegant (and more correct)
51 local $, = ' ';
52 $cconfig{INT_TYPE_KEYS} = [map {$_->sym} grep {$_->integer} PDL::Types::types()];
53 $cconfig{INT_TYPE_CHRS} = [map {$_->ppsym} grep {$_->integer} PDL::Types::types()];
54 $cconfig{INT_TYPE_MAX_IONAME} = (grep {$_->integer} PDL::Types::types())[-1]->ioname;
55 } else {
56 ##-- integer types for b*over &c, PDL < v2.039: functional (and mostly equivalent)
57 $cconfig{INT_TYPE_KEYS} = [map {$_->{sym}}
58 sort {$a->{numval} <=> $b->{numval}}
59 grep {$_->{ppsym} =~ /^(?:[BSULQN]|LL|US)$/}
60 values %PDL::Types::typehash
61 ];
62 $cconfig{INT_TYPE_CHRS} = [map {$_->{ppsym}} @PDL::Types::typehash{ @{$cconfig{INT_TYPE_KEYS}} }];
63
64 ##-- PDL < v2.039 downcasts to 'indx' if available (but probably should use 'longlong' if it could)
65 #$cconfig{INT_TYPE_MAX_IONAME} = $PDL::Types::typehash{$cconfig{INT_TYPE_KEYS}[-1]}{ioname}; ##-- -> longlong
66 $cconfig{INT_TYPE_MAX_IONAME} = 'ccs_indx';
67 }
5468
5569 ##-- save cache file
5670 open(CONFIGPM,">./CCS/Config.pm")
4444 }
4545 },
4646 "release_status" : "stable",
47 "version" : "v1.23.14",
47 "version" : "v1.23.15",
48 "x_repository" : {
49 "type" : "git",
50 "url" : "git://github.com/moocow-the-bovine/PDL-CCS.git",
51 "web" : "https://github.com/moocow-the-bovine/PDL-CCS"
52 },
4853 "x_serialization_backend" : "JSON::PP version 4.02"
4954 }
2626 PDL: '0'
2727 PDL::VectorValued: v1.0.4
2828 Test::More: '0'
29 version: v1.23.14
29 version: v1.23.15
30 x_repository:
31 type: git
32 url: git://github.com/moocow-the-bovine/PDL-CCS.git
33 web: https://github.com/moocow-the-bovine/PDL-CCS
3034 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
4040 'ExtUtils::MakeMaker'=>0,
4141 'Data::Dumper' => 0,
4242 },
43 ##
44 META_MERGE => {
45 "meta-spec" => { version => 2 },
46 repository => {
47 url => 'git://github.com/moocow-the-bovine/PDL-CCS.git',
48 type => 'git',
49 web => 'https://github.com/moocow-the-bovine/PDL-CCS',
50 },
51 },
4352 );
4453
4554 ##-- avoid applying 'processPL' rules to 'Config.PL'
1111
1212 =item * PDL E<gt>= v2.4.2
1313
14 Tested version(s) 2.4.2, 2.4.3, 2.4.7_001, 2.4.9_015.
14 Tested version(s) 2.4.2, 2.4.3, 2.4.7_001, 2.4.9_015, 2.4.10, 2.019, 2.039
1515
1616 =item * PDL::VectorValued E<gt>= v0.07001
1717
3131 Build this module as you would any perl module, by doing something
3232 akin to the following:
3333
34 gzip -dc distname-XX.YY.tar.gz | tar -xof -
35 cd distname-XX.YY/
34 gzip -dc PDL-CCS-XYZ.tar.gz | tar -xof -
35 cd PDL-CCS-XYZ/
3636 perl Makefile.PL
3737 make
3838 make test # optional
4646
4747 =head1 COPYRIGHT
4848
49 Copyright (c) 2005-2018 by Bryan Jurish. All rights reserved.
49 Copyright (c) 2005-2021 by Bryan Jurish. All rights reserved.
5050
5151 This package is free software, and entirely without warranty.
5252 You may redistribute it and/or modify it under the same terms
66 REQUIREMENTS
77 * PDL >= v2.4.2
88
9 Tested version(s) 2.4.2, 2.4.3, 2.4.7_001, 2.4.9_015.
9 Tested version(s) 2.4.2, 2.4.3, 2.4.7_001, 2.4.9_015, 2.4.10, 2.019,
10 2.039
1011
1112 * PDL::VectorValued >= v0.07001
1213
2223 Build this module as you would any perl module, by doing something akin
2324 to the following:
2425
25 gzip -dc distname-XX.YY.tar.gz | tar -xof -
26 cd distname-XX.YY/
26 gzip -dc PDL-CCS-XYZ.tar.gz | tar -xof -
27 cd PDL-CCS-XYZ/
2728 perl Makefile.PL
2829 make
2930 make test # optional
3536 Bryan Jurish <moocow@cpan.org>
3637
3738 COPYRIGHT
38 Copyright (c) 2005-2018 by Bryan Jurish. All rights reserved.
39 Copyright (c) 2005-2021 by Bryan Jurish. All rights reserved.
3940
4041 This package is free software, and entirely without warranty. You may
4142 redistribute it and/or modify it under the same terms as Perl itself.