CONTENTS 1 Arrayobjects 3 1.1 TheN-dimensionalarray(ndarray).................................. 3 1.2 Scalars.................................................. 73 1.3 Datatypeobjects(dtype)........................................110 1.4 Indexing.................................................121 1.5 Standardarraysubclasses........................................125 1.6 Maskedarrays..............................................250 1.7 TheArrayInterface ...........................................433 2 Universalfunctions(ufunc) 439 2.1 Broadcasting...............................................439 2.2 Outputtypedetermination........................................440 2.3 Useofinternalbuffers..........................................440 2.4 Errorhandling..............................................440 2.5 CastingRules...............................................443 2.6 ufunc..................................................445 2.7 Availableufuncs.............................................452 3 Routines 457 3.1 Arraycreationroutines..........................................457 3.2 Arraymanipulationroutines.......................................488 3.3 Indexingroutines.............................................522 3.4 Datatyperoutines............................................547 3.5 Inputandoutput.............................................559 3.6 DiscreteFourierTransform(numpy.fft)...............................579 3.7 Linearalgebra(numpy.linalg) ...................................599 3.8 Randomsampling(numpy.random) .................................627 3.9 Sortingandsearching ..........................................678 3.10Logicfunctions..............................................691 3.11Binaryoperations.............................................707 3.12Statistics.................................................715 3.13Mathematicalfunctions .........................................735 3.14Functionalprogramming.........................................794