一图看懂 numpy 库结构:资料整理+笔记(大全)
本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008

一图看懂 numpy 库结构:资料整理+笔记(大全)
- constants
- sys
- module
- class
- function
- builtin_function_or_method
- other
- residual
【简介】全文介绍 numpy 的整体架构,包括模块、函数、类及类的方法和属性。它改变了第三版以前直接取材于原码的方式,而是采用 inspect的方法和技术,我尽可能地做到与系统的help(numpy)输出保持一致,但是在各对象类别的范围界定上,兼顾了实用和完整性。大部分doc经网络人工智能翻译 + 人工校对。是一部不可多得的权威字典类工具书。它是续集的一部分。后续陆续发布、敬请关注。【原创】 大侠Ahcao
以下来自于:zjgPyObj(numpy) ver4.0,英文为网络机器自动翻译(有道)+ 人工校对。

说明:
本文共收录:
类别 数量 constants常量 49 sys系统 18 module模块 18 class类 97(类的方法、属性将在分结构中展开) function函数 272 builtins内嵌 23 other其它 113(不太重要或能用的继承) residual特定 24 total合计 604(仅一、二级目录)三级目录43K行,另文给出。
constants
0001 int ERR_WARN 1
0002 int FPE_UNDERFLOW 4
0003 int ERR_PRINT 4
0004 int ERR_LOG 5
0005 int ERR_CALL 3
0006 int SHIFT_INVALID 9
0007 int UFUNC_BUFSIZE_DEFAULT 8192
0008 int tracemalloc_domain 389047
0009 int MAY_SHARE_BOUNDS 0
0010 int ERR_RAISE 2
0011 int use_hugepage 1
0012 int FPE_DIVIDEBYZERO 1
0013 int SHIFT_UNDERFLOW 6
0014 int ERR_DEFAULT 521
0015 int RAISE 2
0016 int BUFSIZE 8192
0017 int CLIP 0
0018 int ALLOW_THREADS 1
0019 int FPE_INVALID 8
0020 int WRAP 1
0021 int SHIFT_OVERFLOW 3
0022 int MAY_SHARE_EXACT -1
0023 int FPE_OVERFLOW 2
0024 int ERR_IGNORE 0
0025 int MAXDIMS 32
0026 int FLOATING_POINT_SUPPORT 1
0027 int SHIFT_DIVIDEBYZERO 0
0028 bool little_endian True
0029 float inf inf
0030 float nan nan
0031 float NINF -inf
0032 float PINF inf
0033 float pi 3.141592653589793
0034 float NAN nan
0035 float PZERO 0.0
0036 float NaN nan
0037 float Infinity inf
0038 float e 2.718281828459045
0039 float euler_gamma 0.5772156649015329
0040 float NZERO -0.0
0041 float Inf inf
0042 float infty inf
0043 str oldnumeric removed
0044 str numarray removed
0045 str UFUNC_PYVALS_NAME UFUNC_PYVALS
0046 tuple ScalarType (, ,...)
0047 dict sctypeDict {'?': , 0: ,...}
0048 dict sctypes {'int': [, , ...}
sys
0050 str __name__ numpy
0051 str __doc__ ...
0052 str __package__ numpy
0053 SourceFileLoader __loader__ <_frozen_importlib_external.SourceFileLoader object at 0x00000000038F2088>
0054 ModuleSpec __spec__ ModuleSpec(name='numpy', loader=<...>, origin='...\\__init__.py', submodule_search_locations=['...\\numpy'])
0055 list __path__ ['〖pyLibpath〗\\site-packages\\numpy']
0056 str __file__ 〖pyLibpath〗\site-packages\numpy\__init__.py
0057 str __cached__ 〖pyLibpath〗\site-packages\numpy\__pycache__\__init__.cpython-37.pyc
0058 dict __builtins__ {...}
0059 bool __NUMPY_SETUP__ False
0060 module __config__
0061 list __all__ ['ModuleDeprecationWarning', 'VisibleDeprecationWarning', ...]
0062 str __version__ 1.21.6
0063 str __git_version__ ef0ec786fd4c7622ad2fa0e54d3881f3b9bbd792
0064 dict __deprecated_attrs__ {'object': (,...}
0065 dict __expired_functions__ {'fv': '...', ...}
0066 function __getattr__
0067 function __dir__
module
0068 module char
0069 module compat
0070 module core
0071 module ctypeslib
0072 module emath
0073 module fft
0074 module lib
0075 module linalg
0076 module ma
0077 module math
0078 module matrixlib
0079 module os
0080 module polynomial
0081 module random
0082 module rec
0083 module sys
0084 module version
0085 module warnings
class
0086 type AxisError
0087 type Bytes0
0088 type ComplexWarning
0089 type DataSource
0090 type Datetime64
0091 type MachAr
0092 type ModuleDeprecationWarning
0093 type RankWarning
0094 type Str0
0095 type TooHardError
0096 type Uint64
0097 type VisibleDeprecationWarning
0098 type bool8
0099 type bool_
0100 type broadcast
0101 type busdaycalendar
0102 type byte
0103 type bytes0
0104 type bytes_
0105 type cdouble
0106 type cfloat
0107 type character
0108 type chararray
0109 type clongdouble
0110 type clongfloat
0111 type complex128
0112 type complex64
0113 type complex_
0114 type complexfloating
0115 type csingle
0116 type datetime64
0117 type double
0118 _DTypeMeta dtype
0119 type errstate
0120 type finfo
0121 type flatiter
0122 type flexible
0123 type float16
0124 type float32
0125 type float64
0126 type float_
0127 type floating
0128 type format_parser
0129 type generic
0130 type half
0131 type iinfo
0132 type inexact
0133 type int0
0134 type int16
0135 type int32
0136 type int64
0137 type int8
0138 type int_
0139 type intc
0140 type integer
0141 type intp
0142 type longcomplex
0143 type longdouble
0144 type longfloat
0145 type longlong
0146 type matrix
0147 type memmap
0148 type ndarray
0149 type ndenumerate
0150 type ndindex
0151 type nditer
0152 type number
0153 type object0
0154 type object_
0155 type poly1d
0156 type recarray
0157 type record
0158 type short
0159 type signedinteger
0160 type single
0161 type singlecomplex
0162 type str0
0163 type str_
0164 type string_
0165 type timedelta64
0166 type ubyte
0167 type ufunc
0168 type uint
0169 type uint0
0170 type uint16
0171 type uint32
0172 type uint64
0173 type uint8
0174 type uintc
0175 type uintp
0176 type ulonglong
0177 type unicode_
0178 type unsignedinteger
0179 type ushort
0180 type vectorize
0181 type void
0182 type void0
function
0183 function alen
0184 function all
0185 function allclose
0186 function alltrue
0187 function amax
0188 function amin
0189 function angle
0190 function any
0191 function append
0192 function apply_along_axis
0193 function apply_over_axes
0194 function argmax
0195 function argmin
0196 function argpartition
0197 function argsort
0198 function argwhere
0199 function around
0200 function array2string
0201 function array_equal
0202 function array_equiv
0203 function array_repr
0204 function array_split
0205 function array_str
0206 function asarray_chkfinite
0207 function asfarray
0208 function asmatrix
0209 function asscalar
0210 function atleast_1d
0211 function atleast_2d
0212 function atleast_3d
0213 function average
0214 function bartlett
0215 function base_repr
0216 function binary_repr
0217 function bincount
0218 function blackman
0219 function block
0220 function bmat
0221 function broadcast_arrays
0222 function broadcast_shapes
0223 function broadcast_to
0224 function busday_count
0225 function busday_offset
0226 function can_cast
0227 function choose
0228 function clip
0229 function column_stack
0230 function common_type
0231 function compress
0232 function concatenate
0233 function convolve
0234 function copy
0235 function copyto
0236 function corrcoef
0237 function correlate
0238 function count_nonzero
0239 function cov
0240 function cross
0241 function cumprod
0242 function cumproduct
0243 function cumsum
0244 function datetime_as_string
0245 function delete
0246 function diag
0247 function diag_indices
0248 function diag_indices_from
0249 function diagflat
0250 function diagonal
0251 function diff
0252 function digitize
0253 function dot
0254 function dsplit
0255 function dstack
0256 function ediff1d
0257 function einsum
0258 function einsum_path
0259 function empty_like
0260 function expand_dims
0261 function extract
0262 function eye
0263 function fill_diagonal
0264 function find_common_type
0265 function fix
0266 function flatnonzero
0267 function flip
0268 function fliplr
0269 function flipud
0270 function format_float_positional
0271 function format_float_scientific
0272 function fromfunction
0273 function fromregex
0274 function full
0275 function full_like
0276 function genfromtxt
0277 function geomspace
0278 function get_printoptions
0279 function getbufsize
0280 function geterr
0281 function geterrcall
0282 function gradient
0283 function hamming
0284 function hanning
0285 function histogram
0286 function histogram2d
0287 function histogram_bin_edges
0288 function histogramdd
0289 function hsplit
0290 function hstack
0291 function i0
0292 function identity
0293 function imag
0294 function in1d
0295 function indices
0296 function info
0297 function inner
0298 function insert
0299 function interp
0300 function intersect1d
0301 function is_busday
0302 function isclose
0303 function iscomplex
0304 function iscomplexobj
0305 function isfortran
0306 function isin
0307 function isneginf
0308 function isposinf
0309 function isreal
0310 function isrealobj
0311 function isscalar
0312 function issctype
0313 function issubclass_
0314 function issubdtype
0315 function issubsctype
0316 function iterable
0317 function ix_
0318 function kaiser
0319 function kron
0320 function lexsort
0321 function linspace
0322 function load
0323 function loads
0324 function loadtxt
0325 function logspace
0326 function lookfor
0327 function mask_indices
0328 function mat
0329 function max
0330 function maximum_sctype
0331 function may_share_memory
0332 function mean
0333 function median
0334 function meshgrid
0335 function min
0336 function min_scalar_type
0337 function mintypecode
0338 function moveaxis
0339 function msort
0340 function nan_to_num
0341 function nanargmax
0342 function nanargmin
0343 function nancumprod
0344 function nancumsum
0345 function nanmax
0346 function nanmean
0347 function nanmedian
0348 function nanmin
0349 function nanpercentile
0350 function nanprod
0351 function nanquantile
0352 function nanstd
0353 function nansum
0354 function nanvar
0355 function ndim
0356 function nonzero
0357 function obj2sctype
0358 function ones
0359 function ones_like
0360 function outer
0361 function packbits
0362 function pad
0363 function partition
0364 function percentile
0365 function piecewise
0366 function place
0367 function poly
0368 function polyadd
0369 function polyder
0370 function polydiv
0371 function polyfit
0372 function polyint
0373 function polymul
0374 function polysub
0375 function polyval
0376 function printoptions
0377 function prod
0378 function product
0379 function ptp
0380 function put
0381 function put_along_axis
0382 function putmask
0383 function quantile
0384 function ravel
0385 function ravel_multi_index
0386 function real
0387 function real_if_close
0388 function repeat
0389 function require
0390 function reshape
0391 function resize
0392 function result_type
0393 function roll
0394 function rollaxis
0395 function roots
0396 function rot90
0397 function round
0398 function round_
0399 function row_stack
0400 function save
0401 function savetxt
0402 function savez
0403 function savez_compressed
0404 function sctype2char
0405 function searchsorted
0406 function select
0407 function set_printoptions
0408 function setbufsize
0409 function setdiff1d
0410 function seterr
0411 function seterrcall
0412 function setxor1d
0413 function shape
0414 function shares_memory
0415 function sinc
0416 function size
0417 function sometrue
0418 function sort
0419 function sort_complex
0420 function source
0421 function split
0422 function squeeze
0423 function stack
0424 function std
0425 function sum
0426 function swapaxes
0427 function take
0428 function take_along_axis
0429 function tensordot