When true, the resulting chararray can contain Unicode characters, when false only 8-bit characters. If unicode is None and obj is one of the following:. Specify the order of the array. The default is to reverse the order of all axes, i. It operates along the specified axis. The shape of the result is the shape of condition. The type of the result is determined by the types of x and y.
Either x or y or both can be a scalar, which is then used for all appropriate elements of condition. Unlike where , choose can select values from more than two arrays. Assume selector is an array that you want to "clip" so that no values are greater than This works as well with arrays. It is equivalent to reshape a, -1,. There is a ravel method which reshapes the array in-place.
Unlike a. Alternately, condition may match a in shape; in this case the result is a 1D array and axis should not be specified. The offset is relative to the axis2 axis. This is designed for 2-D arrays.
For arrays of higher ranks, it will return the diagonal of each 2-D sub-array. The 2-D array does not have to be square. Array Attributes Chapter 10 presents the attributes of array objects. Character Array Chapter 11 describes the numarray. Record Array Chapter 12 describes the numarray. Object Array Chapter 13 describes the numarray.
Convolution Chapter 15 describes the numarray. Fast-Fourier-Transform Chapter 16 describes the numarray. Ported from Numeric. Linear Algebra Chapter 17 describes the numarray. Masked Arrays Chapter 18 describes the numarray. Random Numbers Chapter 20 describes the numarray. Multidimentional image analysis functions Chapter 21 describes the numarray. Glossary Appendix A gives a glossary of terms. See module Precision , section. Subsequent operations may be faster if the array previously had an all-zero mask.
The name array is simply an alias for the class name, MaskedArray. When data is newly-created this function can be used to make it a masked array without copying the data if data is already a numarray array. Masked Arrays Next: Subsections Correct, changes x.
0コメント