10 #ifndef MUELU_AVATARINTERFACE_HPP
11 #define MUELU_AVATARINTERFACE_HPP
14 #include "Teuchos_Comm.hpp"
16 #include "Teuchos_ArrayRCP.hpp"
20 #ifdef HAVE_MUELU_AVATAR
24 typedef struct Avatar_struct Avatar_handle;
34 class AvatarInterface :
public BaseClass {
41 , params_(inParams){};
43 ~AvatarInterface() { Cleanup(); }
63 int hybrid(
float* probabilities, std::vector<int> acceptableCombos)
const;
65 int highProb(
float* probabilities, std::vector<int> acceptableCombos)
const;
67 int lowCrash(
float* probabilities, std::vector<int> acceptableCombos)
const;
69 int weighted(
float* probabilities, std::vector<int> acceptableCombos)
const;
74 void GenerateFeatureString(
const Teuchos::ParameterList& problemFeatures, std::string& featureString)
const;
75 std::string ParamsToString(
const std::vector<int>& indices)
const;
76 void SetIndices(
int id, std::vector<int>& indices)
const;
78 void UnpackMueLuMapping();
91 Avatar_handle* avatarHandle_;
102 #endif // HAVE_MUELU_AVATAR
104 #endif // MUELU_AVATARINTERFACE_HPP