26 #ifndef CASADI_LINSOL_HPP
27 #define CASADI_LINSOL_HPP
29 #include "function.hpp"
30 #include "printable.hpp"
55 public SWIG_IF_ELSE(PrintableCommon, Printable<Linsol>) {
66 explicit Linsol(
const std::string& name,
const std::string& solver,
88 static bool has_plugin(
const std::string& name);
91 static void load_plugin(
const std::string& name);
94 static std::string doc(
const std::string& name);
97 std::string plugin_name()
const;
103 void sfact(
const DM& A)
const;
106 void nfact(
const DM& A)
const;
110 DM solve(
const DM& A,
const DM& B,
bool tr=
false)
const;
111 MX solve(
const MX& A,
const MX& B,
bool tr=
false)
const;
119 casadi_int neig(
const DM& A)
const;
126 casadi_int rank(
const DM& A)
const;
133 double det(
const DM& A)
const;
136 MX det(
const MX& A)
const;
139 Dict stats(
int mem=1)
const;
144 int sfact(
const double* A,
int mem=0)
const;
145 int nfact(
const double* A,
int mem=0)
const;
146 int solve(
const double* A,
double* x, casadi_int nrhs=1,
bool tr=
false,
int mem=0)
const;
147 double det(
const double* A,
int mem = 0)
const;
148 casadi_int neig(
const double* A,
int mem=0)
const;
149 casadi_int rank(
const double* A,
int mem=0)
const;
153 casadi_int checkout()
const;
156 void release(
int mem)
const;
172 CASADI_EXPORT
bool has_linsol(
const std::string& name);
175 CASADI_EXPORT
void load_linsol(
const std::string& name);
178 CASADI_EXPORT std::string
doc_linsol(
const std::string& name);
Helper class for Serialization.
static std::string type_name()
Get type name.
Helper class for Serialization.
GenericShared implements a reference counting framework similar for efficient and.
std::string doc_linsol(const std::string &name)
Get the documentation string for a plugin.
bool has_linsol(const std::string &name)
Check if a particular plugin is available.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
void load_linsol(const std::string &name)
Explicitly load a plugin dynamically.