Version 1.0b1 API Documentation generated by Endo 2006-08-14
Basic functions for manipulating 2d arrays
returns a copy of the the k-th diagonal if v is a 2-d array
or returns a 2-d array with v as the k-th diagonal if v is a
1-d array.
eye returns a N-by-M 2-d array where the k-th diagonal is all ones, and everything else is zeros.
returns an array m with the rows preserved and columns flipped in the left/right direction. Works on the first two dimensions of m.
returns an array with the columns preserved and rows flipped in the up/down direction. Works on the first dimension of m.
returns the array found by rotating m by k*90 degrees in the counterclockwise direction. Works on the first two dimensions of m.
returns a N-by-M array where all the diagonals starting from lower left corner up to the k-th are all ones.
returns the elements on and below the k-th diagonal of m. k=0 is the main diagonal, k > 0 is above and k < 0 is below the main diagonal.
returns the elements on and above the k-th diagonal of m. k=0 is the main diagonal, k > 0 is above and k < 0 is below the main diagonal.
X = vander(x,N=None)
The Vandermonde matrix of vector x. The i-th column of X is the the i-th power of x. N is the maximum power to compute; if N is None it defaults to len(x).
| Local name | Refers to |
|---|---|
| arange | numpy.core.numeric.arange |
| asanyarray | numpy.core.numeric.asanyarray |
| asarray | numpy.core.numeric.asarray |
| multiply | umath.multiply |
| ones | numpy.core.numeric.ones |
| zeros | numpy.core.numeric.zeros |