| 1 | package PDL::LiteF; | ||||||||||
| 2 | |||||||||||
| 3 | 70 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 70 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | =head1 NAME | ||||||||||
| 7 | |||||||||||
| 8 | PDL::LiteF - minimum PDL module function loader | ||||||||||
| 9 | |||||||||||
| 10 | =head1 SYNOPSIS | ||||||||||
| 11 | |||||||||||
| 12 | use PDL::LiteF; # Is equivalent to the following: | ||||||||||
| 13 | |||||||||||
| 14 | use PDL::Core; | ||||||||||
| 15 | use PDL::Ops; | ||||||||||
| 16 | use PDL::Primitive; | ||||||||||
| 17 | use PDL::Ufunc; | ||||||||||
| 18 | use PDL::Basic; | ||||||||||
| 19 | use PDL::Slices; | ||||||||||
| 20 | use PDL::Bad; | ||||||||||
| 21 | |||||||||||
| 22 | =head1 DESCRIPTION | ||||||||||
| 23 | |||||||||||
| 24 | Loads the smallest possible set of modules for | ||||||||||
| 25 | PDL to work, making the functions available in | ||||||||||
| 26 | the current namespace. If you want something even | ||||||||||
| 27 | smaller see the L<PDL::Lite> module. | ||||||||||
| 28 | |||||||||||
| 29 | Note that unlike L<PDL>, this does I<not> load L<PDL::Math> or | ||||||||||
| 30 | L<PDL::MatrixOps>, nor any IO modules. | ||||||||||
| 31 | |||||||||||
| 32 | =cut | ||||||||||
| 33 | |||||||||||
| 34 | 63 | require PDL; # get the version | |||||||||
| 35 | |||||||||||
| 36 | 63 | our $VERSION = $PDL::VERSION; | |||||||||
| 37 | |||||||||||
| 38 | # Load the fundamental PDL packages, with imports | ||||||||||
| 39 | |||||||||||
| 40 | 70 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=2 SCAR=6.9
| |||||||||||
| 41 | 70 | my $pkg = (caller())[0]; | |||||||||
| 42 | 70 | ▶ | eval <<EOD; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 43 | package $pkg; | ||||||||||
| 44 | |||||||||||
| 45 | use PDL::Core; | ||||||||||
| 46 | use PDL::Ops; | ||||||||||
| 47 | use PDL::Primitive; | ||||||||||
| 48 | use PDL::Ufunc; | ||||||||||
| 49 | use PDL::Basic; | ||||||||||
| 50 | use PDL::Slices; | ||||||||||
| 51 | use PDL::Bad; | ||||||||||
| 52 | |||||||||||
| 53 | EOD | ||||||||||
| 54 | 70 | ▶ | die $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 55 | } | ||||||||||
| 56 | |||||||||||
| 57 | 63 | 1; | |||||||||