|
| array2d (std::array< size_type, 2 > shape, value_type value=T(), const Allocator &alloc=Allocator()) |
| Construct a two dimensional array. More...
|
|
| array2d (size_type rows, size_type cols, value_type value=T(), const Allocator &alloc=Allocator()) |
| Construct a two dimensional array. More...
|
|
template<typename Vector > |
| array2d (std::array< size_type, 2 > shape, Vector &&x) |
|
constexpr | array2d (std::initializer_list< std::initializer_list< T >> list) |
| Construct a two dimensional array using nested initializer lists. More...
|
|
| array2d (const array2d &x)=default |
| Copy constructor.
|
|
| array2d (array2d &&x)=default |
| Move constructor.
|
|
| ~array2d ()=default |
| Destructor.
|
|
array2d & | operator= (const array2d &x)=default |
| Copy assignment.
|
|
array2d & | operator= (array2d &&x)=default |
| Move assignment.
|
|
constexpr reference | operator() (size_type i, size_type j) |
| Return a reference to the element at specified location (i, j) More...
|
|
constexpr const_reference | operator() (size_type i, size_type j) const |
| Return a reference to the element at specified location (i, j) (const version) More...
|
|
constexpr xtl::span< value_type > | row (size_type i) |
| Access a row in the array. More...
|
|
constexpr xtl::span< const value_type > | row (size_type i) const |
| Access a row in the array (const version) More...
|
|
constexpr value_type * | data () noexcept |
| Get pointer to the first element of the underlying storage. More...
|
|
constexpr const value_type * | data () const noexcept |
| Get pointer to the first element of the underlying storage (const version) More...
|
|
constexpr size_type | size () const noexcept |
| Returns the number of elements in the array. More...
|
|
constexpr std::array< size_type, 2 > | strides () const noexcept |
| Returns the strides of the array.
|
|
constexpr bool | empty () const noexcept |
| Checks whether the container is empty. More...
|
|
template<typename T, class Allocator = std::allocator<T>>
class dolfinx::array2d< T, Allocator >
This class provides a dynamic 2-dimensional row-wise array data structure.