25 #define CASADI_IM_INSTANTIATOR_CPP
26 #include "matrix_impl.hpp"
40 return {{
"sparsity", sparsity().info()}, {
"data", nonzeros()}};
43 void CASADI_EXPORT IM::to_file(
const std::string& filename,
44 const Sparsity& sp,
const casadi_int* nonzeros,
45 const std::string& format_hint) {
46 casadi_error(
"Not implemented");
50 template class casadi_limits<casadi_int>;
53 #pragma GCC diagnostic push
54 #pragma GCC diagnostic ignored "-Wattributes"
58 #pragma GCC diagnostic pop
bool is_dense() const
Check if the matrix expression is dense.
bool is_column() const
Check if the matrix is a column vector (i.e. size2()==1)
bool is_scalar(bool scalar_and_dense=false) const
Check if the matrix expression is scalar.
std::vector< Scalar > & nonzeros()
const Scalar scalar() const
Convert to scalar type.
Class representing a Slice.
bool CASADI_EXPORT is_slice(const IM &x, bool ind1=false)
Is the IM a Slice.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
Slice CASADI_EXPORT to_slice(const IM &x, bool ind1=false)
Convert IM to Slice.