A class to contain the data and executors for a field and define some basic operations.
More...
|
| | Array (const Executor &exec, localIdx size) |
| | Create an uninitialized Array with a given size on an executor.
|
| |
| | Array (const Executor &exec, const ValueType *in, localIdx size, Executor hostExec=SerialExecutor()) |
| | Create a Array with a given size from existing memory on an executor.
|
| |
| | Array (const Executor &exec, localIdx size, ValueType value) |
| | Create a Array with a given size on an executor and uniform value.
|
| |
| | Array (const Executor &exec, std::vector< ValueType > in) |
| | Create a Array from a given Array of values on an executor.
|
| |
| | Array (const Executor &exec, const Array< ValueType > &in) |
| | Create a Array as a copy of a Array on a specified executor.
|
| |
| | Array (const Array< ValueType > &rhs) |
| | Copy constructor, creates a new field with the same size and data as the parsed field.
|
| |
| | Array (Array< ValueType > &&rhs) noexcept |
| | Move constructor, moves the data from the parsed field to the new field.
|
| |
| | ~Array () |
| | Destroy the Array object.
|
| |
| template<typename func > |
| void | apply (func f) |
| | applies a functor, transformation, to the field
|
| |
| Array< ValueType > | copyToExecutor (Executor dstExec) const |
| | Copies the data to a new field on a specific executor.
|
| |
| Array< ValueType > | copyToHost () const |
| | Returns a copy of the field back to the host.
|
| |
| void | copyToHost (Array< ValueType > &result) |
| | Copies the data (from anywhere) to a parsed host field.
|
| |
| Array & | operator[] (const localIdx i)=delete |
| |
| const Array & | operator[] (const localIdx i) const =delete |
| |
| void | operator= (const ValueType &rhs) |
| | Assignment operator, Sets the field values to that of the passed value.
|
| |
| void | operator= (const Array< ValueType > &rhs) |
| | Assignment operator, Sets the field values to that of the parsed field.
|
| |
| void | resize (const localIdx size) |
| | Resizes the field to a new size.
|
| |
| ValueType * | data () |
| | Direct access to the underlying field data.
|
| |
| const ValueType * | data () const |
| | Direct access to the underlying field data.
|
| |
| const Executor & | exec () const |
| | Gets the executor associated with the field.
|
| |
| localIdx | size () const |
| | Gets the size of the field.
|
| |
| label | ssize () const |
| | Gets the size of the field.
|
| |
| bool | empty () const |
| | Checks if the field is empty.
|
| |
| View< ValueType > | view () &&=delete |
| |
| View< const ValueType > | view () const &&=delete |
| |
| View< ValueType > | view () & |
| | Gets the field as a view.
|
| |
| View< const ValueType > | view () const & |
| | Gets the field as a view.
|
| |
| View< ValueType > | view (std::pair< localIdx, localIdx > range) &&=delete |
| |
| View< const ValueType > | view (std::pair< localIdx, localIdx > range) const &&=delete |
| |
| View< ValueType > | view (std::pair< localIdx, localIdx > range) & |
| | Gets a sub view of the field as a view.
|
| |
| View< const ValueType > | view (std::pair< localIdx, localIdx > range) const & |
| | Gets a sub view of the field as a view.
|
| |
| std::pair< localIdx, localIdx > | range () const |
| | Gets the range of the field.
|
| |
template<typename ValueType>
class NeoN::Array< ValueType >
A class to contain the data and executors for a field and define some basic operations.
Definition at line 29 of file array.hpp.