|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Container for multidimensional numeric data. More...
#include <rexlib/core/ndarray/array.hpp>
Public Member Functions | |
| array () | |
| Construct an uninitialized array. | |
| array (std::shared_ptr< const array_implementation > implementation) noexcept | |
| Construct an array from a shared pointer to the implementation. | |
| array (std::shared_ptr< buffer > storage, array_descriptor descriptor) | |
| Construct an array from its components. | |
| array (const array &other)=delete | |
| array (array &&other) noexcept | |
| array & | operator= (const array &other)=delete |
| array & | operator= (array &&other) noexcept |
| const array_descriptor & | get_descriptor () const noexcept |
| Get the descriptor of this array. | |
| buffer * | get_storage () noexcept |
| Get the storage of this array. | |
| const buffer * | get_storage () const noexcept |
| Get the storage of this array. | |
| std::shared_ptr< buffer > | share_storage () noexcept |
| Get a shared pointer to the storage of this array. | |
| std::shared_ptr< const buffer > | share_storage () const noexcept |
| Get the storage of this array. | |
| array | share () noexcept |
| Obtain an alias for this array. | |
| const_array | share () const noexcept |
| Obtain a read-only alias for this array. | |
| const_array | share_const () const noexcept |
| Obtain a read-only alias for this array. | |
| access_hazard_tracker * | get_access_hazard_tracker () const noexcept |
| Get the tracker of the commands that access the memory of this array. | |
| const array_implementation * | get_implementation () const noexcept |
| Get a pointer to the implementation. | |
Container for multidimensional numeric data.
This class allows to represent multidimensional numeric data in a hardware agnostic manner. It serves as a foundational basis to define interfaces that operate in such date. The array is represented as the (storage, descriptor) pair. The storage refers to an untyped region of memory (which may reside in accelerator hardware like GPUs). The descriptor defines the interpretation of that data to give raise to the notion of dimensions.
|
explicitnoexcept |
Construct an array from a shared pointer to the implementation.
| implementation | The implementation to be owned by this. |
| rexlib::array::array | ( | std::shared_ptr< buffer > | storage, |
| array_descriptor | descriptor | ||
| ) |
Construct an array from its components.
| storage | Buffer used to store the data contained in the array. |
| descriptor | The interpretation of the buffer memory. |
|
noexcept |
Get the tracker of the commands that access the memory of this array.
Arrays obtained from one another share one tracker. Arrays built separately over the same storage do not.
|
noexcept |
Get the descriptor of this array.
|
noexcept |
Get a pointer to the implementation.
Get the storage of this array.
|
noexcept |
Get the storage of this array.
|
noexcept |
Obtain a read-only alias for this array.
|
noexcept |
Obtain an alias for this array.
|
noexcept |
Obtain a read-only alias for this array.
Equivalent to the const overload of share(). The distinct name makes the read-only result explicit when called on a mutable array.
Get the storage of this array.
|
noexcept |
Get a shared pointer to the storage of this array.