forked from tbekolay/jnumeric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
148 lines (112 loc) · 4.19 KB
/
README.txt
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
WHAT IS JNUMERIC?
-----------------
JNumeric provides the functionality for JPython that Numeric does for
CPython. As the Numeric documentation states, Numeric is "...a
collection of extension modules to provide high-performance
multidimensional numeric arrays to the Python programming language."
JNumeric provides the same functionality as the core of Numeric
module and aims to provide akk of the standard extensions to
Numeric modules (FFT, LinearAlgebra, RandomArray).
BUILDING
---------
Go to src and type "make". The jar file should appear in the
release directory.
INSTALLATION (Hassan Siddiqui)
------------------------------
(This was an installation procedure suggested by Hassan.)
Install jython, download jnumeric-XXX.jar, and add
jython-XXX.jar to your $CLASSPATH'.
You can then use JNumeric in jython in exactly the same way as you would use Numerical
Python under Python (but check the DIFFERENCES.txt file).
INSTALLATION (Recent-Linux with Java2 already installed)
-------------------------------------------------------
First, make sure you get recent version from Github:
> fill in
Next, go build it!
> ls
jnumeric
> cd jnumeric
> ls
CVS jnumeric
> cd jnumeric
> ls
CHANGES.txt CVS lib README.txt src
classes DIFFERENCES.txt LICENSE.txt release tests
> cd src
> make
javac -classpath ../lib/jython.jar -d ../classes FFT.java Numeric.java
JNumeric/BinaryUfunc.java JNumeric/JN_FFT.java JNumeric/Umath.java
JNumeric/JNumeric.java JNumeric/PyMultiarray.java JNumeric/UnaryUfunc.java
JNumeric/GeneralUfunc.java JNumeric/KeywordFunction.java
JNumeric/PyMultiarrayPrinter.java
cd ../classes; jar cf ../release/jnumeric-0.1a3.jar Numeric.class FFT.class
JNumeric
Next, install it!
> cd ..
> cd lib
> su
Password:
> which java
/opt/IBMJava2-131/bin/java
> cp jython.jar /opt/IBMJava2-131/jre/lib/ext
> cd ..
> cd release
> ls
CVS jnumeric-0.1a3.jar
> cp jnumeric-0.1a3.jar /opt/IBMJava2-131/jre/lib/ext
> exit
exit
Next test it!
> java org.python.util.jython
*sys-package-mgr*: processing new jar, '/opt/IBMJava2-131/jre/lib/rt.jar'
*sys-package-mgr*: processing new jar, '/opt/IBMJava2-131/jre/lib/i18n.jar'
*sys-package-mgr*: processing new jar,
'/opt/IBMJava2-131/jre/lib/ext/jnumeric-0.1a3.jar'
*sys-package-mgr*: processing new jar,
'/opt/IBMJava2-131/jre/lib/ext/ibmjcaprovider.jar'
*sys-package-mgr*: processing new jar,
'/opt/IBMJava2-131/jre/lib/ext/indicim.jar'
*sys-package-mgr*: processing new jar,
'/opt/IBMJava2-131/jre/lib/ext/jython.jar'
Jython 2.1 on java1.3.1 (JIT: jitc)
>>> from Numeric import *
>>> a = array(10)
>>> b = array( [[1,0],[0,1]])
>>> print b
[[1 0]
[0 1]]
If you made it that far, you are ok!
OBTAINING JNUMERIC
------------------
Our home page is found at
http://jnumerical.sourceforge.net
Also, please see the file DIFFERENCES.txt for a list of intentional
differences between JNumeric and CNumeric.
I highly recomend that you also download at JPython1.1b1 or later.
Earlier versions of JPython have a fairly serious bug in getslice.
WHENCE FROM HERE?
-----------------
In addition to tracking down any bugs, here are a couple of things
that I would like to do (or have done) with JNumeric at some point:
* Add the standard extensions (FFT, LinearAlgebra, and RandomArray).
* Cleaned up ufunc interface.
* Other assorted code cleanup.
I would realy love FFT, LinearAlgebra, or RandomArray code -- (if you're
interested in working on LinearAlgebrea let me know I have some preliminary
ideas for this).
COPYING
-------
All files in this distribution are Copyright (c) 1998 , 1989 Timothy
Hochberg except where indicated otherwise in the source (includes
work by Daniel Lemire and Frank Gibbons as of July 2002). Do not
redistribute without an unmodified copy of this file. This code
provided in the hope that it will be useful, however it comes with no
warranty of any kind. See LICENCE.txt.
Note: Some recent code might be copyrighted by D. Lemire or D. Bagnell
but given the licensing scheme, copyright disputes are irrelevant.
Enjoy!
____
Current maintainer: Trevor Bekolay (tbekolay@gmail.com)
Previous maintainer: Daniel Lemire (lemire@ondelette.com)
Previous previous maintainer and founder: Tim Hochberg
Developers: Frank Gibbons, Drew Bagnell