46 #ifndef MUELU_AVATARINTERFACE_HPP
47 #define MUELU_AVATARINTERFACE_HPP
50 #include "Teuchos_Comm.hpp"
52 #include "Teuchos_ArrayRCP.hpp"
56 #ifdef HAVE_MUELU_AVATAR
60 typedef struct Avatar_struct Avatar_handle;
70 class AvatarInterface :
public BaseClass {
77 , params_(inParams){};
79 ~AvatarInterface() { Cleanup(); }
99 int hybrid(
float* probabilities, std::vector<int> acceptableCombos)
const;
101 int highProb(
float* probabilities, std::vector<int> acceptableCombos)
const;
103 int lowCrash(
float* probabilities, std::vector<int> acceptableCombos)
const;
105 int weighted(
float* probabilities, std::vector<int> acceptableCombos)
const;
110 void GenerateFeatureString(
const Teuchos::ParameterList& problemFeatures, std::string& featureString)
const;
111 std::string ParamsToString(
const std::vector<int>& indices)
const;
112 void SetIndices(
int id, std::vector<int>& indices)
const;
114 void UnpackMueLuMapping();
123 int avatarGoodClass_;
127 Avatar_handle* avatarHandle_;
138 #endif // HAVE_MUELU_AVATAR
140 #endif // MUELU_AVATARINTERFACE_HPP