~ubuntu-branches/ubuntu/lucid/pdl/lucid

« back to all changes in this revision

Viewing changes to Basic/Lite.pm

  • Committer: Bazaar Package Importer
  • Author(s): Ben Gertzfield
  • Date: 2002-04-08 18:47:16 UTC
  • Revision ID: james.westby@ubuntu.com-20020408184716-0hf64dc96kin3htp
Tags: upstream-2.3.2
ImportĀ upstreamĀ versionĀ 2.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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, without importing an functions in
 
9
to the current namespace. This is the absolute
 
10
minimum set for PDL.
 
11
 
 
12
Though know functions are defined (apart from
 
13
a few always exported by Core) you can still
 
14
use method syntax, viz:
 
15
 
 
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
use PDL::Core '';
 
39
use PDL::Ops '';
 
40
use PDL::Primitive '';
 
41
use PDL::Ufunc '';
 
42
use PDL::Basic '';
 
43
use PDL::Slices '';
 
44
use PDL::Bad '';
 
45
use PDL::Version ;  # Doesn't export anything - no need for ''
 
46
use PDL::Lvalue;
 
47
 
 
48
$PDL::Lite::VERSION = $PDL::Version::VERSION;
 
49
 
 
50
;# Exit with OK status
 
51
 
 
52
1;