UIntArray

class dolfin.cpp.common.UIntArray(*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.

Overloaded versions

  • Array(N)

    Create array of size N. Array has ownership.

  • Array(N, x)

    Construct array from a pointer. Array does not take ownership.

  • Array(other)

    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.

array()

Return a NumPy array view of object

data()

Overloaded versions

  • data()

    Return pointer to data (const version)

  • data()

    Return pointer to data (non-const version)

size()

Return size of array

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.

thisown

The membership flag