33 void setDefaultParam(
size_t count,
bool defaultToRange);
35 Cpe(std::string paramStr,
size_t count = 10,
bool defaultToRange =
false);
36 Cpe(fvalue q, fvalue alpha);
38 virtual std::complex<fvalue> execute(fvalue omega)
override;
39 virtual size_t paramCount()
const override;
40 virtual char getComponantChar()
const override;
41 static constexpr char staticGetComponantChar(){
return 'p';}
42 virtual std::string componantName()
const override {
return "ConstantPhase";}
43 virtual ~Cpe() =
default;
44 virtual std::vector<eis::Range> getDefaultParameters(
bool range =
true)
const override;
45 virtual std::string getCode(std::vector<std::string>& parameters)
override;
46 virtual std::string getTorchScript(std::vector<std::string>& parameters)
override;