Collects global CasADi options.
More...
#include <global_options.hpp>
Note to developers:
- use sparingly. Global options are - in general - a rather bad idea
- this class must never be instantiated. Access its static members directly
- Author
- Joris Gillis
- Date
- 2012
Extra doc: https://github.com/casadi/casadi/wiki/L_23m
Definition at line 48 of file global_options.hpp.
◆ getCasadiIncludePath()
| static std::string casadi::GlobalOptions::getCasadiIncludePath |
( |
| ) |
|
|
inlinestatic |
◆ getCasadiPath()
| static std::string casadi::GlobalOptions::getCasadiPath |
( |
| ) |
|
|
inlinestatic |
◆ getCopyElisionMinSize()
| static casadi_int casadi::GlobalOptions::getCopyElisionMinSize |
( |
| ) |
|
|
inlinestatic |
◆ getDefaultBlas()
| std::string casadi::GlobalOptions::getDefaultBlas |
( |
| ) |
|
|
static |
◆ getHierarchicalSparsity()
| static bool casadi::GlobalOptions::getHierarchicalSparsity |
( |
| ) |
|
|
inlinestatic |
◆ getMaxNumDir()
| static casadi_int casadi::GlobalOptions::getMaxNumDir |
( |
| ) |
|
|
inlinestatic |
◆ getNumpyMode()
| static int casadi::GlobalOptions::getNumpyMode |
( |
| ) |
|
|
inlinestatic |
◆ getSimplificationOnTheFly()
| static bool casadi::GlobalOptions::getSimplificationOnTheFly |
( |
| ) |
|
|
inlinestatic |
Definition at line 107 of file global_options.hpp.
static bool simplification_on_the_fly
Indicates whether simplifications should be made on the fly.
◆ getTempWorkDir()
| static std::string casadi::GlobalOptions::getTempWorkDir |
( |
| ) |
|
|
inlinestatic |
◆ setCasadiIncludePath()
| static void casadi::GlobalOptions::setCasadiIncludePath |
( |
const std::string & |
path | ) |
|
|
inlinestatic |
◆ setCasadiPath()
| static void casadi::GlobalOptions::setCasadiPath |
( |
const std::string & |
path | ) |
|
|
inlinestatic |
◆ setCopyElisionMinSize()
| static void casadi::GlobalOptions::setCopyElisionMinSize |
( |
casadi_int |
sz | ) |
|
|
inlinestatic |
◆ setDefaultBlas()
| void casadi::GlobalOptions::setDefaultBlas |
( |
const std::string & |
name | ) |
|
|
static |
◆ setHierarchicalSparsity()
| static void casadi::GlobalOptions::setHierarchicalSparsity |
( |
bool |
flag | ) |
|
|
inlinestatic |
◆ setMaxNumDir()
| static void casadi::GlobalOptions::setMaxNumDir |
( |
casadi_int |
ndir | ) |
|
|
inlinestatic |
◆ setNumpyMode()
| static void casadi::GlobalOptions::setNumpyMode |
( |
int |
mode | ) |
|
|
inlinestatic |
◆ setSimplificationOnTheFly()
| static void casadi::GlobalOptions::setSimplificationOnTheFly |
( |
bool |
flag | ) |
|
|
inlinestatic |
◆ setTempWorkDir()
| void casadi::GlobalOptions::setTempWorkDir |
( |
const std::string & |
dir | ) |
|
|
static |
◆ casadi_include_path
| std::string casadi::GlobalOptions::casadi_include_path |
|
static |
◆ casadipath
| std::string casadi::GlobalOptions::casadipath |
|
static |
◆ copy_elision_min_size
| casadi_int casadi::GlobalOptions::copy_elision_min_size = 8 |
|
static |
◆ hierarchical_sparsity
| bool casadi::GlobalOptions::hierarchical_sparsity = true |
|
static |
◆ julia_initialized
| bool casadi::GlobalOptions::julia_initialized = false |
|
static |
◆ max_num_dir
| casadi_int casadi::GlobalOptions::max_num_dir = 64 |
|
static |
◆ numpy_mode
| int casadi::GlobalOptions::numpy_mode = 0 |
|
static |
numpy.foo(M) on a casadi value behaves in the Python bindings: 0 (default): legacy casadi 3.7.2 behaviour + a Python FutureWarning – a numeric value densifies to a numpy result, a symbolic value returns a casadi value. 1: the casadi-aware numpy support – numpy.foo(M) returns a python-only numpy-semantics array wrapper (casadi.ArrayInterface) following numpy's shape/axis contract for SX/MX/DM alike. -1: the same legacy behaviour as 0, but silent (no warning) – exact casadi 3.7.2 semantics. Operator arithmetic (M + x, x * M, ...) always stays casadi- typed and is unaffected. Affects only Python bindings.
Temporary opt-in mechanism: exists to ease the transition and will be removed once numpy becomes the unconditional default. Process-global and not thread-safe – it changes the return type of numpy dispatch, so set it once at startup rather than toggling it concurrently with running code. Probe with hasattr(casadi.GlobalOptions, "setNumpyMode").
Extra doc: https://github.com/casadi/casadi/wiki/L_2i0
Definition at line 102 of file global_options.hpp.
◆ simplification_on_the_fly
| bool casadi::GlobalOptions::simplification_on_the_fly = true |
|
static |
◆ start_index
| casadi_int casadi::GlobalOptions::start_index = 0 |
|
static |
◆ temp_work_dir
| std::string casadi::GlobalOptions::temp_work_dir = "./" |
|
static |
The documentation for this class was generated from the following files: