/dports/math/casadi/casadi-3.5.5/casadi/core/ |
H A D | mapsum.cpp | 116 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 D | jit_function.cpp | 85 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 D | finite_differences.cpp | 117 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 D | map.cpp | 148 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 D | function_internal.cpp | 629 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 D | expm.cpp | 168 return Sparsity(nnz_out(oind), nnz_in(iind)); in getJacSparsity() 170 return Sparsity::dense(nnz_out(oind), nnz_in(iind)); in getJacSparsity()
|
H A D | oracle_function.cpp | 237 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 D | function.cpp | 334 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 D | switch.cpp | 302 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 D | x_function.hpp | 369 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 D | callback_internal.cpp | 116 sizes_res_[i] = nnz_out(i); in finalize()
|
H A D | sx_function.hpp | 154 casadi_int n_nodes() const override { return algorithm_.size() - nnz_out();} in n_nodes()
|
H A D | function.hpp | 247 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 D | casadi_call.cpp | 178 g << "res1[" << i << "]=" << g.work(res[i], fcn_.nnz_out(i)) << ";\n"; in generate()
|
H A D | rootfinder.cpp | 223 n_ = oracle_.nnz_out(iout_); in init() 226 "while output size is " + str(oracle_.nnz_out(iout_))); in init()
|
H A D | function_internal.hpp | 671 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 D | nlpsol.cpp | 372 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 D | hes_sparsity.hpp | 63 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 D | jac_sparsity.hpp | 63 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 D | sundials_interface.cpp | 223 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 D | kinsol_interface.cpp | 283 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 D | propagating_sparsity.cpp | 75 vector<bvec_t> f_out(f.nnz_out(0), 0); in main()
|
/dports/math/casadi/casadi-3.5.5/casadi/solvers/ |
H A D | symbolic_qr.cpp | 155 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 D | superscs_interface.cpp | 255 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 D | doc.i | 753 %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 …]
|