blib/lib/PDL/Lite.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 41 / 41 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/PDL/Fit/Gaussian.pm ↑ Summary blib/lib/PDL/Math.pm »
1 =head1 NAME
2  
3 PDL::Lite - minimum PDL module OO loader
4  
5 =head1 DESCRIPTION
6  
7 Loads the smallest possible set of modules for
8 PDL to work, importing only those functions always defined by
9 L<PDL::Core|PDL::Core>) into the current namespace
10 (C<pdl>, C<piddle>, C<barf> and C<null>).
11 This is the absolute minimum set for PDL.
12  
13 Access to other functions is by method syntax, viz:
14  
15 $x = PDL->pdl(1, 2, 3, 4, 5);
16 $x->wibble(42);
17  
18 =head1 SYNOPSIS
19  
20 use PDL::Lite; # Is equivalent to the following:
21  
22 use PDL::Core '';
23 use PDL::Ops '';
24 use PDL::Primitive '';
25 use PDL::Ufunc '';
26 use PDL::Basic '';
27 use PDL::Slices '';
28 use PDL::Bad '';
29 use PDL::Version;
30 use PDL::Lvalue;
31  
32 =cut
33  
34 # Load the fundamental PDL packages, no imports
35 # Because there are no imports, we do not need
36 # the usual 'eval in the user's namespace' routine.
37  
38 5 ▶use PDL::Core '';
Subroutine BEGIN: called CC=1 SCAR=0.0
39 5 ▶use PDL::Ops '';
Subroutine BEGIN: called CC=1 SCAR=0.0
40 5 ▶use PDL::Primitive '';
Subroutine BEGIN: called CC=1 SCAR=0.0
41 5 ▶use PDL::Ufunc '';
Subroutine BEGIN: called CC=1 SCAR=0.0
42 5 ▶use PDL::Basic '';
Subroutine BEGIN: called CC=1 SCAR=0.0
43 5 ▶use PDL::Slices '';
Subroutine BEGIN: called CC=1 SCAR=0.0
44 5 ▶use PDL::Bad '';
Subroutine BEGIN: called CC=1 SCAR=0.0
45 5 ▶use PDL::Version ; # Doesn't export anything - no need for ''
Subroutine BEGIN: called CC=1 SCAR=0.0
46 5 ▶use PDL::Lvalue;
Subroutine BEGIN: called CC=1 SCAR=0.0
47  
48 package PDL::Lite;
49 5 $VERSION = $PDL::Version::VERSION;
50  
51 5 @ISA = qw( PDL::Exporter );
52  
53 5 @EXPORT = qw( piddle pdl null barf ); # Only stuff always exported!
54 5 our %EXPORT_TAGS = (
55 Func => [@EXPORT],
56 );
57  
58  
59 ;# Exit with OK status
60  
61 5 1;
« blib/lib/PDL/Fit/Gaussian.pm ↑ Summary blib/lib/PDL/Math.pm »