void resetParam(AzParam &azp, const char *pfx, bool is_warmstart=false) { azp.reset_prefix(pfx); azp.vFloat(kw_rho, &rho); azp.vFloat(kw_eps, &eps); coeff = 1; azp.reset_prefix(); }
/*------------------------------------------------------------*/ int AzpCNet3_multi::getParam_dsno(AzParam &azp, const char *pfx, int dflt_dsno) const { azp.reset_prefix(pfx); int dsno = dflt_dsno; azp.vInt(kw_dsno, &dsno); azp.reset_prefix(); if (dsno < 0) dsno = dflt_dsno; /* if omitted, use dataset#0 */ return dsno; }
virtual void resetParam(AzParam &azp, const char *pfx, bool is_warmstart) { azp.reset_prefix(pfx); if (!is_warmstart) { azp.vStr(kw_activ_typ, &s_activ_typ); if (s_activ_typ.length() > 0) typ = *s_activ_typ.point(); azp.vFloat(kw_trunc, &trunc); } azp.swOn(&do_stat, kw_do_stat); azp.reset_prefix(); }
void resetParam(AzParam &azp, const char *pfx, bool is_warmstart) { azp.reset_prefix(pfx); if (!is_warmstart) { azp.vStr(kw_pl_type, &s_pl_type); if (s_pl_type.length() > 0) ptyp = *s_pl_type.point(); else ptyp = AzpPoolingDflt_None; azp.vInt(kw_pl_num, &pl_num); azp.vInt(kw_pl_sz, &pl_sz); azp.vInt(kw_pl_step, &pl_step); azp.swOff(&do_pl_simple_grid, kw_no_pl_simple_grid); } azp.reset_prefix(); }