-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
80 lines (52 loc) · 1.33 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
The file is the README for Integer::Partition version 0.05
INSTALLATION
perl Makefile.PL
make
make test
make install
TESTING
This module requires the following module for thorough testing:
Test::More
The following test modules are optional:
Test::Exception
Test::Pod
Test::Pod::Coverage
It can also make use of Devel::Cover if available.
UNINSTALLATION
This is a pure-Perl module. The following one-liner should print
out the canonical path of the file:
perl -MInteger::Partition -le 'print $INC{"Integer/Partition.pm"}'
Just delete this file. There is also the question of the man page.
Finding that is left as an exercise to the reader.
USAGE
use Integer::Partition;
my $i = Integer::Partition->new(6);
while (my $p = $i->next) {
print join( ' ', @$p ), $/;
}
# prints:
6
5 1
4 2
4 1 1
3 3
3 2 1
3 1 1 1
2 2 2
2 2 1 1
2 1 1 1 1
1 1 1 1 1 1
IMPLEMENTATION
This module implements the Zoghbi and Stojmenovic ZS1 and ZS2
algorithms for generating integer partitions. See
http://www.site.uottawa.ca/~ivan/F49-int-part.pdf for more information.
STATUS
This module is under active development.
AUTHOR
David Landgren
COPYRIGHT
This module is copyright (C) David Landgren 2007-2013.
All rights reserved.
LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.