151
151
left_shift , less , less_equal , lexsort , linspace , little_endian , log ,
152
152
log10 , log1p , log2 , logaddexp , logaddexp2 , logical_and , logical_not ,
153
153
logical_or , logical_xor , logspace , long , longdouble , longlong , matmul ,
154
- matrix_transpose , max , maximum , may_share_memory , mean , memmap , min ,
155
- min_scalar_type , minimum , mod , modf , moveaxis , multiply , nan , ndarray ,
156
- ndim , nditer , negative , nested_iters , newaxis , nextafter , nonzero ,
157
- not_equal , number , object_ , ones , ones_like , outer , partition ,
154
+ matvec , matrix_transpose , max , maximum , may_share_memory , mean , memmap ,
155
+ min , min_scalar_type , minimum , mod , modf , moveaxis , multiply , nan ,
156
+ ndarray , ndim , nditer , negative , nested_iters , newaxis , nextafter ,
157
+ nonzero , not_equal , number , object_ , ones , ones_like , outer , partition ,
158
158
permute_dims , pi , positive , pow , power , printoptions , prod ,
159
159
promote_types , ptp , put , putmask , rad2deg , radians , ravel , recarray ,
160
160
reciprocal , record , remainder , repeat , require , reshape , resize ,
165
165
str_ , subtract , sum , swapaxes , take , tan , tanh , tensordot ,
166
166
timedelta64 , trace , transpose , true_divide , trunc , typecodes , ubyte ,
167
167
ufunc , uint , uint16 , uint32 , uint64 , uint8 , uintc , uintp , ulong ,
168
- ulonglong , unsignedinteger , unstack , ushort , var , vdot , vecdot , void ,
169
- vstack , where , zeros , zeros_like
168
+ ulonglong , unsignedinteger , unstack , ushort , var , vdot , vecdot ,
169
+ vecmat , void , vstack , where , zeros , zeros_like
170
170
)
171
171
172
- # NOTE: It's still under discussion whether these aliases
172
+ # NOTE: It's still under discussion whether these aliases
173
173
# should be removed.
174
174
for ta in ["float96" , "float128" , "complex192" , "complex256" ]:
175
175
try :
184
184
histogram , histogram_bin_edges , histogramdd
185
185
)
186
186
from .lib ._nanfunctions_impl import (
187
- nanargmax , nanargmin , nancumprod , nancumsum , nanmax , nanmean ,
187
+ nanargmax , nanargmin , nancumprod , nancumsum , nanmax , nanmean ,
188
188
nanmedian , nanmin , nanpercentile , nanprod , nanquantile , nanstd ,
189
189
nansum , nanvar
190
190
)
191
191
from .lib ._function_base_impl import (
192
- select , piecewise , trim_zeros , copy , iterable , percentile , diff ,
192
+ select , piecewise , trim_zeros , copy , iterable , percentile , diff ,
193
193
gradient , angle , unwrap , sort_complex , flip , rot90 , extract , place ,
194
194
vectorize , asarray_chkfinite , average , bincount , digitize , cov ,
195
195
corrcoef , median , sinc , hamming , hanning , bartlett , blackman ,
196
196
kaiser , trapezoid , trapz , i0 , meshgrid , delete , insert , append ,
197
197
interp , quantile
198
198
)
199
199
from .lib ._twodim_base_impl import (
200
- diag , diagflat , eye , fliplr , flipud , tri , triu , tril , vander ,
201
- histogram2d , mask_indices , tril_indices , tril_indices_from ,
200
+ diag , diagflat , eye , fliplr , flipud , tri , triu , tril , vander ,
201
+ histogram2d , mask_indices , tril_indices , tril_indices_from ,
202
202
triu_indices , triu_indices_from
203
203
)
204
204
from .lib ._shape_base_impl import (
207
207
take_along_axis , tile , vsplit
208
208
)
209
209
from .lib ._type_check_impl import (
210
- iscomplexobj , isrealobj , imag , iscomplex , isreal , nan_to_num , real ,
210
+ iscomplexobj , isrealobj , imag , iscomplex , isreal , nan_to_num , real ,
211
211
real_if_close , typename , mintypecode , common_type
212
212
)
213
213
from .lib ._arraysetops_impl import (
232
232
)
233
233
from .lib ._index_tricks_impl import (
234
234
diag_indices_from , diag_indices , fill_diagonal , ndindex , ndenumerate ,
235
- ix_ , c_ , r_ , s_ , ogrid , mgrid , unravel_index , ravel_multi_index ,
235
+ ix_ , c_ , r_ , s_ , ogrid , mgrid , unravel_index , ravel_multi_index ,
236
236
index_exp
237
237
)
238
238
246
246
# (experimental label) are not added here, because `from numpy import *`
247
247
# must not raise any warnings - that's too disruptive.
248
248
__numpy_submodules__ = {
249
- "linalg" , "fft" , "dtypes" , "random" , "polynomial" , "ma" ,
249
+ "linalg" , "fft" , "dtypes" , "random" , "polynomial" , "ma" ,
250
250
"exceptions" , "lib" , "ctypeslib" , "testing" , "typing" ,
251
251
"f2py" , "test" , "rec" , "char" , "core" , "strings" ,
252
252
}
@@ -395,7 +395,7 @@ def __getattr__(attr):
395
395
396
396
if attr in __former_attrs__ :
397
397
raise AttributeError (__former_attrs__ [attr ], name = None )
398
-
398
+
399
399
if attr in __expired_attributes__ :
400
400
raise AttributeError (
401
401
f"`np.{ attr } ` was removed in the NumPy 2.0 release. "
@@ -419,7 +419,7 @@ def __dir__():
419
419
globals ().keys () | __numpy_submodules__
420
420
)
421
421
public_symbols -= {
422
- "matrixlib" , "matlib" , "tests" , "conftest" , "version" ,
422
+ "matrixlib" , "matlib" , "tests" , "conftest" , "version" ,
423
423
"compat" , "distutils" , "array_api"
424
424
}
425
425
return list (public_symbols )
@@ -493,7 +493,7 @@ def _mac_os_check():
493
493
def hugepage_setup ():
494
494
"""
495
495
We usually use madvise hugepages support, but on some old kernels it
496
- is slow and thus better avoided. Specifically kernel version 4.6
496
+ is slow and thus better avoided. Specifically kernel version 4.6
497
497
had a bug fix which probably fixed this:
498
498
https://github.com/torvalds/linux/commit/7cf91a98e607c2f935dbcc177d70011e95b8faff
499
499
"""
@@ -502,7 +502,7 @@ def hugepage_setup():
502
502
# If there is an issue with parsing the kernel version,
503
503
# set use_hugepage to 0. Usage of LooseVersion will handle
504
504
# the kernel version parsing better, but avoided since it
505
- # will increase the import time.
505
+ # will increase the import time.
506
506
# See: #16679 for related discussion.
507
507
try :
508
508
use_hugepage = 1
0 commit comments