Flow123d
DF_patch_fe_data_tables-6a2764f
|
#include <arena_vec.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, PatchArena &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... | |
PatchArena & | arena () |
Getter for arena_. More... | |
void | set_patch_arena (PatchArena &arena) |
Set pointer to PatchArena. 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) |
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, PatchArena &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... | |
PatchArena * | arena_ |
Pointer to Arena where intermediate calculations and results are stored, should be changed by set_patch_arena. More... | |
T | scalar_val_ |
Scalar value of T type. More... | |
Friends | |
class | ArenaOVec< T > |
Define vector allocated in ArenaResource and aligned to SIMD size.
Definition at line 35 of file arena_vec.hh.
Definition at line 39 of file arena_vec.hh.
Type definition.
Definition at line 38 of file arena_vec.hh.
Default constructor, set invalid data pointer.
Definition at line 42 of file arena_vec.hh.
Constructor. Set scalar value
Definition at line 48 of file arena_vec.hh.
|
inline |
Constructor. Set sizes and allocate data pointer
Definition at line 54 of file arena_vec.hh.
Copy constructor.
Definition at line 60 of file arena_vec.hh.
|
inlineprotected |
Constructor. Allows create ArenaVec from ArenaOVec.
Definition at line 222 of file arena_vec.hh.
Definition at line 135 of file arena_vec.hh.
|
inline |
Getter for arena_.
Definition at line 109 of file arena_vec.hh.
Maps data pointer to Eigen Map of dimensions given data_size_ and returns it.
Definition at line 82 of file arena_vec.hh.
Smae as previous but with const modifier.
Definition at line 88 of file arena_vec.hh.
|
inline |
Return data pointer (development method)
Definition at line 94 of file arena_vec.hh.
|
inline |
Smae as previous but return const pointer.
Definition at line 99 of file arena_vec.hh.
|
inline |
Getter for data_size_.
Definition at line 104 of file arena_vec.hh.
Maps data pointer to Eigen Map of dimensions given data_size_ and returns it.
Definition at line 68 of file arena_vec.hh.
Smae as previous but with const modifier.
Definition at line 74 of file arena_vec.hh.
Definition at line 127 of file arena_vec.hh.
|
inline |
For development only. TODO remove.
Definition at line 144 of file arena_vec.hh.
|
inline |
For development only. TODO remove.
Definition at line 151 of file arena_vec.hh.
Definition at line 192 of file arena_vec.hh.
Definition at line 184 of file arena_vec.hh.
Definition at line 164 of file arena_vec.hh.
Definition at line 174 of file arena_vec.hh.
Definition at line 210 of file arena_vec.hh.
Definition at line 202 of file arena_vec.hh.
|
inline |
Set pointer to PatchArena.
Definition at line 114 of file arena_vec.hh.
Definition at line 119 of file arena_vec.hh.
|
friend |
Definition at line 228 of file arena_vec.hh.
|
protected |
Pointer to Arena where intermediate calculations and results are stored, should be changed by set_patch_arena.
Definition at line 227 of file arena_vec.hh.
|
protected |
Pointer to data array.
Definition at line 225 of file arena_vec.hh.
|
protected |
Length of data array.
Definition at line 226 of file arena_vec.hh.
|
protected |
Scalar value of T type.
Definition at line 228 of file arena_vec.hh.