Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::classic Namespace Reference

Classes

struct  ClassicWriteOptions
 Tracking / precision settings to emit in the CONFIG section, in Bertini 1 terms. More...

Functions

void EmitSystem (std::ostream &out, System const &sys)
 Emit the INPUT-section body of a system in classic syntax: the variable groups, any named subexpressions (as name = expr; subfunctions, defined before the functions that use them), and the functions (function f0,f1,...; then f0 = ...;).
std::string SystemToClassic (System const &sys)
 The INPUT-section body as a string.
int PredictorToClassic (tracking::Predictor p)
 Map a Bertini 2 Predictor to its Bertini 1 classic odepredictor integer.
void EmitConfig (std::ostream &out, System const &sys, ClassicWriteOptions const &opt)
 Emit the CONFIG-section body (no CONFIG/END wrapper).
void WriteClassicInput (std::ostream &out, System const &sys, ClassicWriteOptions const &opt=ClassicWriteOptions{})
 Write a complete Bertini 1 classic input file: CONFIG ... END;\nINPUT ... END;.
std::string SystemToClassicFile (System const &sys, ClassicWriteOptions const &opt=ClassicWriteOptions{})
 The complete classic input file as a string.

Function Documentation

◆ EmitConfig()

void bertini::classic::EmitConfig ( std::ostream & out,
System const & sys,
ClassicWriteOptions const & opt )
inline

Emit the CONFIG-section body (no CONFIG/END wrapper).

The AMP coefficient/degree bounds are derived from the system; the rest come from opt.

◆ EmitSystem()

void bertini::classic::EmitSystem ( std::ostream & out,
System const & sys )
inline

Emit the INPUT-section body of a system in classic syntax: the variable groups, any named subexpressions (as name = expr; subfunctions, defined before the functions that use them), and the functions (function f0,f1,...; then f0 = ...;).

No INPUT/END; wrapper – WriteClassicInput adds that. Functions are named f0, f1, ... positionally (Bertini 2 functions carry no user name after parsing).

◆ PredictorToClassic()

int bertini::classic::PredictorToClassic ( tracking::Predictor p)
inline

Map a Bertini 2 Predictor to its Bertini 1 classic odepredictor integer.

The inverse of the classic settings parser's predictor table (settings_parsers/tracking.hpp). HeunEuler has no classic number; it is emitted as 1 (Heun), its nearest classic relative.

◆ SystemToClassic()

std::string bertini::classic::SystemToClassic ( System const & sys)
inline

The INPUT-section body as a string.

See also
EmitSystem.

◆ SystemToClassicFile()

std::string bertini::classic::SystemToClassicFile ( System const & sys,
ClassicWriteOptions const & opt = ClassicWriteOptions{} )
inline

The complete classic input file as a string.

See also
WriteClassicInput.

◆ WriteClassicInput()

void bertini::classic::WriteClassicInput ( std::ostream & out,
System const & sys,
ClassicWriteOptions const & opt = ClassicWriteOptions{} )
inline

Write a complete Bertini 1 classic input file: CONFIG ... END;\nINPUT ... END;.