|
230 | 230 | # bring all the symbols in so folks can import them from |
231 | 231 | # pylab in one fell swoop |
232 | 232 |
|
233 | | -from numpy.oldnumeric import array, zeros, shape, rank, size, fromstring,\ |
234 | | - take, put, putmask, reshape, repeat, choose, searchsorted,\ |
235 | | - cumsum, product, cumproduct, alltrue, sometrue, allclose,\ |
236 | | - arrayrange, arange, asarray, convolve, swapaxes, concatenate,\ |
237 | | - transpose, sort, argsort, argmax, argmin, innerproduct, dot,\ |
238 | | - outerproduct, resize, indices, fromfunction, diagonal, trace,\ |
239 | | - ravel, nonzero, shape, where, compress, clip, zeros, ones,\ |
240 | | - identity, add, logical_or, exp, subtract, logical_xor,\ |
241 | | - log, multiply, logical_not, log10, divide, maximum, sin,\ |
242 | | - minimum, sinh, conjugate, bitwise_and, sqrt, power, bitwise_or,\ |
243 | | - tan, absolute, bitwise_xor, tanh, negative, ceil, greater, fabs,\ |
244 | | - greater_equal, floor, less, arccos, arctan2, less_equal, arcsin,\ |
245 | | - fmod, equal, arctan, hypot, not_equal, cos, around, logical_and,\ |
246 | | - cosh, arccosh, arcsinh, arctanh, cross_correlate,\ |
247 | | - pi, ArrayType, matrixmultiply |
248 | | - |
249 | | -from numpy.oldnumeric import sum as asum |
250 | | - |
251 | | -from numpy.oldnumeric import Int8, UInt8, Int16, UInt16, Int32, UInt32, Float32,\ |
252 | | - Float64, Complex32, Complex64, Float, Int, Complex |
253 | | - |
254 | | -from numpy.fft import fft # Why just fft? |
255 | | -from numpy.linalg import inv as inverse |
256 | | -from numpy.oldnumeric.linear_algebra import eigenvectors |
257 | | - # not quite the same as linalg.eig |
258 | | - |
259 | | - |
260 | | -pymin, pymax = min, max |
261 | | -from numpy.oldnumeric.mlab import * |
262 | | -min, max = pymin, pymax |
263 | | -from numpy import amin, amax |
264 | | - |
265 | 233 | from matplotlib.mlab import window_hanning, window_none,\ |
266 | 234 | conv, detrend, detrend_mean, detrend_none, detrend_linear,\ |
267 | 235 | polyfit, polyval, entropy, normpdf,\ |
|
271 | 239 | diagonal_matrix, base_repr, binary_repr, log2, ispower2,\ |
272 | 240 | bivariate_normal, load, save, stineman_interp |
273 | 241 |
|
274 | | -from numpy import meshgrid, linspace, logspace, corrcoef, vander |
| 242 | +from numpy import * |
| 243 | +from numpy.fft import * |
| 244 | +from numpy.random import * |
| 245 | +from numpy.linalg import * |
| 246 | + |
| 247 | +# old style--if True, override standard numpy with oldnumeric |
| 248 | +if False: |
| 249 | + from numpy.oldnumeric import array, zeros, shape, rank, size, fromstring,\ |
| 250 | + take, put, putmask, reshape, repeat, choose, searchsorted,\ |
| 251 | + cumsum, product, cumproduct, alltrue, sometrue, allclose,\ |
| 252 | + arrayrange, arange, asarray, convolve, swapaxes, concatenate,\ |
| 253 | + transpose, sort, argsort, argmax, argmin, innerproduct, dot,\ |
| 254 | + outerproduct, resize, indices, fromfunction, diagonal, trace,\ |
| 255 | + ravel, nonzero, shape, where, compress, clip, zeros, ones,\ |
| 256 | + identity, add, logical_or, exp, subtract, logical_xor,\ |
| 257 | + log, multiply, logical_not, log10, divide, maximum, sin,\ |
| 258 | + minimum, sinh, conjugate, bitwise_and, sqrt, power, bitwise_or,\ |
| 259 | + tan, absolute, bitwise_xor, tanh, negative, ceil, greater, fabs,\ |
| 260 | + greater_equal, floor, less, arccos, arctan2, less_equal, arcsin,\ |
| 261 | + fmod, equal, arctan, hypot, not_equal, cos, around, logical_and,\ |
| 262 | + cosh, arccosh, arcsinh, arctanh, cross_correlate,\ |
| 263 | + pi, ArrayType, matrixmultiply |
| 264 | + |
| 265 | + from numpy.oldnumeric import sum as asum |
| 266 | + |
| 267 | + from numpy.oldnumeric import Int8, UInt8, Int16, UInt16, Int32, UInt32, Float32,\ |
| 268 | + Float64, Complex32, Complex64, Float, Int, Complex |
| 269 | + |
| 270 | + pymin, pymax = min, max |
| 271 | + from numpy.oldnumeric.mlab import * |
| 272 | + min, max = pymin, pymax |
| 273 | + from numpy import amin, amax |
| 274 | + from numpy.oldnumeric.linear_algebra import eigenvectors |
| 275 | + # not quite the same as linalg.eig |
| 276 | + from numpy.linalg import inv as inverse |
275 | 277 |
|
276 | | -""" |
277 | | -problem syms |
278 | | - - cross_correlate - getting from convolve |
279 | | -average |
280 | | -sarray |
281 | | -dump |
282 | | -dumps |
283 | | -load |
284 | | -loads |
285 | | -divide_safe |
286 | | -invert |
287 | | -left_shift |
288 | | -right_shift |
289 | | -sign |
290 | | -""" |
291 | 278 |
|
292 | 279 | from matplotlib.pyplot import * |
293 | 280 |
|
|
0 commit comments