Flow123d
DF_patch_fe_data_tables-c2acf05
|
#include <arena_vec.hh>
Public Member Functions | |
ArenaOVec () | |
Default constructor. More... | |
ArenaOVec (const ArenaOVec< T > &other) | |
Copy constructor. More... | |
ArenaOVec (T scalar_val) | |
Constructor. Set scalar_val. More... | |
ArenaOVec (const ArenaVec< T > &vec) | |
ArenaVec< T > | get_vec () const |
Convert ArenaOVec to ArenaVec and its. More... | |
ArenaOVec< T > & | operator= (const ArenaOVec< T > &other) |
ArenaOVec< T > | operator+ (const ArenaOVec< T > &other) const |
ArenaOVec< T > | operator* (const ArenaOVec< T > &other) const |
Public Member Functions inherited from ArenaVec< T > | |
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 |
Additional Inherited Members | |
Public Types inherited from ArenaVec< T > | |
typedef Eigen::Matrix< T, Eigen::Dynamic, 1 > | VecData |
Type definition. More... | |
typedef Eigen::Array< T, Eigen::Dynamic, 1 > | ArrayData |
Protected Member Functions inherited from ArenaVec< T > | |
ArenaVec (T *data_ptr, size_t data_size, PatchArena &arena) | |
Constructor. Allows create ArenaVec from ArenaOVec. More... | |
Protected Attributes inherited from ArenaVec< T > | |
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... | |
Define vector allocated in ArenaResource based on ArenaVec with overwrite multiplication operator that executes outer product.
Example of usage with conversions between ArenaVec and ArenaOVec:
If we consider that size of input vector 'a' is 'M' and size of input vector 'b' is 'N' then size of returned vector is 'M*N'.
Definition at line 258 of file arena_vec.hh.
Default constructor.
Definition at line 261 of file arena_vec.hh.
Copy constructor.
Definition at line 265 of file arena_vec.hh.
Constructor. Set scalar_val.
Definition at line 269 of file arena_vec.hh.
Constructor creates ArenaOVec on data of ArenaVec
Definition at line 275 of file arena_vec.hh.
Convert ArenaOVec to ArenaVec and its.
Definition at line 284 of file arena_vec.hh.
|
inline |
Definition at line 305 of file arena_vec.hh.
|
inline |
Definition at line 294 of file arena_vec.hh.
Definition at line 288 of file arena_vec.hh.