26 #ifndef CASADI_NONZEROS_HPP
27 #define CASADI_NONZEROS_HPP
39 template<
typename M,
typename K>
43 NonZeros(M& mat,
const K& k) : mat_(mat), k_(k) { mat.get_nz(*
this,
false, k); }
67 template<
typename M,
typename K>
69 mat_.set_nz(y,
false, k_);
74 template<
typename M,
typename K>
76 mat_.set_nz(y,
false, k_);
80 template<
typename M,
typename K>
83 mat_.set_nz(s,
false, k_);
87 template<
typename M,
typename K>
90 mat_.set_nz(s,
false, k_);
94 template<
typename M,
typename K>
97 mat_.set_nz(s,
false, k_);
101 template<
typename M,
typename K>
104 mat_.set_nz(s,
false, k_);
Access to a set of nonzeros.
const M & operator=(const NonZeros< M, K > &y)
NonZeros(const NonZeros< M, K > &y)=default
Default copy constructor.
NonZeros(M &mat, const K &k)
Constructor.