29 #include "matrix_decl.hpp"
37 const std::string& lsolver,
const Dict& dict);
42 const std::string& lsolver,
const Dict& dict);
45 pinv(
const DM& A,
const std::string& lsolver,
50 rand(
const Sparsity& sp);
62 _logsumexp(
const DM& A);
66 cse(
const std::vector<DM>& e);
69 std::ostream &stream,
const Dict& options)
const;
75 void DM::to_file(
const std::string& filename,
const Sparsity& sp,
76 const double* nonzeros,
const std::string& format);
79 DM DM::from_file(
const std::string& filename,
const std::string& format_hint);
81 #ifndef CASADI_DM_INSTANTIATOR_CPP
82 extern template class Matrix<double>;
void to_file(const std::string &filename, const std::string &format="") const
static Matrix< Scalar > rand(casadi_int nrow=1, casadi_int ncol=1)
Create a matrix with uniformly distributed random numbers.
void export_code(const std::string &lang, std::ostream &stream=casadi::uout(), const Dict &options=Dict()) const
Export matrix in specific language.
static Matrix< double > from_file(const std::string &filename, const std::string &format_hint="")
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.