IntArray

class dolfin.cpp.common.IntArray(*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 of Variable (for efficiency) which means that one needs to call str directly instead of using the info function on Array objects.

Parameters:verbose (bool) –
Return type:std::string
thisown

The membership flag