34 std::vector<eis::Range> ranges;
35 std::string uniqueName;
36 bool defaultedParameters =
false;
41 void initRanges(
const std::string& paramStr,
size_t count,
bool defaultToRange);
44 virtual std::complex<fvalue> execute(fvalue omega)
47 std::cout<<
"warning incompleat model\n";
48 return std::complex<fvalue> (1,0);
51 virtual void setParamRanges(
const std::vector<eis::Range>& ranges);
52 virtual std::vector<eis::Range>& getParamRanges();
53 virtual std::vector<eis::Range> getParamRanges()
const;
54 virtual std::vector<eis::Range> getDefaultParameters(
bool range =
true)
const;
55 virtual size_t paramCount()
const {
return 0;};
57 virtual char getComponantChar()
const = 0;
66 virtual std::string componantName()
const = 0;
67 virtual std::string getCode(std::vector<std::string>& parameters);
68 virtual std::string getTorchScript(std::vector<std::string>& parameters);
69 virtual bool compileable();
71 std::string getUniqueName();
84 static Componant* createNewComponant(
char componant, std::string paramStr =
"",
size_t count = 1,
bool defaultToRange =
false);
85 static bool isValidComponantChar(
char componant);