Version 1.0b1 API Documentation generated by Endo 2006-08-14
c_ = c_class()
index_exp = _index_expression_class(1)
makemat = matrix.matrix
mgrid = nd_grid(sparse = False)
ogrid = nd_grid(sparse = True)
r_ = r_class()
s_ = _index_expression_class(0)
Construct an open mesh from multiple sequences.
This function takes n 1-d sequences and returns n outputs with n dimensions each such that the shape is 1 in all but one dimension and the dimension with the non-unit shape value cycles through all n dimensions.
Using ix_() one can quickly construct index arrays that will index the cross product.
a[ix_([1,3,7],[2,5,8])] returns the array
a[1,2] a[1,5] a[1,8] a[3,2] a[3,5] a[3,8] a[7,2] a[7,5] a[7,8]
Convert a flat index into an index tuple for an array of given shape.
e.g. for a 2x2 array, unravel_index(2,(2,2)) returns (1,0).
Note: x.flat[p] == x.max()
Thus, it may be easier to use flattened indexing than to re-map the index to a tuple.
| Local name | Refers to |
|---|---|
| asarray | numpy.core.numeric.asarray |
| function_base | numpy.lib.function_base |
| matrix | numpy.core.defmatrix |
| ScalarType | numpy.core.numerictypes.ScalarType |
| sys | sys |
| types | types |
| _nx | numpy.core.numeric |