Class representing a map of result types to result arrays. More...
#include <ikarus/finiteelements/ferequirements.hh>
Public Types | |
using | ResultArray = Eigen::Matrix< ParameterType, Eigen::Dynamic, Eigen::Dynamic, 0, 9, 3 > |
Public Member Functions | |
void | insertOrAssignResult (ResultType &&resultType, const ResultArray &resultArray) |
Insert or assign a result to the map. More... | |
ResultArray & | getResult (const ResultType &resultType) |
Get the result array for a specific result type. More... | |
auto & | getSingleResult () |
Get the result array for a single result type. More... | |
This class provides a mapping between different result types and their corresponding result arrays. It allows inserting or assigning results and retrieving results based on the result type.
ParameterType | Type of the parameters, defaulting to double. |
using Ikarus::ResultTypeMap< ParameterType >::ResultArray = Eigen::Matrix<ParameterType, Eigen::Dynamic, Eigen::Dynamic, 0, 9, 3> |
|
inline |
This function retrieves the result array for the specified result type.
resultType | The type of the result to be retrieved. |
std::out_of_range | if the specified result type is not found in the map. |
|
inline |
This function retrieves the result array when only a single result type is present in the map.
Dune::RangeError | if the map does not contain a single result. |
|
inline |
This function inserts or assigns the specified result array to the map with the given result type.
resultType | The type of the result to be inserted or assigned. |
resultArray | The result array to be inserted or assigned. |