Flow123d
DF_patch_fe_data_tables-dc3adc1
|
#include <arena_resource.hh>
Public Types | |
typedef Eigen::Matrix< T, Eigen::Dynamic, 1 > | VecData |
Type definition. More... | |
typedef Eigen::Array< T, Eigen::Dynamic, 1 > | ArrayData |
Public Member Functions | |
ArenaVec () | |
Default constructor, set invalid data pointer. More... | |
ArenaVec (T scalar_val) | |
ArenaVec (size_t data_size, AssemblyArena &arena) | |
ArenaVec (const ArenaVec< T > &other) | |
Copy constructor. More... | |
Eigen::Map< VecData > | eigen_map () |
const Eigen::Map< VecData > | eigen_map () const |
Smae as previous but with const modifier. More... | |
Eigen::Map< ArrayData > | array_map () |
const Eigen::Map< ArrayData > | array_map () const |
Smae as previous but with const modifier. More... | |
T * | data_ptr () |
Return data pointer (development method) More... | |
const T * | data_ptr () const |
Smae as previous but return const pointer. More... | |
size_t | data_size () const |
Getter for data_size_. More... | |
ArenaVec< T > | sqrt () const |
ArenaVec< T > | inverse () const |
ArenaVec< T > | abs () const |
T & | operator() (std::size_t item) |
For development only. TODO remove. More... | |
const T & | operator() (std::size_t item) const |
For development only. TODO remove. More... | |
ArenaVec< T > | operator+ (const ArenaVec< T > &other) const |
ArenaVec< T > | operator- (const ArenaVec< T > &other) const |
ArenaVec< T > | operator* (T multi) const |
ArenaVec< T > | operator* (const ArenaVec< T > &other) const |
ArenaVec< T > | operator/ (T div_by) const |
ArenaVec< T > | operator/ (const ArenaVec< T > &other) const |
Protected Member Functions | |
ArenaVec (T *data_ptr, size_t data_size, AssemblyArena &arena) | |
Constructor. Allows create ArenaVec from ArenaOVec. More... | |
Protected Attributes | |
T * | data_ptr_ |
Pointer to data array. More... | |
size_t | data_size_ |
Length of data array. More... | |
AssemblyArena * | arena_ |
Pointer to Arena. More... | |
T | scalar_val_ |
Scalar value of T type. More... | |
Define vector allocated in Arena and aligned to SIMD size.
Definition at line 112 of file arena_resource.hh.
Definition at line 116 of file arena_resource.hh.
Type definition.
Definition at line 115 of file arena_resource.hh.
Default constructor, set invalid data pointer.
Definition at line 119 of file arena_resource.hh.
Constructor. Set scalar value
Definition at line 125 of file arena_resource.hh.
|
inline |
Constructor. Set sizes and allocate data pointer
Definition at line 131 of file arena_resource.hh.
Copy constructor.
Definition at line 137 of file arena_resource.hh.
|
inlineprotected |
Constructor. Allows create ArenaVec from ArenaOVec.
Definition at line 280 of file arena_resource.hh.
Definition at line 201 of file arena_resource.hh.
Maps data pointer to Eigen Map of dimensions given data_size_ and returns it.
Definition at line 159 of file arena_resource.hh.
Smae as previous but with const modifier.
Definition at line 165 of file arena_resource.hh.
|
inline |
Return data pointer (development method)
Definition at line 171 of file arena_resource.hh.
|
inline |
Smae as previous but return const pointer.
Definition at line 176 of file arena_resource.hh.
|
inline |
Getter for data_size_.
Definition at line 181 of file arena_resource.hh.
Maps data pointer to Eigen Map of dimensions given data_size_ and returns it.
Definition at line 145 of file arena_resource.hh.
Smae as previous but with const modifier.
Definition at line 151 of file arena_resource.hh.
Definition at line 193 of file arena_resource.hh.
|
inline |
For development only. TODO remove.
Definition at line 210 of file arena_resource.hh.
|
inline |
For development only. TODO remove.
Definition at line 217 of file arena_resource.hh.
Definition at line 250 of file arena_resource.hh.
Definition at line 242 of file arena_resource.hh.
Definition at line 222 of file arena_resource.hh.
Definition at line 232 of file arena_resource.hh.
Definition at line 268 of file arena_resource.hh.
Definition at line 260 of file arena_resource.hh.
Definition at line 185 of file arena_resource.hh.
|
protected |
Pointer to Arena.
Definition at line 285 of file arena_resource.hh.
|
protected |
Pointer to data array.
Definition at line 283 of file arena_resource.hh.
|
protected |
Length of data array.
Definition at line 284 of file arena_resource.hh.
|
protected |
Scalar value of T type.
Definition at line 286 of file arena_resource.hh.