Home
last modified time | relevance | path

Searched refs:sz_w (Results 1 – 25 of 61) sorted by relevance

123

/dports/math/casadi/casadi-3.5.5/casadi/core/runtime/
H A Dcasadi_sqpmethod.hpp45 casadi_int* sz_iw, casadi_int* sz_w) { in casadi_sqpmethod_work() argument
54 *sz_w = *sz_iw = 0; in casadi_sqpmethod_work()
57 *sz_w += nx; // gLag in casadi_sqpmethod_work()
58 *sz_w += nx; // gLag_old in casadi_sqpmethod_work()
60 *sz_w += nx; // gf in casadi_sqpmethod_work()
62 *sz_w += nx + ng; // lbdz in casadi_sqpmethod_work()
63 *sz_w += nx + ng; // ubdz in casadi_sqpmethod_work()
65 *sz_w += nx; // dx in casadi_sqpmethod_work()
66 *sz_w += nx + ng; // dlam in casadi_sqpmethod_work()
68 *sz_w += nnz_h; // Bk in casadi_sqpmethod_work()
[all …]
H A Dcasadi_nlp.hpp30 void casadi_nlpsol_work(const casadi_nlpsol_prob<T1>* p, casadi_int* sz_iw, casadi_int* sz_w) { in casadi_nlpsol_work() argument
32 *sz_w = *sz_iw = 0; in casadi_nlpsol_work()
33 *sz_w += p->nx + p->ng; // z in casadi_nlpsol_work()
34 *sz_w += p->nx + p->ng; // lbz in casadi_nlpsol_work()
35 *sz_w += p->nx + p->ng; // ubz in casadi_nlpsol_work()
36 *sz_w += p->nx + p->ng; // lam in casadi_nlpsol_work()
37 *sz_w += p->np; // lam_p in casadi_nlpsol_work()
H A Dcasadi_qp.hpp55 *sz_w = *sz_iw = 0; in casadi_qp_work()
57 *sz_w = casadi_max(*sz_w, p->nz); // casadi_project, tau memory in casadi_qp_work()
59 *sz_w = casadi_max(*sz_w, 2*p->nz); // casadi_qr in casadi_qp_work()
61 *sz_w += nnz_kkt; // kkt in casadi_qp_work()
63 *sz_w += p->nz; // lbz in casadi_qp_work()
64 *sz_w += p->nz; // ubz in casadi_qp_work()
65 *sz_w += p->nz; // lam in casadi_qp_work()
67 *sz_w += p->nz; // dz in casadi_qp_work()
68 *sz_w += p->nz; // dlam in casadi_qp_work()
71 *sz_w += p->nz; // sens in casadi_qp_work()
[all …]
/dports/math/casadi/casadi-3.5.5/casadi/core/
H A Dconvexify.cpp49 size_t Convexify::sz_w() const { in sz_w() function in casadi::Convexify
50 return convexify_data_.sz_w; in sz_w()
273 d.sz_w = 0; in setup()
275 d.sz_w = max(block_size, 2*(block_size-1)*d.config.max_iter_eig); in setup()
276 if (d.config.Hsp_project) d.sz_w = max(d.sz_w, Hsp.size1()); in setup()
277 if (d.config.scc_transform) d.sz_w += block_size*block_size; in setup()
278 if (inplace) d.sz_w = max(d.sz_w, Hsp.size1()+d.Hrsp.nnz()); in setup()
280 d.sz_w = Hsp.size1()+d.sz_w; in setup()
H A Dmap.cpp132 alloc_w(f_.sz_w()); in init()
329 size_t sz_arg, sz_res, sz_iw, sz_w; in eval()
330 f_.sz_work(sz_arg, sz_res, sz_iw, sz_w); in eval()
356 flag = f_(arg1, res1, iw + i*sz_iw, w + i*sz_w, ind[i]) || flag; in eval()
373 size_t sz_arg, sz_res, sz_iw, sz_w; in codegen_body() local
374 f_.sz_work(sz_arg, sz_res, sz_iw, sz_w); in codegen_body()
411 alloc_w(f_.sz_w() * n_); in init()
430 size_t sz_arg, sz_res, sz_iw, sz_w; in ThreadsWork() local
431 f.sz_work(sz_arg, sz_res, sz_iw, sz_w); in ThreadsWork()
446 ret = f(arg1, res1, iw + i*sz_iw, w + i*sz_w, ind); in ThreadsWork()
[all …]
H A Dcasadi_c.cpp290 casadi_int *sz_iw, casadi_int *sz_w) { in casadi_c_work() argument
291 return casadi_c_work_id(casadi_c_active, sz_arg, sz_res, sz_iw, sz_w); in casadi_c_work()
295 casadi_int *sz_iw, casadi_int *sz_w) { in casadi_c_work_id() argument
301 *sz_w = casadi_c_loaded_functions.at(id).sz_w(); in casadi_c_work_id()
H A Dproject.hpp85 size_t sz_w() const override { return size1();} in sz_w() function in casadi::Project
129 size_t sz_w() const override { return 0;} in sz_w() function in casadi::Densify
167 size_t sz_w() const override { return 0;} in sz_w() function in casadi::Sparsify
H A Dmapsum.cpp111 alloc_w(f_.sz_w(), true); in init()
140 T* w_scratch = w + f_.sz_w(); in eval_gen()
185 bvec_t* w_scratch = w + f_.sz_w(); in sp_reverse()
198 w_scratch = w + f_.sz_w(); in sp_reverse()
231 g << "w_scratch = w+" << f_.sz_w() << ";\n"; in codegen_body()
H A Dexternal.cpp218 casadi_int sz_arg=0, sz_res=0, sz_iw=0, sz_w=0; in init() local
220 casadi_int flag = work_(&sz_arg, &sz_res, &sz_iw, &sz_w); in init()
228 sz_w = v[3]; in init()
243 alloc_w(sz_w); in init()
H A Drootfinder.cpp251 size_t sz_w = oracle_.sz_w(); in init() local
253 sz_w = max(sz_w, jac.sz_w()); in init()
255 alloc_w(sz_w + 2*static_cast<size_t>(n_)); in init()
H A Dfunction_internal.cpp966 vector<bvec_t> w(sz_w(), 0); in getJacSparsityGen()
1074 vector<bvec_t> w(sz_w()); in getJacSparsityHierarchicalSymm()
1316 vector<bvec_t> w(sz_w()); in getJacSparsityHierarchical()
2253 casadi_int sz_w_codegen = sz_w(); in codegen_meta()
2280 size_t sz_w = this->sz_w(); in codegen_meta() local
2283 sz_w = max(sz_w, static_cast<size_t>(s.size1())); // To be able to copy a column in codegen_meta()
2284 sz_w = max(sz_w, static_cast<size_t>(s.size2())); // To be able to copy a row in codegen_meta()
2286 sz_w += i_nnz + o_nnz; in codegen_meta()
2531 sz_w = this->sz_w(); in sz_work()
2560 sz_w_per_ += sz_w; in alloc_w()
[all …]
/dports/math/casadi/casadi-3.5.5/docs/examples/cplusplus/
H A Dc_api_usage.cpp66 casadi_int sz_arg=n_in, sz_res=n_out, sz_iw=0, sz_w=0; in usage_c() local
68 casadi_c_work_id(id, &sz_arg, &sz_res, &sz_iw, &sz_w); in usage_c()
71 sz_arg, sz_res, sz_iw, sz_w); in usage_c()
110 double w[sz_w]; in usage_c()
H A Dcodegen_usage.cpp66 …typedef int (*work_t)(casadi_int* sz_arg, casadi_int* sz_res, casadi_int* sz_iw, casadi_int* sz_w); in usage_c()
99 casadi_int sz_arg=n_in, sz_res=n_out, sz_iw=0, sz_w=0; in usage_c() local
102 if (work && work(&sz_arg, &sz_res, &sz_iw, &sz_w)) return 1; in usage_c()
105 sz_arg, sz_res, sz_iw, sz_w); in usage_c()
159 double w[sz_w]; in usage_c()
/dports/math/casadi/casadi-3.5.5/casadi/
H A Dmem.h56 casadi_int* sz_iw, casadi_int* sz_w);
118 casadi_int sz_arg, sz_res, sz_iw, sz_w; member
152 mem->sz_iw= mem->sz_w = 0; in casadi_init()
154 flag = f->work(&mem->sz_arg, &mem->sz_res, &mem->sz_iw, &mem->sz_w); in casadi_init()
225 mem->w = (casadi_real*)malloc(mem->sz_w*sizeof(casadi_real)); in casadi_alloc_arrays()
226 if (mem->sz_w!=0 && mem->w==0) return 1; in casadi_alloc_arrays()
H A Dcasadi_c.h110 casadi_int *sz_iw, casadi_int *sz_w);
127 casadi_int *sz_iw, casadi_int *sz_w);
/dports/math/casadi/casadi-3.5.5/docs/users_guide/
H A Djit_tmp.c116 …OL_EXPORT int f_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) { in f_work() argument
120 if (sz_w) *sz_w = 3; in f_work()
H A Dgen.c231 …OL_EXPORT int f_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) { in f_work() argument
235 if (sz_w) *sz_w = 1; in f_work()
/dports/math/hpipm/hpipm-0.1.1/test_problems/pendulum/
H A Dode_model.c153 CASADI_SYMBOL_EXPORT int odeFun_work(int *sz_arg, int* sz_res, int *sz_iw, int *sz_w) { in odeFun_work() argument
157 if (sz_w) *sz_w = 9; in odeFun_work()
H A Djac_model.c224 CASADI_SYMBOL_EXPORT int jacFun_work(int *sz_arg, int* sz_res, int *sz_iw, int *sz_w) { in jacFun_work() argument
228 if (sz_w) *sz_w = 24; in jacFun_work()
H A Dvde_adj_model.c226 CASADI_SYMBOL_EXPORT int adjFun_work(int *sz_arg, int* sz_res, int *sz_iw, int *sz_w) { in adjFun_work() argument
230 if (sz_w) *sz_w = 23; in adjFun_work()
/dports/math/hpipm/hpipm-0.1.1/experimental/andrea/casadi_vde_interface/
H A Dode_model.c151 CASADI_SYMBOL_EXPORT int odeFun_work(int *sz_arg, int* sz_res, int *sz_iw, int *sz_w) { in odeFun_work() argument
155 if (sz_w) *sz_w = 9; in odeFun_work()
H A Dvde_adj_model.c224 CASADI_SYMBOL_EXPORT int adjFun_work(int *sz_arg, int* sz_res, int *sz_iw, int *sz_w) { in adjFun_work() argument
228 if (sz_w) *sz_w = 23; in adjFun_work()
H A Djac_model.c222 CASADI_SYMBOL_EXPORT int jacFun_work(int *sz_arg, int* sz_res, int *sz_iw, int *sz_w) { in jacFun_work() argument
226 if (sz_w) *sz_w = 24; in jacFun_work()
/dports/math/casadi/casadi-3.5.5/casadi/solvers/
H A Dqrqp.cpp131 casadi_int sz_w, sz_iw; in init() local
132 casadi_qp_work(&p_, &sz_iw, &sz_w); in init()
134 alloc_w(sz_w, true); in init()
/dports/math/casadi/casadi-3.5.5/docs/examples/python/
H A Daccessing_sx_algorithm.py45 work = numpy.zeros(f.sz_w())

123