Home
last modified time | relevance | path

Searched refs:nnz_out (Results 1 – 25 of 29) sorted by relevance

12

/dports/math/casadi/casadi-3.5.5/casadi/core/
H A Dmapsum.cpp116 if (reduce_out_[j]) alloc_w(f_.nnz_out(j), true); in init()
143 casadi_clear(res[j], f_.nnz_out(j)); // clear sums in eval_gen()
145 w_scratch += f_.nnz_out(j); in eval_gen()
160 res1[j] += f_.nnz_out(j); in eval_gen()
188 casadi_copy(res[j], f_.nnz_out(j), w_scratch); in sp_reverse()
189 w_scratch += f_.nnz_out(j); in sp_reverse()
201 casadi_copy(w_scratch, f_.nnz_out(j), res1[j]); in sp_reverse()
202 w_scratch += f_.nnz_out(j); in sp_reverse()
237 g << "w_scratch+=" << f_.nnz_out(j) << ";\n"; in codegen_body()
261 if (f_.nnz_out(j)) { in codegen_body()
[all …]
H A Djit_function.cpp85 alloc_w(nnz_in() + nnz_out()); in init()
109 g << name_out_[i] << " = w; w += " << nnz_out(i) << ";\n"; in codegen_body()
121 g << g.copy(name_out_[i], nnz_out(i), "*res++") << "\n"; in codegen_body()
H A Dfinite_differences.cpp117 n_y_ = derivative_of_.nnz_out(); in init()
214 const casadi_int nnz = derivative_of_.nnz_out(j); in eval()
249 w += derivative_of_.nnz_out(j); in eval()
293 casadi_int nnz = derivative_of_.nnz_out(j); in eval()
327 const casadi_int nnz = derivative_of_.nnz_out(j); in codegen_body()
360 g << g.res(j) << " = w, w += " << derivative_of_.nnz_out(j) << ";\n"; in codegen_body()
428 casadi_int nnz = derivative_of_.nnz_out(j); in codegen_body()
H A Dmap.cpp148 if (res1[j]) res1[j] += f_.nnz_out(j); in eval_gen()
174 if (res1[j]) res1[j] += f_.nnz_out(j); in sp_reverse()
205 if (f_.nnz_out(j)) in codegen_body()
206 g << "if (res1[" << j << "]) res1[" << j << "]+=" << f_.nnz_out(j) << ";\n"; in codegen_body()
351 res1[j] = res[j] ? res[j] + i*f_.nnz_out(j) : 0; in eval()
389 << g.res(j) << "+i*" << f_.nnz_out(j) << ": 0;\n"; in codegen_body()
442 res1[j] = res[j] ? res[j] + i*f.nnz_out(j) : nullptr; in ThreadsWork()
H A Dfunction_internal.cpp629 for (casadi_int k=0;k<nnz_out(i);++k) { in generate_out()
960 casadi_int nz_out = nnz_out(oind); in getJacSparsityGen()
1068 casadi_assert_dev(nz==nnz_out(oind)); in getJacSparsityHierarchicalSymm()
1303 casadi_int nz_out = nnz_out(oind); in getJacSparsityHierarchical()
1615 casadi_int nz_out = nnz_out(oind); in getJacSparsity()
2324 offset += nnz_out(i); in codegen_meta()
2372 off += nnz_out(i); in codegen_meta()
3089 casadi_assert(nnz_out()==res.size(), in nz_out()
3098 offset+= nnz_out(i); in nz_out()
3129 std::vector<double> ret(nnz_out()); in nz_out()
[all …]
H A Dexpm.cpp168 return Sparsity(nnz_out(oind), nnz_in(iind)); in getJacSparsity()
170 return Sparsity::dense(nnz_out(oind), nnz_in(iind)); in getJacSparsity()
H A Doracle_function.cpp237 for (casadi_int k=0; k<f.nnz_out(i); ++k) { in calc_function()
253 if (!all_of(m->res[i], m->res[i]+f.nnz_out(i), [](double v) { return isfinite(v);})) { in calc_function()
256 auto it = find_if(m->res[i], m->res[i]+f.nnz_out(i), [](double v) { return !isfinite(v);}); in calc_function()
H A Dfunction.cpp334 res_it->resize(nnz_out(i)); in buf_out()
346 (*res_it)->resize(nnz_out(i)); in buf_out()
373 i->second.resize(nnz_out(ind)); in buf_out()
388 i->second->resize(nnz_out(ind)); in buf_out()
770 casadi_int Function::nnz_out() const { in nnz_out() function in casadi::Function
771 return (*this)->nnz_out(); in nnz_out()
786 casadi_int Function::nnz_out(casadi_int ind) const { in nnz_out() function in casadi::Function
787 return (*this)->nnz_out(ind); in nnz_out()
1102 casadi_assert(data.numel()==nnz_out(), in generate_out()
1104 + ", while size " + str(nnz_out()) + " was expected."); in generate_out()
[all …]
H A Dswitch.cpp302 std::vector<SXElem> w_extra(nnz_out()); in eval_sx()
321 wll += nnz_out(i); in eval_sx()
368 for (casadi_int j=0; j<nnz_out(i); ++j) { in eval_sx()
H A Dx_function.hpp369 if (nnz_in(iind)==0 || nnz_out(oind)==0) {
371 jac_shape.first = compact ? nnz_out(oind) : numel_out(oind);
577 tmp.resize(nnz_out(oind));
942 stream << " argout_" << i << " = cell(" << nnz_out(i) << ",1);" << std::endl; in export_code()
1187 std::vector<bvec_t> seed(tr? f.nnz_in(0) : f.nnz_out(0), 1); in _which_depends()
1188 std::vector<bvec_t> sens(tr? f.nnz_out(0) : f.nnz_in(0), 0); in _which_depends()
H A Dcallback_internal.cpp116 sizes_res_[i] = nnz_out(i); in finalize()
H A Dsx_function.hpp154 casadi_int n_nodes() const override { return algorithm_.size() - nnz_out();} in n_nodes()
H A Dfunction.hpp247 casadi_int nnz_out() const;
248 casadi_int nnz_out(casadi_int ind) const;
249 casadi_int nnz_out(const std::string& oname) const {return numel_out(index_out(oname));} in nnz_out() function in casadi::Function
H A Dcasadi_call.cpp178 g << "res1[" << i << "]=" << g.work(res[i], fcn_.nnz_out(i)) << ";\n"; in generate()
H A Drootfinder.cpp223 n_ = oracle_.nnz_out(iout_); in init()
226 "while output size is " + str(oracle_.nnz_out(iout_))); in init()
H A Dfunction_internal.hpp671 casadi_int nnz_out() const;
672 casadi_int nnz_out(casadi_int ind) const { return sparsity_out(ind).nnz(); } in nnz_out() function in casadi::FunctionInternal
1234 for (casadi_int i=0; i<n_out_; ++i) resp[i] += nnz_out(i); in call_gen()
H A Dnlpsol.cpp372 nx_ = nnz_out(NLPSOL_X); in init()
374 ng_ = nnz_out(NLPSOL_G); in init()
/dports/math/cppad/CppAD-20210000.8/include/cppad/core/chkpoint_two/
H A Dhes_sparsity.hpp63 size_t nnz_out = 0; in hes_sparsity() local
68 ++nnz_out; in hes_sparsity()
72 pattern_out.resize(nr, nc, nnz_out); in hes_sparsity()
80 CPPAD_ASSERT_UNKNOWN( ell == nnz_out ); in hes_sparsity()
H A Djac_sparsity.hpp63 size_t nnz_out = 0; in jac_sparsity() local
68 ++nnz_out; in jac_sparsity()
72 pattern_out.resize(nr, nc, nnz_out); in jac_sparsity()
80 CPPAD_ASSERT_UNKNOWN( ell == nnz_out ); in jac_sparsity()
/dports/math/casadi/casadi-3.5.5/casadi/interfaces/sundials/
H A Dsundials_interface.cpp223 alloc_w(J.nnz_out(0), true); in init()
393 m->jac = w; w += get_function("jacF").nnz_out(0); in set_work()
395 m->jacB = w; w += get_function("jacB").nnz_out(0); in set_work()
H A Dkinsol_interface.cpp283 casadi_copy(NV_DATA_S(m->u), nnz_out(iout_), m->ires[iout_]); in solve()
/dports/math/casadi/casadi-3.5.5/docs/examples/cplusplus/
H A Dpropagating_sparsity.cpp75 vector<bvec_t> f_out(f.nnz_out(0), 0); in main()
/dports/math/casadi/casadi-3.5.5/casadi/solvers/
H A Dsymbolic_qr.cpp155 m->q.resize(factorize_.nnz_out(0)); in init_mem()
156 m->r.resize(factorize_.nnz_out(1)); in init_mem()
/dports/math/casadi/casadi-3.5.5/casadi/interfaces/superscs/
H A Dsuperscs_interface.cpp255 IM F = IM(F_.sparsity_out(0), range(offset, offset+F_.nnz_out(0))); in init()
256 offset+= F_.nnz_out(0); in init()
269 lookup_ = lookupvector(At_.nonzeros(), 2*nx_ + 2*A_.nnz() + 1 + Q_.nnz()+F_.nnz_out(0)+2); in init()
369 for (casadi_int k=0;k<F_.nnz_out(0);++k) { in solve()
/dports/math/casadi/casadi-3.5.5/swig/
H A Ddoc.i753 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
4133 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
5856 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
6645 %feature("docstring") casadi::Function::nnz_out() const "
8634 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
12185 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
13620 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
16053 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
19120 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
20367 %feature("docstring") casadi::FunctionInternal::nnz_out() const "
[all …]

12