Some auxiliary functions. More...
#include <gpr/auxiliary/AdditionalFunctionality.h>
Public Member Functions | |
| AuxiliaryFunctionality () | |
| virtual | ~AuxiliaryFunctionality () |
| void | assembleMatrixOfRepetitiveCoordinates (const gpr::Coord &coord, gpr::EigenMatrix &matrix, Eigen::VectorXd &ind) |
| Assemble Eigen matrix with repetitive rows based on provided set of coordinates R. | |
| void | assembleVectorFromEnergyAndGradient (const gpr::Observation &observation, Eigen::VectorXd &vector) |
| Combine Energy and gradient into a single Eigen vector. | |
| template<typename D, template< typename > class T> | |
| void | repmatConst (const gpr::Index_t Ni, const gpr::Index_t Nj, const D value, T< D > &field) |
| Simple replica of the repmat from MATLAB. repmat(ref_value, Ni, Nj). | |
Some auxiliary functions.
Definition at line 23 of file AdditionalFunctionality.h.
|
inline |
Definition at line 25 of file AdditionalFunctionality.h.
|
inlinevirtual |
Definition at line 26 of file AdditionalFunctionality.h.
|
inline |
Assemble Eigen matrix with repetitive rows based on provided set of coordinates R.
This function mimics the following MATAB code:
The last column in the resulting matrix consists of repetitive integer indices.
| coord | Original set of coordinates |
| matrix | Matrix assembled using coord |
| ind | Vector of indices |
Definition at line 17 of file AdditionalFunctionality.inl.
|
inline |
Combine Energy and gradient into a single Eigen vector.
Definition at line 37 of file AdditionalFunctionality.inl.
|
inline |
Simple replica of the repmat from MATLAB. repmat(ref_value, Ni, Nj).
Definition at line 56 of file AdditionalFunctionality.inl.