template<typename T>
class Vector< T, EIGEN_BASE >
Definition at line 91 of file Vector_eigen.hpp.
|
| Vector (const Vector< T > &v) |
| Copy the vector.
|
|
| Vector (const Vector< T > &&v) |
| Copy the vector.
|
|
| Vector (size_t n) |
| Create a vector with n elements.
|
|
| Vector () |
| Create a vector with 0 elements.
|
|
void | resize (size_t row, size_t l_row) |
| Resize the Vector.
|
|
void | insert (size_t i, T val) |
| Return a reference to the vector element.
|
|
T & | insert (size_t i) |
| Return a reference to the vector element.
|
|
const T & | insert (size_t i) const |
| Return a reference to the vector element.
|
|
const T & | operator() (size_t i) const |
| Return a reference to the vector element.
|
|
T & | operator() (size_t i) |
| Return a reference to the vector element.
|
|
const Eigen::Matrix< T, Eigen::Dynamic, 1 > & | getVec () const |
| Get the Eigen Vector object.
|
|
Eigen::Matrix< T, Eigen::Dynamic, 1 > & | getVec () |
| Get the Eigen Vector object.
|
|
void | scatter () |
| Scatter the vector information to the other processors.
|
|
void | fromFile (std::string file) |
| Load from file.
|
|
Vector< T > & | operator= (const Vector< T > &v) |
| Copy the vector.
|
|
Vector< T > & | operator= (const Vector< T > &&v) |
| Copy the vector.
|
|
Vector< T > & | operator= (Eigen::Matrix< T, Eigen::Dynamic, 1 > &v) |
| Copy the vector (it is used for special purpose)
|
|
|
void | collect () const |
| Here we collect the full vector on master.
|
|
void | setEigen () const |
| Set the Eigen internal vector.
|
|
void | build_map () const |
| Build the map.
|
|
◆ Vector() [1/4]
◆ Vector() [2/4]
◆ Vector() [3/4]
Create a vector with n elements.
- Parameters
-
n | number of elements in the vector |
Definition at line 188 of file Vector_eigen.hpp.
◆ Vector() [4/4]
◆ build_map()
template<typename T >
void Vector< T, EIGEN_BASE >::build_map |
( |
| ) |
const |
|
inlineprivate |
◆ collect()
template<typename T >
void Vector< T, EIGEN_BASE >::collect |
( |
| ) |
const |
|
inlineprivate |
◆ fromFile()
template<typename T >
void Vector< T, EIGEN_BASE >::fromFile |
( |
std::string |
file | ) |
|
|
inline |
◆ getVec() [1/2]
template<typename T >
Eigen::Matrix< T, Eigen::Dynamic, 1 > & Vector< T, EIGEN_BASE >::getVec |
( |
| ) |
|
|
inline |
◆ getVec() [2/2]
template<typename T >
const Eigen::Matrix< T, Eigen::Dynamic, 1 > & Vector< T, EIGEN_BASE >::getVec |
( |
| ) |
const |
|
inline |
◆ insert() [1/3]
template<typename T >
T & Vector< T, EIGEN_BASE >::insert |
( |
size_t |
i | ) |
|
|
inline |
Return a reference to the vector element.
- Parameters
-
- Returns
- reference to the element vector
Definition at line 235 of file Vector_eigen.hpp.
◆ insert() [2/3]
template<typename T >
const T & Vector< T, EIGEN_BASE >::insert |
( |
size_t |
i | ) |
const |
|
inline |
Return a reference to the vector element.
- Parameters
-
- Returns
- reference to the element vector
Definition at line 253 of file Vector_eigen.hpp.
◆ insert() [3/3]
template<typename T >
void Vector< T, EIGEN_BASE >::insert |
( |
size_t |
i, |
|
|
T |
val |
|
) |
| |
|
inline |
Return a reference to the vector element.
- Parameters
-
Definition at line 217 of file Vector_eigen.hpp.
◆ operator()() [1/2]
template<typename T >
T & Vector< T, EIGEN_BASE >::operator() |
( |
size_t |
i | ) |
|
|
inline |
Return a reference to the vector element.
- Warning
- The element must exist
- Parameters
-
- Returns
- reference to the element vector
Definition at line 294 of file Vector_eigen.hpp.
◆ operator()() [2/2]
template<typename T >
const T & Vector< T, EIGEN_BASE >::operator() |
( |
size_t |
i | ) |
const |
|
inline |
Return a reference to the vector element.
- Warning
- The element must exist
- Parameters
-
- Returns
- reference to the element vector
Definition at line 273 of file Vector_eigen.hpp.
◆ operator=() [1/3]
◆ operator=() [2/3]
◆ operator=() [3/3]
template<typename T >
Vector< T > & Vector< T, EIGEN_BASE >::operator= |
( |
Eigen::Matrix< T, Eigen::Dynamic, 1 > & |
v | ) |
|
|
inline |
Copy the vector (it is used for special purpose)
- Warning
- v MUST contain at least all the elements of the vector
- Parameters
-
v | base eigen vector to copy |
Definition at line 410 of file Vector_eigen.hpp.
◆ resize()
template<typename T >
void Vector< T, EIGEN_BASE >::resize |
( |
size_t |
row, |
|
|
size_t |
l_row |
|
) |
| |
|
inline |
◆ scatter()
template<typename T >
void Vector< T, EIGEN_BASE >::scatter |
( |
| ) |
|
|
inline |
Scatter the vector information to the other processors.
Eigen does not have a real parallel vector, so in order to work we have to scatter the vector from one processor to the other
Definition at line 339 of file Vector_eigen.hpp.
◆ setEigen()
template<typename T >
void Vector< T, EIGEN_BASE >::setEigen |
( |
| ) |
const |
|
inlineprivate |
◆ invalid
template<typename T >
T Vector< T, EIGEN_BASE >::invalid |
|
private |
◆ map
template<typename T >
std::unordered_map<size_t,size_t> Vector< T, EIGEN_BASE >::map |
|
mutableprivate |
◆ prc
◆ row_val
◆ row_val_recv
◆ sz
template<typename T >
Eigen::Matrix<T, Eigen::Dynamic, 1> Vector< T, EIGEN_BASE >::v |
|
mutableprivate |
The documentation for this class was generated from the following file: