Module Num
source code
This is a compatibility module, allowing python to work with either
scipy, Numeric, or numarray. It tries to import them, in that order, only
reporting an error if none are available.
Note that this does not pretend to solve all compatibility problems;
it just tries importing all three, so you can only count on the lowest
common denominator.
|
NewAxis = None
hash(x)
|
|
ALLOW_THREADS = 1
|
|
BUFSIZE = 10000
|
|
CLIP = 0
|
|
ERR_CALL = 3
|
|
ERR_DEFAULT = 0
|
|
ERR_DEFAULT2 = 2084
|
|
ERR_IGNORE = 0
|
|
ERR_LOG = 5
|
|
ERR_PRINT = 4
|
|
ERR_RAISE = 2
|
|
ERR_WARN = 1
|
|
FLOATING_POINT_SUPPORT = 1
|
|
FPE_DIVIDEBYZERO = 1
|
|
FPE_INVALID = 8
|
|
FPE_OVERFLOW = 2
|
|
FPE_UNDERFLOW = 4
|
|
False_ = False
|
|
Inf = inf
|
|
Infinity = inf
|
|
MAXDIMS = 32
|
|
NAN = nan
|
|
NINF = -inf
|
|
NZERO = -0.0
|
|
NaN = nan
|
|
PINF = inf
|
|
PZERO = 0.0
|
|
RAISE = 2
|
|
SHIFT_DIVIDEBYZERO = 0
|
|
SHIFT_INVALID = 9
|
|
SHIFT_OVERFLOW = 3
|
|
SHIFT_UNDERFLOW = 6
|
|
ScalarType = ( <type 'int'>, <type 'float'>, <type 'complex'>, ...
|
|
True_ = True
|
|
UFUNC_BUFSIZE_DEFAULT = 10000
|
|
UFUNC_PYVALS_NAME = ' UFUNC_PYVALS '
|
|
WRAP = 1
|
|
__package__ = ' gmisclib '
|
|
absolute = <ufunc 'absolute'>
|
|
add = <ufunc 'add'>
|
|
arccos = <ufunc 'arccos'>
|
|
arccosh = <ufunc 'arccosh'>
|
|
arcsin = <ufunc 'arcsin'>
|
|
arcsinh = <ufunc 'arcsinh'>
|
|
arctan = <ufunc 'arctan'>
|
|
arctan2 = <ufunc 'arctan2'>
|
|
arctanh = <ufunc 'arctanh'>
|
|
bitwise_and = <ufunc 'bitwise_and'>
|
|
bitwise_not = <ufunc 'invert'>
|
|
bitwise_or = <ufunc 'bitwise_or'>
|
|
bitwise_xor = <ufunc 'bitwise_xor'>
|
|
c_ = <numpy.lib.index_tricks.CClass object at 0x2cc45d0>
|
|
cast = {<type 'numpy.complex128'>: <function <lambda> at 0x2b1...
|
|
ceil = <ufunc 'ceil'>
|
|
conj = <ufunc 'conjugate'>
|
|
conjugate = <ufunc 'conjugate'>
|
|
copysign = <ufunc 'copysign'>
|
|
cos = <ufunc 'cos'>
|
|
cosh = <ufunc 'cosh'>
|
|
deg2rad = <ufunc 'deg2rad'>
|
|
degrees = <ufunc 'degrees'>
|
|
divide = <ufunc 'divide'>
|
|
e = 2.71828182846
|
|
equal = <ufunc 'equal'>
|
|
exp = <ufunc 'exp'>
|
|
exp2 = <ufunc 'exp2'>
|
|
expm1 = <ufunc 'expm1'>
|
|
fabs = <ufunc 'fabs'>
|
|
floor = <ufunc 'floor'>
|
|
floor_divide = <ufunc 'floor_divide'>
|
|
fmax = <ufunc 'fmax'>
|
|
fmin = <ufunc 'fmin'>
|
|
fmod = <ufunc 'fmod'>
|
|
frexp = <ufunc 'frexp'>
|
|
greater = <ufunc 'greater'>
|
|
greater_equal = <ufunc 'greater_equal'>
|
|
hypot = <ufunc 'hypot'>
|
|
index_exp = <numpy.lib.index_tricks.IndexExpression object at ...
|
|
inf = inf
|
|
infty = inf
|
|
invert = <ufunc 'invert'>
|
|
isfinite = <ufunc 'isfinite'>
|
|
isinf = <ufunc 'isinf'>
|
|
isnan = <ufunc 'isnan'>
|
|
ldexp = <ufunc 'ldexp'>
|
|
left_shift = <ufunc 'left_shift'>
|
|
less = <ufunc 'less'>
|
|
less_equal = <ufunc 'less_equal'>
|
|
little_endian = True
|
|
log = <ufunc 'log'>
|
|
log10 = <ufunc 'log10'>
|
|
log1p = <ufunc 'log1p'>
|
|
log2 = <ufunc 'log2'>
|
|
logaddexp = <ufunc 'logaddexp'>
|
|
logaddexp2 = <ufunc 'logaddexp2'>
|
|
logical_and = <ufunc 'logical_and'>
|
|
logical_not = <ufunc 'logical_not'>
|
|
logical_or = <ufunc 'logical_or'>
|
|
logical_xor = <ufunc 'logical_xor'>
|
|
maximum = <ufunc 'maximum'>
|
|
mgrid = <numpy.lib.index_tricks.nd_grid object at 0x2cc4510>
|
|
minimum = <ufunc 'minimum'>
|
|
mod = <ufunc 'remainder'>
|
|
modf = <ufunc 'modf'>
|
|
multiply = <ufunc 'multiply'>
|
|
nan = nan
|
|
nbytes = {<type 'numpy.complex128'>: 16, <type 'numpy.void'>: ...
|
|
negative = <ufunc 'negative'>
|
|
newaxis = None
hash(x)
|
|
nextafter = <ufunc 'nextafter'>
|
|
not_equal = <ufunc 'not_equal'>
|
|
ogrid = <numpy.lib.index_tricks.nd_grid object at 0x2cc4550>
|
|
ones_like = <ufunc 'ones_like'>
|
|
pi = 3.14159265359
|
|
power = <ufunc 'power'>
|
|
r_ = <numpy.lib.index_tricks.RClass object at 0x2cc4590>
|
|
rad2deg = <ufunc 'rad2deg'>
|
|
radians = <ufunc 'radians'>
|
|
reciprocal = <ufunc 'reciprocal'>
|
|
remainder = <ufunc 'remainder'>
|
|
right_shift = <ufunc 'right_shift'>
|
|
rint = <ufunc 'rint'>
|
|
s_ = <numpy.lib.index_tricks.IndexExpression object at 0x2cc46d0>
|
|
sctypeDict = { 0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, ...
|
|
sctypeNA = { ' ? ' : ' Bool ' , ' B ' : ' UInt8 ' , ' Bool ' : <type 'numpy.bo...
|
|
sctypes = { ' complex ' : [ <type 'numpy.complex64'>, <type 'numpy....
|
|
sign = <ufunc 'sign'>
|
|
signbit = <ufunc 'signbit'>
|
|
sin = <ufunc 'sin'>
|
|
sinh = <ufunc 'sinh'>
|
|
spacing = <ufunc 'spacing'>
|
|
sqrt = <ufunc 'sqrt'>
|
|
square = <ufunc 'square'>
|
|
subtract = <ufunc 'subtract'>
|
|
tan = <ufunc 'tan'>
|
|
tanh = <ufunc 'tanh'>
|
|
true_divide = <ufunc 'true_divide'>
|
|
trunc = <ufunc 'trunc'>
|
|
typeDict = { 0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, 2...
|
|
typeNA = { ' ? ' : ' Bool ' , ' B ' : ' UInt8 ' , ' Bool ' : <type 'numpy.bool...
|
|
typecodes = { ' All ' : ' ?bhilqpBHILQPfdgFDGSUVO ' , ' AllFloat ' : ' fd ...
|
Imports:
array,
add_newdocs,
Float,
float,
Int,
Int32,
Int16,
Int8,
Complex,
arrayrange,
matrixmultiply,
outerproduct,
RA,
LA,
FFT,
ComplexWarning,
DataSource,
MachAr,
PackageLoader,
RankWarning,
add_docstring,
add_newdoc,
alen,
all,
allclose,
alltrue,
alterdot,
amax,
amin,
angle,
any,
append,
apply_along_axis,
apply_over_axes,
arange,
argmax,
argmin,
argsort,
argwhere,
around,
array2string,
array_equal,
array_equiv,
array_repr,
array_split,
array_str,
asanyarray,
asarray,
asarray_chkfinite,
ascontiguousarray,
asfarray,
asfortranarray,
asmatrix,
asscalar,
atleast_1d,
atleast_2d,
atleast_3d,
average,
bartlett,
base_repr,
binary_repr,
bincount,
blackman,
bmat,
bool8,
bool_,
broadcast,
broadcast_arrays,
byte,
byte_bounds,
bytes_,
can_cast,
cdouble,
cfloat,
char,
character,
chararray,
choose,
clip,
clongdouble,
clongfloat,
column_stack,
common_type,
compare_chararrays,
complex128,
complex256,
complex64,
complex_,
complexfloating,
compress,
concatenate,
convolve,
copy,
corrcoef,
correlate,
cov,
cross,
csingle,
ctypeslib,
cumprod,
cumproduct,
cumsum,
datetime_data,
delete,
deprecate,
deprecate_with_doc,
diag,
diag_indices,
diag_indices_from,
diagflat,
diagonal,
diff,
digitize,
disp,
dot,
double,
dsplit,
dstack,
dtype,
ediff1d,
emath,
empty,
empty_like,
errstate,
expand_dims,
extract,
eye,
fastCopyAndTranspose,
fft,
fill_diagonal,
find_common_type,
finfo,
fix,
flatiter,
flatnonzero,
flexible,
fliplr,
flipud,
float128,
float32,
float64,
float_,
floating,
format_parser,
frombuffer,
fromfile,
fromfunction,
fromiter,
frompyfunc,
fromregex,
fromstring,
fv,
generic,
genfromtxt,
get_array_wrap,
get_include,
get_numarray_include,
get_numpy_include,
get_printoptions,
getbuffer,
getbufsize,
geterr,
geterrcall,
geterrobj,
gradient,
hamming,
hanning,
histogram,
histogram2d,
histogramdd,
hsplit,
hstack,
i0,
identity,
iinfo,
imag,
in1d,
indices,
inexact,
info,
inner,
insert,
int0,
int16,
int32,
int64,
int8,
int_,
int_asbuffer,
intc,
integer,
interp,
intersect1d,
intersect1d_nu,
intp,
ipmt,
irr,
iscomplex,
iscomplexobj,
isfortran,
isneginf,
isposinf,
isreal,
isrealobj,
isscalar,
issctype,
issubclass_,
issubdtype,
issubsctype,
iterable,
ix_,
kaiser,
kron,
lexsort,
linalg,
linspace,
load,
loads,
loadtxt,
logspace,
longcomplex,
longdouble,
longfloat,
longlong,
lookfor,
ma,
mafromtxt,
mask_indices,
mat,
math,
matrix,
maximum_sctype,
may_share_memory,
mean,
median,
memmap,
meshgrid,
mintypecode,
mirr,
msort,
nan_to_num,
nanargmax,
nanargmin,
nanmax,
nanmin,
nansum,
ndarray,
ndenumerate,
ndfromtxt,
ndim,
ndindex,
newbuffer,
nonzero,
nper,
npv,
number,
obj2sctype,
object0,
object_,
ones,
outer,
packbits,
percentile,
piecewise,
pkgload,
place,
pmt,
poly,
poly1d,
polyadd,
polyder,
polydiv,
polyfit,
polyint,
polymul,
polysub,
polyval,
ppmt,
prod,
product,
ptp,
put,
putmask,
pv,
random,
rank,
rate,
ravel,
real,
real_if_close,
rec,
recarray,
recfromcsv,
recfromtxt,
record,
repeat,
require,
reshape,
resize,
restoredot,
roll,
rollaxis,
roots,
rot90,
round_,
row_stack,
safe_eval,
save,
savetxt,
savez,
sctype2char,
searchsorted,
select,
set_numeric_ops,
set_printoptions,
set_string_function,
setbufsize,
setdiff1d,
seterr,
seterrcall,
seterrobj,
setmember1d,
setxor1d,
shape,
short,
show_config,
signedinteger,
sinc,
single,
singlecomplex,
size,
sometrue,
sort,
sort_complex,
source,
split,
squeeze,
std,
str_,
string0,
string_,
sum,
swapaxes,
take,
tensordot,
tile,
trace,
transpose,
trapz,
tri,
tril,
tril_indices,
tril_indices_from,
trim_zeros,
triu,
triu_indices,
triu_indices_from,
typename,
ubyte,
ufunc,
uint,
uint0,
uint16,
uint32,
uint64,
uint8,
uintc,
uintp,
ulonglong,
unicode0,
unicode_,
union1d,
unique,
unique1d,
unpackbits,
unravel_index,
unsignedinteger,
unwrap,
ushort,
vander,
var,
vdot,
vectorize,
void,
void0,
vsplit,
vstack,
where,
who,
zeros,
zeros_like
ScalarType
- Value:
( <type 'int'>,
<type 'float'>,
<type 'complex'>,
<type 'long'>,
<type 'bool'>,
<type 'str'>,
<type 'unicode'>,
<type 'buffer'>,
...
|
|
cast
- Value:
{<type 'numpy.complex128'>: <function <lambda> at 0x2b1d2a8>, <type 'n
umpy.void'>: <function <lambda> at 0x2b1d320>, <type 'numpy.uint64'>:
<function <lambda> at 0x2b1d398>, <type 'numpy.complex64'>: <function
<lambda> at 0x2b1d410>, <type 'numpy.unicode_'>: <function <lambda> at
0x2b1d488>, <type 'numpy.uint32'>: <function <lambda> at 0x2b1d500>,
<type 'numpy.float128'>: <function <lambda> at 0x2b1d578>, <type 'nump
y.int64'>: <function <lambda> at 0x2b1d5f0>, <type 'numpy.int16'>: <fu
nction <lambda> at 0x2b1d668>, <type 'numpy.uint16'>: <function <lambd
...
|
|
index_exp
- Value:
<numpy.lib.index_tricks.IndexExpression object at 0x2cc4650>
|
|
nbytes
- Value:
{<type 'numpy.complex128'>: 16, <type 'numpy.void'>: 0, <type 'numpy.u
int64'>: 8, <type 'numpy.complex64'>: 8, <type 'numpy.unicode_'>: 0, <
type 'numpy.uint32'>: 4, <type 'numpy.float128'>: 16, <type 'numpy.int
64'>: 8, <type 'numpy.int16'>: 2, <type 'numpy.uint16'>: 2, <type 'num
py.int32'>: 4, <type 'numpy.float64'>: 8, <type 'numpy.object_'>: 8, <
type 'numpy.string_'>: 0, <type 'numpy.uint8'>: 1, <type 'numpy.float3
2'>: 4, <type 'numpy.int8'>: 1, <type 'numpy.complex256'>: 32, <type '
numpy.int64'>: 8, <type 'numpy.bool_'>: 1, <type 'numpy.uint64'>: 8}
|
|
sctypeDict
- Value:
{ 0: <type 'numpy.bool_'>,
1: <type 'numpy.int8'>,
2: <type 'numpy.uint8'>,
3: <type 'numpy.int16'>,
4: <type 'numpy.uint16'>,
5: <type 'numpy.int32'>,
6: <type 'numpy.uint32'>,
7: <type 'numpy.int64'>,
...
|
|
sctypeNA
- Value:
{ ' ? ' : ' Bool ' ,
' B ' : ' UInt8 ' ,
' Bool ' : <type 'numpy.bool_'>,
' Complex128 ' : <type 'numpy.complex256'>,
' Complex32 ' : <type 'numpy.complex64'>,
' Complex64 ' : <type 'numpy.complex128'>,
' D ' : ' Complex64 ' ,
' F ' : ' Complex32 ' ,
...
|
|
sctypes
- Value:
{ ' complex ' : [ <type 'numpy.complex64'>,
<type 'numpy.complex128'>,
<type 'numpy.complex256'>] ,
' float ' : [ <type 'numpy.float32'>,
<type 'numpy.float64'>,
<type 'numpy.float128'>] ,
' int ' : [ <type 'numpy.int8'>,
<type 'numpy.int16'>,
...
|
|
typeDict
- Value:
{ 0: <type 'numpy.bool_'>,
1: <type 'numpy.int8'>,
2: <type 'numpy.uint8'>,
3: <type 'numpy.int16'>,
4: <type 'numpy.uint16'>,
5: <type 'numpy.int32'>,
6: <type 'numpy.uint32'>,
7: <type 'numpy.int64'>,
...
|
|
typeNA
- Value:
{ ' ? ' : ' Bool ' ,
' B ' : ' UInt8 ' ,
' Bool ' : <type 'numpy.bool_'>,
' Complex128 ' : <type 'numpy.complex256'>,
' Complex32 ' : <type 'numpy.complex64'>,
' Complex64 ' : <type 'numpy.complex128'>,
' D ' : ' Complex64 ' ,
' F ' : ' Complex32 ' ,
...
|
|
typecodes
- Value:
{ ' All ' : ' ?bhilqpBHILQPfdgFDGSUVO ' ,
' AllFloat ' : ' fdgFDG ' ,
' AllInteger ' : ' bBhHiIlLqQpP ' ,
' Character ' : ' c ' ,
' Complex ' : ' FDG ' ,
' Float ' : ' fdg ' ,
' Integer ' : ' bhilqp ' ,
' UnsignedInteger ' : ' BHILQP ' }
|
|