### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Array objects »
- The N-dimensional array (`ndarray`) »

# numpy.ndarray.__array__

`ndarray.``__array__`()

  a.__array__(|dtype) -> reference if type unchanged, copy otherwise.

  Returns either a new reference to self if dtype is not given or a new array of provided data type if dtype is different from the current dtype of the array.

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Array objects »
- The N-dimensional array (`ndarray`) »