cupynumeric.ndarray.view#
- ndarray.view( ) ndarray #
New view of array with the same data.
- Parameters:
dtype (data-type or ndarray sub-class, optional) – Data-type descriptor of the returned view, e.g., float32 or int16. Omitting it results in the view having the same data-type as the input array. This argument can also be specified as an ndarray sub-class, which then specifies the type of the returned object (this is equivalent to setting the
type
parameter).type (ndarray sub-class, optional) – Type of the returned view, e.g., ndarray or matrix. Again, omission of the parameter results in type preservation.
Notes
cuPyNumeric does not currently support type reinterpretation, or conversion to ndarray sub-classes; use
ndarray.__array__()
to convert to numpy.ndarray.See also
- Availability:
Multiple GPUs, Multiple CPUs