This class provides a simple wrapper for a pointer to an array. A purpose of this class is to enable the simple and safe exchange of data between C++ and Python.
Create array of size N. Array has ownership.
Construct array from a pointer. Array does not take ownership.
Disable copy construction, to avoid unanticipated sharing or copying of data. This means that an Array must always be passed as reference, or as a (possibly shared) pointer.
Return a NumPy array view of object
Return pointer to data (const version)
Return pointer to data (non-const version)
Return size of array
Return informal string representation (pretty-print). Note that the Array class is not a subclass of Variable (for efficiency) which means that one needs to call str() directly instead of using the info() function on Array objects.
The membership flag