comparison DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/lib/info.py @ 87:2a2c65a20a8b

Add Python libs and headers
author Chris Cannam
date Wed, 25 Feb 2015 14:05:22 +0000
parents
children
comparison
equal deleted inserted replaced
86:413a9d26189e 87:2a2c65a20a8b
1 """
2 Basic functions used by several sub-packages and
3 useful to have in the main name-space.
4
5 Type Handling
6 -------------
7 ================ ===================
8 iscomplexobj Test for complex object, scalar result
9 isrealobj Test for real object, scalar result
10 iscomplex Test for complex elements, array result
11 isreal Test for real elements, array result
12 imag Imaginary part
13 real Real part
14 real_if_close Turns complex number with tiny imaginary part to real
15 isneginf Tests for negative infinity, array result
16 isposinf Tests for positive infinity, array result
17 isnan Tests for nans, array result
18 isinf Tests for infinity, array result
19 isfinite Tests for finite numbers, array result
20 isscalar True if argument is a scalar
21 nan_to_num Replaces NaN's with 0 and infinities with large numbers
22 cast Dictionary of functions to force cast to each type
23 common_type Determine the minimum common type code for a group
24 of arrays
25 mintypecode Return minimal allowed common typecode.
26 ================ ===================
27
28 Index Tricks
29 ------------
30 ================ ===================
31 mgrid Method which allows easy construction of N-d
32 'mesh-grids'
33 ``r_`` Append and construct arrays: turns slice objects into
34 ranges and concatenates them, for 2d arrays appends rows.
35 index_exp Konrad Hinsen's index_expression class instance which
36 can be useful for building complicated slicing syntax.
37 ================ ===================
38
39 Useful Functions
40 ----------------
41 ================ ===================
42 select Extension of where to multiple conditions and choices
43 extract Extract 1d array from flattened array according to mask
44 insert Insert 1d array of values into Nd array according to mask
45 linspace Evenly spaced samples in linear space
46 logspace Evenly spaced samples in logarithmic space
47 fix Round x to nearest integer towards zero
48 mod Modulo mod(x,y) = x % y except keeps sign of y
49 amax Array maximum along axis
50 amin Array minimum along axis
51 ptp Array max-min along axis
52 cumsum Cumulative sum along axis
53 prod Product of elements along axis
54 cumprod Cumluative product along axis
55 diff Discrete differences along axis
56 angle Returns angle of complex argument
57 unwrap Unwrap phase along given axis (1-d algorithm)
58 sort_complex Sort a complex-array (based on real, then imaginary)
59 trim_zeros Trim the leading and trailing zeros from 1D array.
60 vectorize A class that wraps a Python function taking scalar
61 arguments into a generalized function which can handle
62 arrays of arguments using the broadcast rules of
63 numerix Python.
64 ================ ===================
65
66 Shape Manipulation
67 ------------------
68 ================ ===================
69 squeeze Return a with length-one dimensions removed.
70 atleast_1d Force arrays to be > 1D
71 atleast_2d Force arrays to be > 2D
72 atleast_3d Force arrays to be > 3D
73 vstack Stack arrays vertically (row on row)
74 hstack Stack arrays horizontally (column on column)
75 column_stack Stack 1D arrays as columns into 2D array
76 dstack Stack arrays depthwise (along third dimension)
77 split Divide array into a list of sub-arrays
78 hsplit Split into columns
79 vsplit Split into rows
80 dsplit Split along third dimension
81 ================ ===================
82
83 Matrix (2D Array) Manipulations
84 -------------------------------
85 ================ ===================
86 fliplr 2D array with columns flipped
87 flipud 2D array with rows flipped
88 rot90 Rotate a 2D array a multiple of 90 degrees
89 eye Return a 2D array with ones down a given diagonal
90 diag Construct a 2D array from a vector, or return a given
91 diagonal from a 2D array.
92 mat Construct a Matrix
93 bmat Build a Matrix from blocks
94 ================ ===================
95
96 Polynomials
97 -----------
98 ================ ===================
99 poly1d A one-dimensional polynomial class
100 poly Return polynomial coefficients from roots
101 roots Find roots of polynomial given coefficients
102 polyint Integrate polynomial
103 polyder Differentiate polynomial
104 polyadd Add polynomials
105 polysub Substract polynomials
106 polymul Multiply polynomials
107 polydiv Divide polynomials
108 polyval Evaluate polynomial at given argument
109 ================ ===================
110
111 Import Tricks
112 -------------
113 ================ ===================
114 ppimport Postpone module import until trying to use it
115 ppimport_attr Postpone module import until trying to use its attribute
116 ppresolve Import postponed module and return it.
117 ================ ===================
118
119 Machine Arithmetics
120 -------------------
121 ================ ===================
122 machar_single Single precision floating point arithmetic parameters
123 machar_double Double precision floating point arithmetic parameters
124 ================ ===================
125
126 Threading Tricks
127 ----------------
128 ================ ===================
129 ParallelExec Execute commands in parallel thread.
130 ================ ===================
131
132 1D Array Set Operations
133 -----------------------
134 Set operations for 1D numeric arrays based on sort() function.
135
136 ================ ===================
137 ediff1d Array difference (auxiliary function).
138 unique Unique elements of an array.
139 intersect1d Intersection of 1D arrays with unique elements.
140 setxor1d Set exclusive-or of 1D arrays with unique elements.
141 in1d Test whether elements in a 1D array are also present in
142 another array.
143 union1d Union of 1D arrays with unique elements.
144 setdiff1d Set difference of 1D arrays with unique elements.
145 ================ ===================
146
147 """
148 from __future__ import division, absolute_import, print_function
149
150 depends = ['core', 'testing']
151 global_symbols = ['*']