IntArray¶
-
class
dolfin.cpp.common.IntArray(*args)¶ Bases:
objectThis 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.
Construct array from a pointer.
Arraydoes not take ownership.Parameters: - N (std::size_t) –
- * x (T) –
-
array()¶ Return a NumPy array view of object
-
data()¶ Return pointer to data (const version)
Return type: const T *
-
size()¶ Return size of array.
Return type: std::size_t
-
str()¶ Return informal string representation (pretty-print). Note that the
Arrayclass is not a subclass ofVariable(for efficiency) which means that one needs to callstrdirectly instead of using theinfofunction onArrayobjects.Parameters: verbose (bool) – Return type: std::string
-
thisown¶ The membership flag