#include <poly2d_base.h>
Public Member Functions | |
void | Collect () |
void | Compress () |
void | DecPow (int nvar) |
void | Diff (int nvar) |
double | Eval () |
double | GetVal () |
double | GetVal (const double r, const double z) |
void | IncPow (int nvar) |
void | Int (int nvar) |
bool | IsOn () |
bool | IsRZSet () |
poly2d_base () | |
poly2d_base (const poly2d_base &S) | |
void | Print (std::ostream &out=std::cout, const std::streamsize prec=5) |
void | Scale (const double C) |
virtual | ~poly2d_base () |
Static Public Member Functions | |
static unsigned | Count () |
static int | GetMaxPow () |
static void | IncNPwr (const unsigned N) |
static void | PrintTab (std::ostream &out=std::cout, const std::streamsize prec=5) |
static void | SetPoint (const double r, const double z) |
Static Protected Member Functions | |
static void | AdjustTab () |
static void | FillTable (const double r, const double z) |
static void | SetTabSize (const unsigned N) |
Protected Attributes | |
std::vector< poly2d_term > | data |
unsigned | max_pwr |
Static Protected Attributes | |
static const double | MIN_COEFF = DBL_EPSILON |
static unsigned | NPwr = 0 |
static unsigned | NTab = 0 |
static std::set< poly2d_base * > | poly2d_base_set |
static double | rval = 0. |
static double ** | rz_pow = 0 |
static bool | rz_set = false |
static double | zval = 0. |
Definition at line 44 of file poly2d_base.h.
|
inline |
Definition at line 79 of file poly2d_base.h.
References max_pwr, and poly2d_base_set.
|
inline |
Definition at line 83 of file poly2d_base.h.
References data, max_pwr, and poly2d_base_set.
|
virtual |
Definition at line 49 of file poly2d_base.cc.
References GetMaxPow(), max_pwr, NPwr, NTab, poly2d_base_set, rz_pow, rz_set, and zval.
|
staticprotected |
Definition at line 115 of file poly2d_base.cc.
References GetMaxPow(), NPwr, NTab, and SetTabSize().
void poly2d_base::Collect | ( | ) |
Definition at line 166 of file poly2d_base.cc.
References funct::C, data, max_pwr, MIN_COEFF, and np.
Referenced by Compress(), magfieldparam::rz_harm_poly::LadderDwn(), and magfieldparam::rz_harm_poly::LadderUp().
|
inline |
|
inlinestatic |
Definition at line 74 of file poly2d_base.h.
References poly2d_base_set.
Referenced by magfieldparam::rz_harm_poly::ParentCount(), and SetPoint().
void poly2d_base::DecPow | ( | int | nvar | ) |
Definition at line 272 of file poly2d_base.cc.
References magfieldparam::poly2d_term::coeff, data, GetMaxPow(), max_pwr, magfieldparam::poly2d_term::np, and NPwr.
Referenced by magfieldparam::rz_harm_poly::GetDecPow().
void poly2d_base::Diff | ( | int | nvar | ) |
Definition at line 222 of file poly2d_base.cc.
References magfieldparam::poly2d_term::coeff, data, GetMaxPow(), max_pwr, magfieldparam::poly2d_term::np, and NPwr.
Referenced by magfieldparam::rz_harm_poly::GetDiff().
double poly2d_base::Eval | ( | ) |
Definition at line 157 of file poly2d_base.cc.
References data, j, np, rz_pow, and S().
Referenced by magfieldparam::HarmBasis3DCyl::EvalBphi(), magfieldparam::HarmBasis3DCyl::EvalRZ(), and GetVal().
|
staticprotected |
|
static |
Definition at line 102 of file poly2d_base.cc.
References poly2d_base_set.
Referenced by AdjustTab(), DecPow(), Diff(), IncPow(), Int(), and ~poly2d_base().
|
inline |
|
inline |
Definition at line 107 of file poly2d_base.h.
References Eval(), and SetPoint().
|
inlinestatic |
Definition at line 72 of file poly2d_base.h.
Referenced by magfieldparam::HarmBasis3DCyl::HarmBasis3DCyl().
void poly2d_base::IncPow | ( | int | nvar | ) |
Definition at line 260 of file poly2d_base.cc.
References data, GetMaxPow(), max_pwr, and NPwr.
Referenced by magfieldparam::rz_harm_poly::GetIncPow().
void poly2d_base::Int | ( | int | nvar | ) |
Definition at line 246 of file poly2d_base.cc.
References data, GetMaxPow(), max_pwr, and NPwr.
Referenced by magfieldparam::rz_harm_poly::GetInt().
|
inline |
|
inline |
void poly2d_base::Print | ( | std::ostream & | out = std::cout , |
const std::streamsize | prec = 5 |
||
) |
|
static |
void poly2d_base::Scale | ( | const double | C | ) |
Definition at line 296 of file poly2d_base.cc.
References funct::C, and data.
Referenced by magfieldparam::rz_harm_poly::LadderDwn(), and magfieldparam::rz_harm_poly::LadderUp().
|
static |
Definition at line 148 of file poly2d_base.cc.
References Count(), FillTable(), NPwr, NTab, rz_set, SetTabSize(), and zval.
Referenced by GetVal(), and magfieldparam::rz_harm_poly::SetPoint().
|
staticprotected |
Definition at line 69 of file poly2d_base.cc.
References N, NTab, rz_pow, and zval.
Referenced by AdjustTab(), and SetPoint().
|
protected |
Definition at line 68 of file poly2d_base.h.
Referenced by cuy.FindIssue::__init__(), data_sources.node::__str__(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), Collect(), DecPow(), Diff(), Eval(), IncPow(), Int(), IsOn(), magfieldparam::rz_harm_poly::LadderDwn(), magfieldparam::rz_harm_poly::LadderUp(), data_sources.json_list::last(), poly2d_base(), Print(), magfieldparam::rz_harm_poly::rz_harm_poly(), and Scale().
|
protected |
Definition at line 69 of file poly2d_base.h.
Referenced by Collect(), DecPow(), Diff(), IncPow(), Int(), poly2d_base(), Print(), magfieldparam::rz_harm_poly::rz_harm_poly(), and ~poly2d_base().
|
staticprotected |
Definition at line 57 of file poly2d_base.h.
Referenced by Collect().
|
staticprotected |
Definition at line 54 of file poly2d_base.h.
Referenced by AdjustTab(), DecPow(), Diff(), FillTable(), IncNPwr(), IncPow(), Int(), PrintTab(), magfieldparam::rz_harm_poly::rz_harm_poly(), SetPoint(), and ~poly2d_base().
|
staticprotected |
Definition at line 53 of file poly2d_base.h.
Referenced by AdjustTab(), PrintTab(), SetPoint(), SetTabSize(), and ~poly2d_base().
|
staticprotected |
Definition at line 59 of file poly2d_base.h.
Referenced by Count(), magfieldparam::rz_harm_poly::GetMaxM(), GetMaxPow(), poly2d_base(), magfieldparam::rz_harm_poly::rz_harm_poly(), and ~poly2d_base().
|
staticprotected |
Definition at line 49 of file poly2d_base.h.
|
staticprotected |
Definition at line 52 of file poly2d_base.h.
Referenced by Eval(), FillTable(), PrintTab(), SetTabSize(), and ~poly2d_base().
|
staticprotected |
Definition at line 55 of file poly2d_base.h.
Referenced by GetVal(), IsRZSet(), magfieldparam::rz_harm_poly::rz_harm_poly(), SetPoint(), and ~poly2d_base().
|
staticprotected |
Definition at line 50 of file poly2d_base.h.
Referenced by SetPoint(), SetTabSize(), and ~poly2d_base().