'lapacklu' plugin for Linsol More...
#include <lapack_lu.hpp>
This class solves the linear system A.x=b
by making an LU factorization of A:
A = L.U
, with L lower and U upper triangular
Extra doc: https://github.com/casadi/casadi/wiki/L_22h
Id | Type | Description |
---|---|---|
allow_equilibration_failure | OT_BOOL | Non-fatal error when equilibration fails |
equilibration | OT_BOOL | Equilibrate the matrix |
Id | Type | Description | Used in |
---|---|---|---|
ad_weight | OT_DOUBLE | Weighting factor for derivative calculation.When there is an option of either using forward or reverse mode directional derivatives, the condition ad_weight*nf<=(1-ad_weight)*na is used where nf and na are estimates of the number of forward/reverse mode directional derivatives needed. By default, ad_weight is calculated automatically, but this can be overridden by setting this option. In particular, 0 means forcing forward mode and 1 forcing reverse mode. Leave unset for (class specific) heuristics. | casadi::FunctionInternal |
ad_weight_sp | OT_DOUBLE | Weighting factor for sparsity pattern calculation calculation.Overrides default behavior. Set to 0 and 1 to force forward and reverse mode respectively. Cf. option "ad_weight". When set to -1, sparsity is completely ignored and dense matrices are used. | casadi::FunctionInternal |
allow_equilibration_failure | OT_BOOL | Non-fatal error when equilibration fails | casadi::LapackLu |
always_inline | OT_BOOL | Force inlining. | casadi::FunctionInternal |
cache | OT_DICT | Prepopulate the function cache. Default: empty | casadi::FunctionInternal |
compiler | OT_STRING | Just-in-time compiler plugin to be used. | casadi::FunctionInternal |
custom_jacobian | OT_FUNCTION | Override CasADi's AD. Use together with 'jac_penalty': 0. Note: Highly experimental. Syntax may break often. | casadi::FunctionInternal |
der_options | OT_DICT | Default options to be used to populate forward_options, reverse_options, and jacobian_options before those options are merged in. | casadi::FunctionInternal |
derivative_of | OT_FUNCTION | The function is a derivative of another function. The type of derivative (directional derivative, Jacobian) is inferred from the function name. | casadi::FunctionInternal |
dump | OT_BOOL | Dump function to file upon first evaluation. [false] | casadi::FunctionInternal |
dump_dir | OT_STRING | Directory to dump inputs/outputs to. Make sure the directory exists [.] | casadi::FunctionInternal |
dump_format | OT_STRING | Choose file format to dump matrices. See DM.from_file [mtx] | casadi::FunctionInternal |
dump_in | OT_BOOL | Dump numerical values of inputs to file (readable with DM.from_file) [default: false] | casadi::FunctionInternal |
dump_out | OT_BOOL | Dump numerical values of outputs to file (readable with DM.from_file) [default: false] | casadi::FunctionInternal |
enable_fd | OT_BOOL | Enable derivative calculation by finite differencing. [default: false]] | casadi::FunctionInternal |
enable_forward | OT_BOOL | Enable derivative calculation using generated functions for Jacobian-times-vector products - typically using forward mode AD - if available. [default: true] | casadi::FunctionInternal |
enable_jacobian | OT_BOOL | Enable derivative calculation using generated functions for Jacobians of all differentiable outputs with respect to all differentiable inputs - if available. [default: true] | casadi::FunctionInternal |
enable_reverse | OT_BOOL | Enable derivative calculation using generated functions for transposed Jacobian-times-vector products - typically using reverse mode AD - if available. [default: true] | casadi::FunctionInternal |
equilibration | OT_BOOL | Equilibrate the matrix | casadi::LapackLu |
error_on_fail | OT_BOOL | Throw exceptions when function evaluation fails (default true). | casadi::ProtoFunction |
external_transform | OT_VECTORVECTOR | List of external_transform instruction arguments. Default: empty | casadi::FunctionInternal |
fd_method | OT_STRING | Method for finite differencing [default 'central'] | casadi::FunctionInternal |
fd_options | OT_DICT | Options to be passed to the finite difference instance | casadi::FunctionInternal |
forward_options | OT_DICT | Options to be passed to a forward mode constructor | casadi::FunctionInternal |
gather_stats | OT_BOOL | Deprecated option (ignored): Statistics are now always collected. | casadi::FunctionInternal |
input_scheme | OT_STRINGVECTOR | Deprecated option (ignored) | casadi::FunctionInternal |
inputs_check | OT_BOOL | Throw exceptions when the numerical values of the inputs don't make sense | casadi::FunctionInternal |
is_diff_in | OT_BOOLVECTOR | Indicate for each input if it should be differentiable. | casadi::FunctionInternal |
is_diff_out | OT_BOOLVECTOR | Indicate for each output if it should be differentiable. | casadi::FunctionInternal |
jac_penalty | OT_DOUBLE | When requested for a number of forward/reverse directions, it may be cheaper to compute first the full jacobian and then multiply with seeds, rather than obtain the requested directions in a straightforward manner. Casadi uses a heuristic to decide which is cheaper. A high value of 'jac_penalty' makes it less likely for the heurstic to chose the full Jacobian strategy. The special value -1 indicates never to use the full Jacobian strategy | casadi::FunctionInternal |
jacobian_options | OT_DICT | Options to be passed to a Jacobian constructor | casadi::FunctionInternal |
jit | OT_BOOL | Use just-in-time compiler to speed up the evaluation | casadi::FunctionInternal |
jit_cleanup | OT_BOOL | Cleanup up the temporary source file that jit creates. Default: true | casadi::FunctionInternal |
jit_name | OT_STRING | The file name used to write out code. The actual file names used depend on 'jit_temp_suffix' and include extensions. Default: 'jit_tmp' | casadi::FunctionInternal |
jit_options | OT_DICT | Options to be passed to the jit compiler. | casadi::FunctionInternal |
jit_serialize | OT_STRING | Specify behaviour when serializing a jitted function: SOURCE|link|embed. | casadi::FunctionInternal |
jit_temp_suffix | OT_BOOL | Use a temporary (seemingly random) filename suffix for generated code and libraries. This is desired for thread-safety. This behaviour may defeat caching compiler wrappers. Default: true | casadi::FunctionInternal |
max_io | OT_INT | Acceptable number of inputs and outputs. Warn if exceeded. | casadi::FunctionInternal |
max_num_dir | OT_INT | Specify the maximum number of directions for derivative functions. Overrules the builtin optimized_num_dir. | casadi::FunctionInternal |
never_inline | OT_BOOL | Forbid inlining. | casadi::FunctionInternal |
output_scheme | OT_STRINGVECTOR | Deprecated option (ignored) | casadi::FunctionInternal |
post_expand | OT_BOOL | After construction, expand this Function. Default: False | casadi::FunctionInternal |
post_expand_options | OT_DICT | Options to be passed to post-construction expansion. Default: empty | casadi::FunctionInternal |
print_in | OT_BOOL | Print numerical values of inputs [default: false] | casadi::FunctionInternal |
print_out | OT_BOOL | Print numerical values of outputs [default: false] | casadi::FunctionInternal |
print_time | OT_BOOL | print information about execution time. Implies record_time. | casadi::ProtoFunction |
record_time | OT_BOOL | record information about execution time, for retrieval with stats(). | casadi::ProtoFunction |
regularity_check | OT_BOOL | Throw exceptions when NaN or Inf appears during evaluation | casadi::ProtoFunction |
reverse_options | OT_DICT | Options to be passed to a reverse mode constructor | casadi::FunctionInternal |
user_data | OT_VOIDPTR | A user-defined field that can be used to identify the function or pass additional information | casadi::FunctionInternal |
verbose | OT_BOOL | Verbose evaluation – for debugging | casadi::ProtoFunction |
Definition at line 82 of file lapack_lu.hpp.
Public Types | |
typedef LinsolInternal *(* | Creator) (const std::string &name, const Sparsity &sp) |
using | weak_ref_type = WeakRefInternal |
typedef int(* | RegFcn) (Plugin *plugin) |
Public Member Functions | |
LapackLu (const std::string &name, const Sparsity &sp) | |
~LapackLu () override | |
Destructor. More... | |
void | init (const Dict &opts) override |
Initialize the solver. More... | |
void * | alloc_mem () const override |
Create memory block. More... | |
int | init_mem (void *mem) const override |
Initalize memory block. More... | |
void | free_mem (void *mem) const override |
Free memory block. More... | |
int | nfact (void *mem, const double *A) const override |
Numeric factorization. More... | |
int | solve (void *mem, const double *A, double *x, casadi_int nrhs, bool tr) const override |
void | serialize_body (SerializingStream &s) const override |
Serialize an object without type information. More... | |
void | disp (std::ostream &stream, bool more) const override |
Display object. More... | |
virtual void | disp_more (std::ostream &stream) const |
Print more. More... | |
virtual void | linsol_eval_sx (const SXElem **arg, SXElem **res, casadi_int *iw, SXElem *w, void *mem, bool tr, casadi_int nrhs) const |
Evaluate SX, possibly transposed. More... | |
virtual int | sfact (void *mem, const double *A) const |
virtual casadi_int | neig (void *mem, const double *A) const |
Number of negative eigenvalues. More... | |
virtual casadi_int | rank (void *mem, const double *A) const |
Matrix rank. More... | |
virtual void | generate (CodeGenerator &g, const std::string &A, const std::string &x, casadi_int nrhs, bool tr) const |
Generate C code. More... | |
casadi_int | nrow () const |
Get sparsity pattern. More... | |
casadi_int | ncol () const |
const casadi_int * | colind () const |
const casadi_int * | row () const |
casadi_int | nnz () const |
void | serialize_type (SerializingStream &s) const override |
Serialize type information. More... | |
void | construct (const Dict &opts) |
Construct. More... | |
virtual Dict | generate_options (const std::string &target) const |
Reconstruct options dict. More... | |
void | print_options (std::ostream &stream) const |
Print list of options. More... | |
void | print_option (const std::string &name, std::ostream &stream) const |
Print all information there is to know about a certain option. More... | |
bool | has_option (const std::string &option_name) const |
Does a particular option exist. More... | |
virtual void | change_option (const std::string &option_name, const GenericType &option_value) |
Change option after object creation for debugging. More... | |
virtual void | finalize () |
Finalize the object creation. More... | |
int | checkout () const |
Checkout a memory object. More... | |
void | release (int mem) const |
Release a memory object. More... | |
void * | memory (int ind) const |
Memory objects. More... | |
bool | has_memory (int ind) const |
Check for existance of memory object. More... | |
virtual void | check_mem_count (casadi_int n) const |
Check for validatity of memory object count. More... | |
virtual Dict | get_stats (void *mem) const |
Get all statistics. More... | |
void | clear_mem () |
Clear all memory (called from destructor) More... | |
void | print (const char *fmt,...) const |
C-style formatted printing during evaluation. More... | |
void | sprint (char *buf, size_t buf_sz, const char *fmt,...) const |
C-style formatted printing to string. More... | |
void | format_time (char *buffer, double time) const |
Format time in a fixed width 8 format. More... | |
void | print_time (const std::map< std::string, FStats > &fstats) const |
Print timing statistics. More... | |
void | serialize (SerializingStream &s) const |
Serialize an object. More... | |
virtual std::string | serialize_base_function () const |
String used to identify the immediate FunctionInternal subclass. More... | |
casadi_int | getCount () const |
Get the reference count. More... | |
std::string | debug_repr (const SharedObjectInternal *) const |
GenericWeakRef< SharedObject, SharedObjectInternal > * | weak () |
Get a weak reference to the object. More... | |
Static Public Member Functions | |
static LinsolInternal * | creator (const std::string &name, const Sparsity &sp) |
Create a new Linsol. More... | |
static ProtoFunction * | deserialize (DeserializingStream &s) |
Deserialize with type disambiguation. More... | |
static bool | has_plugin (const std::string &pname, bool verbose=false) |
Check if a plugin is available or can be loaded. More... | |
static const Options & | plugin_options (const std::string &pname) |
Get the plugin options. More... | |
static Deserialize | plugin_deserialize (const std::string &pname) |
Get the plugin deserialize_map. More... | |
static Plugin | pluginFromRegFcn (RegFcn regfcn) |
Instantiate a Plugin struct from a factory function. More... | |
static Plugin | load_plugin (const std::string &pname, bool register_plugin=true, bool needs_lock=true) |
Load a plugin dynamically. More... | |
static handle_t | load_library (const std::string &libname, std::string &resultpath, bool global) |
Load a library dynamically. More... | |
static void | registerPlugin (const Plugin &plugin, bool needs_lock=true) |
Register an integrator in the factory. More... | |
static void | registerPlugin (RegFcn regfcn, bool needs_lock=true) |
Register an integrator in the factory. More... | |
static Plugin & | getPlugin (const std::string &pname) |
Load and get the creator function. More... | |
static LinsolInternal * | instantiate (const std::string &fname, const std::string &pname, Problem problem) |
Public Attributes | |
Sparsity | sp_ |
std::string | name_ |
Name. More... | |
bool | verbose_ |
Verbose printout. More... | |
bool | print_time_ |
bool | record_time_ |
bool | regularity_check_ |
Errors are thrown when NaN is produced. More... | |
bool | error_on_fail_ |
Throw an exception on failure? More... | |
Static Public Attributes | |
static const std::string | meta_doc |
A documentation string. More... | |
static std::map< std::string, Plugin > | solvers_ |
Collection of solvers. More... | |
static const std::string | infix_ = "linsol" |
Infix. More... | |
Protected Member Functions | |
LapackLu (DeserializingStream &s) | |
Deserializing constructor. More... | |
const char * | plugin_name () const override |
std::string | class_name () const override |
Readable name of the internal class. More... | |
void | initSingleton () |
void | destroySingleton () |
B | shared_from_this () |
Get a shared object from the current internal object. More... | |
const B | shared_from_this () const |
Get a shared object from the current internal object. More... | |
Protected Attributes | |
bool | equilibriate_ |
Equilibrate? More... | |
bool | allow_equilibration_failure_ |
Allow the equilibration to fail. More... | |
static const Options | options_ |
Options. More... | |
const Options & | get_options () const override |
Options. More... | |
|
inherited |
Definition at line 121 of file linsol_internal.hpp.
|
inherited |
Definition at line 73 of file plugin_interface.hpp.
|
inherited |
Definition at line 152 of file shared_object.hpp.
casadi::LapackLu::LapackLu | ( | const std::string & | name, |
const Sparsity & | sp | ||
) |
Definition at line 48 of file lapack_lu.cpp.
References allow_equilibration_failure_, and equilibriate_.
|
override |
Definition at line 56 of file lapack_lu.cpp.
References casadi::ProtoFunction::clear_mem().
|
explicitprotected |
Definition at line 191 of file lapack_lu.cpp.
References allow_equilibration_failure_, equilibriate_, casadi::DeserializingStream::unpack(), and casadi::DeserializingStream::version().
|
inlineoverridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 105 of file lapack_lu.hpp.
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jk
Reimplemented in casadi::MXFunction, casadi::FunctionInternal, and casadi::FmuFunction.
Definition at line 924 of file function_internal.cpp.
References casadi::ProtoFunction::regularity_check_, and casadi::ProtoFunction::verbose_.
Referenced by casadi::FunctionInternal::change_option().
|
inlinevirtualinherited |
Purpose if to allow more helpful error messages
Extra doc: https://github.com/casadi/casadi/wiki/L_2b7
Reimplemented in casadi::FmuFunction.
Definition at line 179 of file function_internal.hpp.
Referenced by casadi::ProtoFunction::checkout().
|
inherited |
Definition at line 3585 of file function_internal.cpp.
References casadi::ProtoFunction::alloc_mem(), casadi::ProtoFunction::check_mem_count(), and casadi::ProtoFunction::init_mem().
Referenced by casadi::ProtoFunction::finalize(), casadi::FunctionBuffer::FunctionBuffer(), and casadi::Sqpmethod::init_mem().
|
inlineoverrideprotectedvirtual |
Implements casadi::SharedObjectInternal.
Definition at line 142 of file lapack_lu.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jq
Definition at line 3473 of file function_internal.cpp.
References casadi::ProtoFunction::free_mem().
Referenced by casadi::AlpaqaInterface::~AlpaqaInterface(), casadi::AmplInterface::~AmplInterface(), casadi::BlazingSplineFunction::~BlazingSplineFunction(), casadi::Blocksqp::~Blocksqp(), casadi::BonminInterface::~BonminInterface(), casadi::BSplineInterpolant::~BSplineInterpolant(), casadi::CallbackInternal::~CallbackInternal(), casadi::CbcInterface::~CbcInterface(), casadi::ClarabelInterface::~ClarabelInterface(), casadi::ClpInterface::~ClpInterface(), casadi::CplexInterface::~CplexInterface(), casadi::CsparseInterface::~CsparseInterface(), casadi::CvodesInterface::~CvodesInterface(), casadi::DaqpInterface::~DaqpInterface(), casadi::External::~External(), casadi::FastNewton::~FastNewton(), casadi::FatropConicInterface::~FatropConicInterface(), casadi::FatropInterface::~FatropInterface(), casadi::Feasiblesqpmethod::~Feasiblesqpmethod(), casadi::FiniteDiff::~FiniteDiff(), casadi::FixedStepIntegrator::~FixedStepIntegrator(), casadi::FmuFunction::~FmuFunction(), casadi::GurobiInterface::~GurobiInterface(), casadi::HighsInterface::~HighsInterface(), casadi::HpipmInterface::~HpipmInterface(), casadi::HpmpcInterface::~HpmpcInterface(), casadi::IdasInterface::~IdasInterface(), casadi::ImplicitToNlp::~ImplicitToNlp(), casadi::IpoptInterface::~IpoptInterface(), casadi::Ipqp::~Ipqp(), casadi::JitFunction::~JitFunction(), casadi::KinsolInterface::~KinsolInterface(), casadi::KnitroInterface::~KnitroInterface(), ~LapackLu(), casadi::LapackQr::~LapackQr(), casadi::LinearInterpolant::~LinearInterpolant(), casadi::LinearInterpolantJac::~LinearInterpolantJac(), casadi::LinsolLdl::~LinsolLdl(), casadi::LinsolQr::~LinsolQr(), casadi::LinsolTridiag::~LinsolTridiag(), casadi::Lsqr::~Lsqr(), casadi::Ma27Interface::~Ma27Interface(), casadi::MadnlpInterface::~MadnlpInterface(), casadi::Map::~Map(), casadi::MapSum::~MapSum(), casadi::MumpsInterface::~MumpsInterface(), casadi::MXFunction::~MXFunction(), casadi::Newton::~Newton(), casadi::Nlpsol::~Nlpsol(), casadi::OmpMap::~OmpMap(), casadi::OoqpInterface::~OoqpInterface(), casadi::OsqpInterface::~OsqpInterface(), casadi::ProxqpInterface::~ProxqpInterface(), casadi::QpoasesInterface::~QpoasesInterface(), casadi::QpToNlp::~QpToNlp(), casadi::Qrqp::~Qrqp(), casadi::Qrsqp::~Qrsqp(), casadi::Scpgen::~Scpgen(), casadi::SLEQPInterface::~SLEQPInterface(), casadi::SlicotDple::~SlicotDple(), casadi::SlicotExpm::~SlicotExpm(), casadi::SnoptInterface::~SnoptInterface(), casadi::Sqpmethod::~Sqpmethod(), casadi::SuperscsInterface::~SuperscsInterface(), casadi::Switch::~Switch(), casadi::SXFunction::~SXFunction(), casadi::SymbolicQr::~SymbolicQr(), casadi::ThreadMap::~ThreadMap(), and casadi::WorhpInterface::~WorhpInterface().
|
inlineinherited |
Definition at line 142 of file linsol_internal.hpp.
Referenced by casadi::CsparseInterface::init_mem(), casadi::MumpsInterface::init_mem(), casadi::Ma27Interface::nfact(), and casadi::MumpsInterface::nfact().
|
inherited |
Prepares the function for evaluation
Extra doc: https://github.com/casadi/casadi/wiki/L_jf
Definition at line 137 of file function_internal.cpp.
References casadi::Options::check(), casadi::SharedObjectInternal::class_name(), casadi::ProtoFunction::finalize(), casadi::ProtoFunction::get_options(), casadi::ProtoFunction::init(), casadi::Options::is_sane(), casadi::ProtoFunction::name_, and casadi::Options::sanitize().
Referenced by casadi::Function::create(), casadi::FmuFunction::factory(), casadi::FmuFunction::get_forward(), casadi::FmuFunction::get_jacobian(), casadi::LinearInterpolant::get_jacobian(), and casadi::FmuFunction::get_reverse().
|
inlinestatic |
Definition at line 88 of file lapack_lu.hpp.
Referenced by casadi::casadi_register_linsol_lapacklu().
|
inherited |
Definition at line 62 of file generic_shared_internal.hpp.
|
inlinestatic |
Definition at line 126 of file lapack_lu.hpp.
Referenced by casadi::casadi_register_linsol_lapacklu().
|
inlineprotectedinherited |
Called in the destructor of singletons
Definition at line 77 of file generic_shared_internal.hpp.
|
overridevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_e4
Implements casadi::SharedObjectInternal.
Definition at line 43 of file linsol_internal.cpp.
References casadi::SharedObjectInternal::class_name(), and casadi::LinsolInternal::disp_more().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_e5
Definition at line 65 of file linsol_internal.hpp.
Referenced by casadi::LinsolInternal::disp().
|
virtualinherited |
This function, which visits the class hierarchy in reverse order is run after init() has been completed.
Extra doc: https://github.com/casadi/casadi/wiki/L_jm
Reimplemented in casadi::LinsolQr, casadi::OracleFunction, casadi::FunctionInternal, and casadi::CallbackInternal.
Definition at line 725 of file function_internal.cpp.
References casadi::ProtoFunction::checkout().
Referenced by casadi::ProtoFunction::construct(), casadi::Linsol::deserialize(), casadi::FunctionInternal::finalize(), and casadi::LinsolQr::finalize().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jt
Definition at line 3772 of file function_internal.cpp.
References casadi::ProtoFunction::sprint().
Referenced by casadi::ProtoFunction::print_time().
|
inlineoverridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 111 of file lapack_lu.hpp.
|
virtualinherited |
Reimplemented in casadi::Lsqr, casadi::LinsolTridiag, casadi::LinsolQr, and casadi::LinsolLdl.
Definition at line 110 of file linsol_internal.cpp.
References casadi::SharedObjectInternal::class_name().
|
virtualinherited |
Reimplemented in casadi::SXFunction, casadi::MXFunction, and casadi::FunctionInternal.
Definition at line 372 of file function_internal.cpp.
References casadi::ProtoFunction::error_on_fail_, casadi::ProtoFunction::print_time_, casadi::ProtoFunction::record_time_, casadi::ProtoFunction::regularity_check_, and casadi::ProtoFunction::verbose_.
Referenced by casadi::FunctionInternal::generate_options().
|
inlineoverridevirtual |
|
virtualinherited |
Reimplemented in casadi::Sqpmethod, casadi::Scpgen, casadi::Qrsqp, casadi::Qrqp, casadi::QpToNlp, casadi::Newton, casadi::Ipqp, casadi::ImplicitToNlp, casadi::Feasiblesqpmethod, casadi::FastNewton, casadi::WorhpInterface, casadi::SuperscsInterface, casadi::SundialsInterface, casadi::SnoptInterface, casadi::SLEQPInterface, casadi::QpoasesInterface, casadi::ProxqpInterface, casadi::OsqpInterface, casadi::OoqpInterface, casadi::MadnlpInterface, casadi::KnitroInterface, casadi::IpoptInterface, casadi::HpmpcInterface, casadi::HpipmInterface, casadi::HighsInterface, casadi::GurobiInterface, casadi::FatropInterface, casadi::FatropConicInterface, casadi::DaqpInterface, casadi::CplexInterface, casadi::ClpInterface, casadi::ClarabelInterface, casadi::CbcInterface, casadi::BonminInterface, casadi::AlpaqaInterface, casadi::Rootfinder, casadi::OracleFunction, casadi::Nlpsol, casadi::MXFunction, casadi::FunctionInternal, casadi::FmuFunction, and casadi::Conic.
Definition at line 2884 of file function_internal.cpp.
Referenced by casadi::FunctionInternal::get_stats().
|
inherited |
Definition at line 60 of file generic_shared_internal.hpp.
|
staticinherited |
Definition at line 102 of file plugin_interface.hpp.
|
inherited |
Definition at line 3581 of file function_internal.cpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jj
Definition at line 920 of file function_internal.cpp.
References casadi::Options::find(), and casadi::ProtoFunction::get_options().
|
staticinherited |
Definition at line 76 of file plugin_interface.hpp.
|
overridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 71 of file lapack_lu.cpp.
References allow_equilibration_failure_, equilibriate_, and casadi::LinsolInternal::init().
|
overridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 85 of file lapack_lu.cpp.
References equilibriate_, casadi::LinsolInternal::init_mem(), casadi::LapackLuMemory::mat, casadi::LinsolInternal::ncol(), and casadi::LinsolInternal::nrow().
|
inlineprotectedinherited |
Called in the constructor of singletons to avoid that the counter reaches zero
Definition at line 71 of file generic_shared_internal.hpp.
|
staticinherited |
Definition at line 106 of file plugin_interface.hpp.
|
virtualinherited |
Reimplemented in casadi::SymbolicQr.
Definition at line 63 of file linsol_internal.cpp.
References casadi::SharedObjectInternal::class_name().
|
staticinherited |
Definition at line 92 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 88 of file plugin_interface.hpp.
|
inherited |
Definition at line 3574 of file function_internal.cpp.
Referenced by casadi::FunctionInternal::call_gen(), casadi::FunctionInternal::get_jac_sparsity_gen(), casadi::FunctionInternal::get_jac_sparsity_hierarchical(), casadi::Sqpmethod::solve_ela_QP(), and casadi::Sqpmethod::solve_QP().
|
inlineinherited |
Definition at line 141 of file linsol_internal.hpp.
Referenced by casadi::LinsolQr::finalize(), casadi::LinsolQr::generate(), casadi::Lsqr::generate(), casadi::CsparseInterface::init_mem(), casadi::Ma27Interface::init_mem(), init_mem(), casadi::LapackQr::init_mem(), casadi::LinsolQr::init_mem(), casadi::Lsqr::init_mem(), casadi::Ma27Interface::nfact(), nfact(), casadi::LapackQr::nfact(), casadi::LinsolQr::nfact(), casadi::CsparseInterface::solve(), casadi::Ma27Interface::solve(), solve(), casadi::LinsolTridiag::solve(), and casadi::LapackQr::solve_batch().
|
virtualinherited |
Reimplemented in casadi::LinsolLdl, and casadi::Ma27Interface.
Definition at line 102 of file linsol_internal.cpp.
References casadi::SharedObjectInternal::class_name().
|
overridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 102 of file lapack_lu.cpp.
References allow_equilibration_failure_, casadi::casadi_densify(), equilibriate_, casadi::get_ptr(), casadi::LinsolInternal::ncol(), casadi::LinsolInternal::nrow(), casadi::LinsolInternal::sp_, casadi::str(), casadi::uout(), and casadi::ProtoFunction::verbose_.
|
inlineinherited |
Definition at line 144 of file linsol_internal.hpp.
Referenced by casadi::CsparseInterface::init_mem(), casadi::Ma27Interface::init_mem(), casadi::MumpsInterface::init_mem(), casadi::SymbolicQr::linsol_eval_sx(), casadi::CsparseInterface::nfact(), casadi::Ma27Interface::nfact(), and casadi::MumpsInterface::nfact().
|
inlineinherited |
Definition at line 140 of file linsol_internal.hpp.
Referenced by casadi::LinsolLdl::generate(), casadi::LinsolQr::generate(), casadi::Lsqr::generate(), casadi::CsparseInterface::init_mem(), init_mem(), casadi::MumpsInterface::init_mem(), casadi::LinsolLdl::init_mem(), casadi::LinsolQr::init_mem(), casadi::LinsolTridiag::init_mem(), casadi::Lsqr::init_mem(), casadi::LinsolLdl::neig(), nfact(), casadi::MumpsInterface::nfact(), casadi::LinsolLdl::rank(), solve(), casadi::LapackQr::solve(), casadi::LinsolTridiag::solve(), and casadi::SymbolicQr::solve().
|
staticinherited |
Definition at line 82 of file plugin_interface.hpp.
|
inlineoverrideprotectedvirtual |
Implements casadi::LinsolInternal.
Definition at line 139 of file lapack_lu.hpp.
|
staticinherited |
Definition at line 79 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 85 of file plugin_interface.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jr
Definition at line 3813 of file function_internal.cpp.
References casadi::uout().
Referenced by casadi::Feasiblesqpmethod::anderson_acc_step_update(), casadi::Nlpsol::callback(), casadi::Blocksqp::convertHessian(), casadi::FmuFunction::eval_task(), casadi::Feasiblesqpmethod::feasibility_iterations(), casadi::Blocksqp::feasibilityRestorationPhase(), casadi::Blocksqp::fullstep(), casadi::Blocksqp::init(), casadi::Feasiblesqpmethod::init(), casadi::Ipqp::init(), casadi::Qrqp::init(), casadi::Qrsqp::init(), casadi::Sqpmethod::init(), casadi::LinsolQr::nfact(), casadi::Feasiblesqpmethod::print_iteration(), casadi::Qrsqp::print_iteration(), casadi::Sqpmethod::print_iteration(), casadi::SundialsInterface::print_stats(), casadi::ProtoFunction::print_time(), casadi::Blocksqp::printInfo(), casadi::Blocksqp::printProgress(), casadi::Blocksqp::run(), casadi::Blocksqp::solve(), casadi::Feasiblesqpmethod::solve(), casadi::Qrsqp::solve(), casadi::Sqpmethod::solve(), casadi::Sqpmethod::solve_ela_QP(), casadi::Feasiblesqpmethod::solve_LP(), casadi::Feasiblesqpmethod::solve_QP(), casadi::Qrsqp::solve_QP(), casadi::Sqpmethod::solve_QP(), and casadi::Blocksqp::solveQP().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_ji
Definition at line 916 of file function_internal.cpp.
References casadi::ProtoFunction::get_options(), and casadi::Options::print_one().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jh
Definition at line 912 of file function_internal.cpp.
References casadi::ProtoFunction::get_options(), and casadi::Options::print_all().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_ju
Definition at line 3733 of file function_internal.cpp.
References casadi::ProtoFunction::format_time(), casadi::ProtoFunction::name_, casadi::ProtoFunction::print(), casadi::ProtoFunction::print_time_, and casadi::ProtoFunction::sprint().
Referenced by casadi::FunctionInternal::eval_gen().
|
virtualinherited |
Reimplemented in casadi::LinsolLdl, and casadi::Ma27Interface.
Definition at line 106 of file linsol_internal.cpp.
References casadi::SharedObjectInternal::class_name().
|
staticinherited |
Definition at line 96 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 99 of file plugin_interface.hpp.
|
inherited |
Definition at line 3606 of file function_internal.cpp.
|
inlineinherited |
Definition at line 143 of file linsol_internal.hpp.
Referenced by casadi::CsparseInterface::init_mem(), casadi::MumpsInterface::init_mem(), casadi::Ma27Interface::nfact(), and casadi::MumpsInterface::nfact().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jv
Definition at line 4090 of file function_internal.cpp.
References casadi::ProtoFunction::serialize_body(), and casadi::ProtoFunction::serialize_type().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_jy
Reimplemented in casadi::LinearInterpolantJac, casadi::Rootfinder, casadi::Nlpsol, casadi::MapSum, casadi::Map, casadi::Interpolant, casadi::Integrator, casadi::External, casadi::Conic, and casadi::BlazingSplineFunction.
Definition at line 241 of file function_internal.hpp.
Referenced by casadi::FunctionInternal::serialize_type().
|
overridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 197 of file lapack_lu.cpp.
References allow_equilibration_failure_, equilibriate_, casadi::SerializingStream::pack(), casadi::LinsolInternal::serialize_body(), and casadi::SerializingStream::version().
|
overridevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_e9
Reimplemented from casadi::ProtoFunction.
Definition at line 124 of file linsol_internal.cpp.
References casadi::ProtoFunction::serialize_type(), and casadi::PluginInterface< Derived >::serialize_type().
|
inlinevirtualinherited |
Reimplemented in casadi::LinsolTridiag, casadi::LinsolQr, casadi::LinsolLdl, casadi::CsparseInterface, and casadi::CSparseCholeskyInterface.
Definition at line 102 of file linsol_internal.hpp.
|
inlineprotectedinherited |
Definition at line 83 of file generic_shared_internal.hpp.
|
inlineprotectedinherited |
Definition at line 92 of file generic_shared_internal.hpp.
|
overridevirtual |
Reimplemented from casadi::LinsolInternal.
Definition at line 148 of file lapack_lu.cpp.
References casadi::get_ptr(), casadi::LinsolInternal::ncol(), and casadi::LinsolInternal::nrow().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_js
Definition at line 3801 of file function_internal.cpp.
Referenced by casadi::ProtoFunction::format_time(), and casadi::ProtoFunction::print_time().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ai
Definition at line 67 of file generic_shared_internal.hpp.
|
protected |
Definition at line 136 of file lapack_lu.hpp.
Referenced by init(), LapackLu(), nfact(), and serialize_body().
|
protected |
Definition at line 133 of file lapack_lu.hpp.
Referenced by init(), init_mem(), LapackLu(), nfact(), and serialize_body().
|
inherited |
Definition at line 261 of file function_internal.hpp.
Referenced by casadi::FunctionInternal::call_gen(), casadi::ClarabelInterface::codegen_body(), casadi::DaqpInterface::codegen_body(), casadi::FatropInterface::codegen_body(), casadi::HighsInterface::codegen_body(), casadi::HpipmInterface::codegen_body(), casadi::IpoptInterface::codegen_body(), casadi::MadnlpInterface::codegen_body(), casadi::OsqpInterface::codegen_body(), casadi::Qrqp::codegen_body(), casadi::Conic::Conic(), casadi::Conic::eval(), casadi::Nlpsol::eval(), casadi::Rootfinder::eval(), casadi::ProtoFunction::generate_options(), casadi::ProtoFunction::init(), casadi::Nlpsol::Nlpsol(), casadi::ProtoFunction::ProtoFunction(), casadi::Rootfinder::Rootfinder(), casadi::ProtoFunction::serialize_body(), and casadi::KinsolInterface::solve().
|
staticinherited |
Definition at line 134 of file linsol_internal.hpp.
|
static |
Definition at line 120 of file lapack_lu.hpp.
Referenced by casadi::casadi_register_linsol_lapacklu().
|
inherited |
Definition at line 246 of file function_internal.hpp.
Referenced by casadi::MXFunction::ad_forward(), casadi::SXFunction::ad_forward(), casadi::MXFunction::ad_reverse(), casadi::SXFunction::ad_reverse(), casadi::Integrator::augmented_dae(), casadi::OracleFunction::calc_function(), casadi::FunctionInternal::call_forward(), casadi::FunctionInternal::call_reverse(), casadi::FunctionInternal::codegen_body(), casadi::External::codegen_body(), casadi::External::codegen_checkout(), casadi::External::codegen_declarations(), casadi::MXFunction::codegen_declarations(), casadi::SXFunction::codegen_declarations(), casadi::External::codegen_decref(), casadi::External::codegen_incref(), casadi::FunctionInternal::codegen_meta(), casadi::FunctionInternal::codegen_name(), casadi::External::codegen_release(), casadi::FunctionInternal::codegen_sparsities(), casadi::ProtoFunction::construct(), casadi::OracleFunction::create_function(), casadi::FunctionInternal::definition(), casadi::FunctionInternal::eval(), casadi::MXFunction::eval(), casadi::SXFunction::eval(), casadi::FunctionInternal::eval_mx(), casadi::MXFunction::eval_mx(), casadi::SXFunction::eval_mx(), casadi::SXFunction::eval_sx(), casadi::FmuFunction::factory(), casadi::FunctionInternal::finalize(), casadi::FunctionInternal::forward(), casadi::FunctionInternal::FunctionInternal(), casadi::Integrator::get_forward(), casadi::Integrator::get_forward_dae(), casadi::Map::get_function(), casadi::MapSum::get_function(), casadi::OracleFunction::get_function(), casadi::GenericExternal::get_jac_sparsity(), casadi::BlazingSplineFunction::get_jacobian(), casadi::FunctionInternal::get_n_in(), casadi::External::get_n_in(), casadi::FunctionInternal::get_n_out(), casadi::External::get_n_out(), casadi::FunctionInternal::get_name_in(), casadi::External::get_name_in(), casadi::FunctionInternal::get_name_out(), casadi::External::get_name_out(), casadi::FunctionInternal::get_partition(), casadi::Integrator::get_reverse(), casadi::FunctionInternal::get_sparsity_in(), casadi::GenericExternal::get_sparsity_in(), casadi::FunctionInternal::get_sparsity_out(), casadi::GenericExternal::get_sparsity_out(), casadi::FunctionInternal::get_stats(), casadi::External::has_forward(), casadi::GenericExternal::has_jac_sparsity(), casadi::External::has_jacobian(), casadi::External::has_reverse(), casadi::External::init(), casadi::FunctionInternal::init(), casadi::MXFunction::init(), casadi::SXFunction::init(), casadi::CvodesInterface::init(), casadi::IdasInterface::init(), casadi::External::init_external(), casadi::GenericExternal::init_external(), casadi::FunctionInternal::jac_is_symm(), casadi::FunctionInternal::jacobian(), casadi::FunctionInternal::map(), casadi::OracleFunction::monitored(), casadi::MXFunction::print_arg(), casadi::FunctionInternal::print_in(), casadi::FunctionInternal::print_out(), casadi::MXFunction::print_res(), casadi::ProtoFunction::print_time(), casadi::ProtoFunction::ProtoFunction(), casadi::CvodesInterface::reset(), casadi::IdasInterface::reset(), casadi::IdasInterface::resetB(), casadi::FunctionInternal::reverse(), casadi::ProtoFunction::serialize_body(), casadi::GurobiInterface::solve(), casadi::SnoptInterface::solve(), casadi::Integrator::sp_forward(), casadi::Integrator::sp_reverse(), casadi::FunctionInternal::wrap(), and casadi::FunctionInternal::wrap_as_needed().
|
static |
Definition at line 97 of file lapack_lu.hpp.
Referenced by casadi::casadi_register_linsol_lapacklu().
|
inherited |
Definition at line 252 of file function_internal.hpp.
Referenced by casadi::FixedStepIntegrator::create_advanced(), casadi::ProtoFunction::generate_options(), casadi::ProtoFunction::init(), casadi::FunctionInternal::init(), casadi::Nlpsol::Nlpsol(), casadi::ProtoFunction::print_time(), casadi::ProtoFunction::ProtoFunction(), and casadi::ProtoFunction::serialize_body().
|
inherited |
Definition at line 255 of file function_internal.hpp.
Referenced by casadi::ProtoFunction::generate_options(), casadi::ProtoFunction::init(), casadi::FunctionInternal::init(), casadi::ProtoFunction::init_mem(), casadi::LinsolInternal::init_mem(), casadi::ProtoFunction::ProtoFunction(), and casadi::ProtoFunction::serialize_body().
|
inherited |
Definition at line 258 of file function_internal.hpp.
Referenced by casadi::OracleFunction::calc_function(), casadi::ProtoFunction::change_option(), casadi::FunctionInternal::eval_gen(), casadi::FunctionInternal::FunctionInternal(), casadi::ProtoFunction::generate_options(), casadi::ProtoFunction::init(), casadi::ProtoFunction::ProtoFunction(), and casadi::ProtoFunction::serialize_body().
|
staticinherited |
Definition at line 127 of file linsol_internal.hpp.
|
inherited |
Definition at line 161 of file linsol_internal.hpp.
Referenced by casadi::LinsolQr::finalize(), casadi::LinsolLdl::generate(), casadi::LinsolQr::generate(), casadi::Lsqr::generate(), casadi::LinsolLdl::init(), casadi::LinsolQr::init(), casadi::SymbolicQr::init(), casadi::MumpsInterface::init_mem(), casadi::Lsqr::init_mem(), casadi::SymbolicQr::init_mem(), casadi::SymbolicQr::linsol_eval_sx(), casadi::LinsolInternal::LinsolInternal(), casadi::CsparseInterface::nfact(), nfact(), casadi::LapackQr::nfact(), casadi::LinsolLdl::nfact(), casadi::LinsolQr::nfact(), casadi::LinsolInternal::serialize_body(), casadi::LinsolTridiag::solve(), and casadi::Lsqr::solve().
|
inherited |
Definition at line 249 of file function_internal.hpp.
Referenced by casadi::MXFunction::ad_forward(), casadi::SXFunction::ad_forward(), casadi::MXFunction::ad_reverse(), casadi::SXFunction::ad_reverse(), casadi::Integrator::advance(), casadi::ProtoFunction::change_option(), casadi::BSplineInterpolant::construct_graph(), casadi::OracleFunction::create_function(), casadi::FmuFunction::eval(), casadi::Integrator::eval(), casadi::MXFunction::eval(), casadi::SXFunction::eval(), casadi::MXFunction::eval_mx(), casadi::SXFunction::eval_mx(), casadi::SXFunction::eval_sx(), casadi::FmuFunction::factory(), casadi::FunctionInternal::finalize(), casadi::KinsolInterface::func(), casadi::ProtoFunction::generate_options(), casadi::FmuFunction::get_forward(), casadi::Integrator::get_forward(), casadi::Integrator::get_forward_dae(), casadi::FunctionInternal::get_jac_sparsity_gen(), casadi::FunctionInternal::get_jac_sparsity_hierarchical(), casadi::FunctionInternal::get_jac_sparsity_hierarchical_symm(), casadi::FmuFunction::get_jacobian(), casadi::FunctionInternal::get_partition(), casadi::FmuFunction::get_reverse(), casadi::Integrator::get_reverse(), casadi::ProtoFunction::init(), casadi::FiniteDiff::init(), casadi::FmuFunction::init(), casadi::FunctionInternal::init(), casadi::MXFunction::init(), casadi::SXFunction::init(), casadi::Blocksqp::init(), casadi::FatropConicInterface::init(), casadi::FatropInterface::init(), casadi::HpipmInterface::init(), casadi::HpmpcInterface::init(), casadi::IpoptInterface::init(), casadi::MadnlpInterface::init(), casadi::CvodesInterface::init(), casadi::IdasInterface::init(), casadi::Feasiblesqpmethod::init(), casadi::Scpgen::init(), casadi::Sqpmethod::init(), casadi::IpoptInterface::init_mem(), casadi::IdasInterface::init_mem(), casadi::SXFunction::instructions_sx(), casadi::BonminInterface::intermediate_callback(), casadi::OracleFunction::jit_dependencies(), casadi::CsparseInterface::nfact(), nfact(), casadi::LapackQr::nfact(), casadi::LinsolQr::nfact(), casadi::Integrator::predict_events(), casadi::ProtoFunction::ProtoFunction(), casadi::CvodesInterface::reset(), casadi::IdasInterface::reset(), casadi::IdasInterface::resetB(), casadi::ProtoFunction::serialize_body(), casadi::CbcInterface::solve(), casadi::ClpInterface::solve(), casadi::CplexInterface::solve(), casadi::GurobiInterface::solve(), casadi::HpipmInterface::solve(), casadi::QpoasesInterface::solve(), casadi::Ipqp::solve(), casadi::Qrqp::solve(), casadi::AlpaqaInterface::solve(), casadi::AmplInterface::solve(), casadi::SnoptInterface::solve(), casadi::KinsolInterface::solve(), casadi::WorhpInterface::solve(), casadi::Newton::solve(), casadi::Qrsqp::solve(), casadi::Scpgen::solve(), casadi::Sqpmethod::solve(), casadi::Sqpmethod::solve_ela_QP(), casadi::Feasiblesqpmethod::solve_LP(), casadi::Feasiblesqpmethod::solve_QP(), casadi::Qrsqp::solve_QP(), casadi::Sqpmethod::solve_QP(), casadi::Integrator::sp_forward(), casadi::Integrator::sp_reverse(), and casadi::Integrator::trigger_event().