DoubleArray¶
-
class
dolfin.cpp.common.
DoubleArray
(*args)¶ Bases:
object
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.
Construct array from a pointer.
Array
does 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
Array
class is not a subclass ofVariable
(for efficiency) which means that one needs to callstr
directly instead of using theinfo
function onArray
objects.Parameters: verbose (bool) – Return type: std::string
-
thisown
¶ The membership flag