|
humoto
|
Analog of 'sol_structure' struct in Octave code. [determine_solution_structure.m].
Definition at line 33 of file solution.h.
#include <solution.h>

Public Member Functions | |
| SolutionStructure () | |
| Default constructor. More... | |
| virtual | ~SolutionStructure () |
| Virtual destructor. More... | |
| void | addSolutionPart (const std::string &id, const std::size_t length) |
| Add part of the solution. More... | |
| Eigen::Block< Eigen::MatrixXd > | getMatrixPart (const std::string &id, Eigen::MatrixXd &matrix) const |
| Get part of a matrix corresponding to given part of the solution. More... | |
| const Eigen::Block< const Eigen::MatrixXd > | getMatrixPart (const std::string &id, const Eigen::MatrixXd &matrix) const |
| Get part of a matrix corresponding to given part of the solution. More... | |
| std::size_t | getNumberOfVariables () const |
| Get total number of variables in the solution vector. More... | |
| Location | getSolutionPartLocation (const std::string &id) const |
| Get location of a data in the solution vector. More... | |
| bool | isNonEmpty () const |
| Checks if the structure is empty or not. More... | |
| void | reset () |
| Reset. More... | |
Protected Attributes | |
| std::size_t | number_of_variables_ |
| std::map< std::string, Location > | variable_map_ |
|
inlinevirtual |
Virtual destructor.
Definition at line 44 of file solution.h.
|
inline |
Default constructor.
Definition at line 50 of file solution.h.
|
inline |
Add part of the solution.
| [in] | id | string id of the solution part |
| [in] | length | length of the solution part |
Definition at line 72 of file solution.h.
|
inline |
Get part of a matrix corresponding to given part of the solution.
| [in] | id | id of the data block |
| [in] | matrix | matrix |
Definition at line 147 of file solution.h.
|
inline |
Get part of a matrix corresponding to given part of the solution.
| [in] | id | id of the data block |
| [in] | matrix | matrix |
Definition at line 163 of file solution.h.
|
inline |
Get total number of variables in the solution vector.
Definition at line 109 of file solution.h.
|
inline |
Get location of a data in the solution vector.
| [in] | id | id of the data block |
Definition at line 122 of file solution.h.
|
inline |
Checks if the structure is empty or not.
Definition at line 88 of file solution.h.
|
inline |
Reset.
Definition at line 59 of file solution.h.
|
protected |
Definition at line 36 of file solution.h.
|
protected |
Definition at line 37 of file solution.h.
1.8.13