您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > numpy官方参考手册
NumPyReferenceRelease1.5.1WrittenbytheNumPycommunityNovember18,2010CONTENTS1Arrayobjects31.1TheN-dimensionalarray(ndarray)..................................31.2Scalars..................................................731.3Datatypeobjects(dtype)........................................1101.4Indexing.................................................1211.5Standardarraysubclasses........................................1251.6Maskedarrays..............................................2501.7TheArrayInterface...........................................4332Universalfunctions(ufunc)4392.1Broadcasting...............................................4392.2Outputtypedetermination........................................4402.3Useofinternalbuffers..........................................4402.4Errorhandling..............................................4402.5CastingRules...............................................4432.6ufunc..................................................4452.7Availableufuncs.............................................4523Routines4573.1Arraycreationroutines..........................................4573.2Arraymanipulationroutines.......................................4883.3Indexingroutines.............................................5223.4Datatyperoutines............................................5473.5Inputandoutput.............................................5593.6DiscreteFourierTransform(numpy.fft)...............................5793.7Linearalgebra(numpy.linalg)...................................5993.8Randomsampling(numpy.random).................................6273.9Sortingandsearching..........................................6783.10Logicfunctions..............................................6913.11Binaryoperations.............................................7073.12Statistics.................................................7153.13Mathematicalfunctions.........................................7353.14Functionalprogramming.........................................7943.15Polynomials...............................................7993.16Financialfunctions............................................8123.17Setroutines................................................8203.18Windowfunctions............................................8253.19Floatingpointerrorhandling.......................................8363.20Maskedarrayoperations.........................................842i3.21Numpy-specifichelpfunctions......................................9623.22Miscellaneousroutines..........................................9653.23TestSupport(numpy.testing)....................................9663.24Asserts..................................................9673.25Mathematicalfunctionswithautomaticdomain(numpy.emath)...................9773.26Matrixlibrary(numpy.matlib)....................................9773.27OptionallyScipy-acceleratedroutines(numpy.dual).........................9773.28Numarraycompatibility(numpy.numarray).............................9783.29OldNumericcompatibility(numpy.oldnumeric)..........................9783.30C-TypesForeignFunctionInterface(numpy.ctypeslib)......................9783.31Stringoperations.............................................9794Packaging(numpy.distutils)10154.1Modulesinnumpy.distutils....................................10154.2BuildingInstallableClibraries......................................10264.3Conversionof.srcfiles........................................10275NumpyC-API10295.1PythonTypesandC-Structures.....................................10295.2Systemconfiguration...........................................10435.3DataTypeAPI..............................................10455.4ArrayAPI................................................10475.5UFuncAPI................................................10805.6GeneralizedUniversalFunctionAPI...................................10855.7Numpycorelibraries...........................................10876Numpyinternals10916.1NumpyCCodeExplanations......................................10916.2Internalorganizationofnumpyarrays..................................10986.3MultidimensionalArrayIndexingOrderIssues.............................10997Acknowledgements1101Bibliography1103PythonModuleIndex1109Index1111iiNumPyReference,Release1.5.1Release1.5DateNovember18,2010Thisreferencemanualdetailsfunctions,modules,andobjectsincludedinNumpy,describingwhattheyareandwhattheydo.ForlearninghowtouseNumPy,seealsouser.CONTENTS1NumPyReference,Release1.5.12CONTENTSCHAPTERONEARRAYOBJECTSNumPyprovidesanN-dimensionalarraytype,thendarray,whichdescribesacollectionof“items”ofthesametype.TheitemscanbeindexedusingforexampleNintegers.Allndarraysarehomogenous:everyitemtakesupthesamesizeblockofmemory,andallblocksareinterpretedinexactlythesameway.Howeachiteminthearrayistobeinterpretedisspecifiedbyaseparatedata-typeobject,oneofwhichisassociatedwitheveryarray.Inadditiontobasictypes(integers,floats,etc.),thedatatypeobjectscanalsorepresentdatastructures.Anitemextractedfromanarray,e.g.,byindexing,isre
本文标题:numpy官方参考手册
链接地址:https://www.777doc.com/doc-4262321 .html