Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
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.
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.
Return size of array
Access value of given entry (const version)
Access value of given entry (non-const version)
Return pointer to data (const version)
Return pointer to data (non-const version)
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.