Navigation
index
modules
|
modules
|
next
|
previous
|
Numpy and Scipy Documentation
»
NumPy User Guide
»
Numpy basics
ΒΆ
Data types
Array types and conversions between types
Array Scalars
Array creation
Introduction
Converting Python array_like Objects to Numpy Arrays
Intrinsic Numpy Array Creation
Reading Arrays From Disk
I/O with Numpy
Importing data with
genfromtxt
Indexing
Assignment vs referencing
Single element indexing
Other indexing options
Index arrays
Indexing Multi-dimensional arrays
Boolean or “mask” index arrays
Combining index arrays with slices
Structural indexing tools
Assigning values to indexed arrays
Dealing with variable numbers of indices within programs
Broadcasting
General Broadcasting Rules
Byte-swapping
Introduction to byte ordering and ndarrays
Changing byte ordering
Structured arrays (aka “Record arrays”)
Structured Arrays (aka Record Arrays)
Subclassing ndarray
Credits
Introduction
View casting
Creating new from template
Relationship of view casting and new-from-template
Implications for subclassing
Simple example - adding an extra attribute to ndarray
Slightly more realistic example - attribute added to existing array
__array_wrap__
for ufuncs
Extra gotchas - custom
__del__
methods and ndarray.base
Previous topic
How to find documentation
Next topic
Data types
This Page
Show Source
Edit page
Quick search
Enter search terms or a module, class or function name.
Navigation
index
modules
|
modules
|
next
|
previous
|
Numpy and Scipy Documentation
»
NumPy User Guide
»