@@ -166,6 +166,13 @@ extern "C" SEXP _cpp11test_grow_(SEXP n) {
166166 return cpp11::as_sexp (grow_ (cpp11::as_cpp<cpp11::decay_t <R_xlen_t>>(n)));
167167 END_CPP11
168168}
169+ // grow.cpp
170+ cpp11::writable::complexes grow_cplx_ (R_xlen_t n);
171+ extern " C" SEXP _cpp11test_grow_cplx_ (SEXP n) {
172+ BEGIN_CPP11
173+ return cpp11::as_sexp (grow_cplx_ (cpp11::as_cpp<cpp11::decay_t <R_xlen_t>>(n)));
174+ END_CPP11
175+ }
169176// insert.cpp
170177SEXP cpp11_insert_ (SEXP num_sxp);
171178extern " C" SEXP _cpp11test_cpp11_insert_ (SEXP num_sxp) {
@@ -373,6 +380,69 @@ extern "C" SEXP _cpp11test_sum_dbl_accumulate2_(SEXP x_sxp) {
373380 return cpp11::as_sexp (sum_dbl_accumulate2_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(x_sxp)));
374381 END_CPP11
375382}
383+ // sum.cpp
384+ cpp11::r_complex sum_cplx_for_ (cpp11::complexes x);
385+ extern " C" SEXP _cpp11test_sum_cplx_for_ (SEXP x) {
386+ BEGIN_CPP11
387+ return cpp11::as_sexp (sum_cplx_for_ (cpp11::as_cpp<cpp11::decay_t <cpp11::complexes>>(x)));
388+ END_CPP11
389+ }
390+ // sum.cpp
391+ cpp11::complexes sum_cplx_for_2_ (cpp11::complexes x);
392+ extern " C" SEXP _cpp11test_sum_cplx_for_2_ (SEXP x) {
393+ BEGIN_CPP11
394+ return cpp11::as_sexp (sum_cplx_for_2_ (cpp11::as_cpp<cpp11::decay_t <cpp11::complexes>>(x)));
395+ END_CPP11
396+ }
397+ // sum.cpp
398+ std::complex <double > sum_cplx_for_3_ (cpp11::complexes x_sxp);
399+ extern " C" SEXP _cpp11test_sum_cplx_for_3_ (SEXP x_sxp) {
400+ BEGIN_CPP11
401+ return cpp11::as_sexp (sum_cplx_for_3_ (cpp11::as_cpp<cpp11::decay_t <cpp11::complexes>>(x_sxp)));
402+ END_CPP11
403+ }
404+ // sum.cpp
405+ std::complex <double > sum_cplx_for_4_ (SEXP x_sxp);
406+ extern " C" SEXP _cpp11test_sum_cplx_for_4_ (SEXP x_sxp) {
407+ BEGIN_CPP11
408+ return cpp11::as_sexp (sum_cplx_for_4_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(x_sxp)));
409+ END_CPP11
410+ }
411+ // sum.cpp
412+ SEXP sum_cplx_for_5_ (SEXP x_sxp);
413+ extern " C" SEXP _cpp11test_sum_cplx_for_5_ (SEXP x_sxp) {
414+ BEGIN_CPP11
415+ return cpp11::as_sexp (sum_cplx_for_5_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(x_sxp)));
416+ END_CPP11
417+ }
418+ // sum.cpp
419+ cpp11::complexes sum_cplx_for_6_ (SEXP x_sxp);
420+ extern " C" SEXP _cpp11test_sum_cplx_for_6_ (SEXP x_sxp) {
421+ BEGIN_CPP11
422+ return cpp11::as_sexp (sum_cplx_for_6_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(x_sxp)));
423+ END_CPP11
424+ }
425+ // sum.cpp
426+ std::complex <double > sum_cplx_foreach_ (cpp11::complexes x);
427+ extern " C" SEXP _cpp11test_sum_cplx_foreach_ (SEXP x) {
428+ BEGIN_CPP11
429+ return cpp11::as_sexp (sum_cplx_foreach_ (cpp11::as_cpp<cpp11::decay_t <cpp11::complexes>>(x)));
430+ END_CPP11
431+ }
432+ // sum.cpp
433+ std::complex <double > sum_cplx_accumulate_ (cpp11::complexes x);
434+ extern " C" SEXP _cpp11test_sum_cplx_accumulate_ (SEXP x) {
435+ BEGIN_CPP11
436+ return cpp11::as_sexp (sum_cplx_accumulate_ (cpp11::as_cpp<cpp11::decay_t <cpp11::complexes>>(x)));
437+ END_CPP11
438+ }
439+ // sum.cpp
440+ std::complex <double > sum_cplx_for2_ (SEXP x_sxp);
441+ extern " C" SEXP _cpp11test_sum_cplx_for2_ (SEXP x_sxp) {
442+ BEGIN_CPP11
443+ return cpp11::as_sexp (sum_cplx_for2_ (cpp11::as_cpp<cpp11::decay_t <SEXP>>(x_sxp)));
444+ END_CPP11
445+ }
376446// sum_int.cpp
377447double sum_int_for_ (cpp11::integers x);
378448extern " C" SEXP _cpp11test_sum_int_for_ (SEXP x) {
@@ -488,6 +558,7 @@ static const R_CallMethodDef CallEntries[] = {
488558 {" _cpp11test_gibbs_rcpp" , (DL_FUNC) &_cpp11test_gibbs_rcpp, 2 },
489559 {" _cpp11test_gibbs_rcpp2" , (DL_FUNC) &_cpp11test_gibbs_rcpp2, 2 },
490560 {" _cpp11test_grow_" , (DL_FUNC) &_cpp11test_grow_, 1 },
561+ {" _cpp11test_grow_cplx_" , (DL_FUNC) &_cpp11test_grow_cplx_, 1 },
491562 {" _cpp11test_my_message" , (DL_FUNC) &_cpp11test_my_message, 2 },
492563 {" _cpp11test_my_message_n1" , (DL_FUNC) &_cpp11test_my_message_n1, 1 },
493564 {" _cpp11test_my_message_n1fmt" , (DL_FUNC) &_cpp11test_my_message_n1fmt, 1 },
@@ -520,6 +591,15 @@ static const R_CallMethodDef CallEntries[] = {
520591 {" _cpp11test_row_sums" , (DL_FUNC) &_cpp11test_row_sums, 1 },
521592 {" _cpp11test_string_proxy_assignment_" , (DL_FUNC) &_cpp11test_string_proxy_assignment_, 0 },
522593 {" _cpp11test_string_push_back_" , (DL_FUNC) &_cpp11test_string_push_back_, 0 },
594+ {" _cpp11test_sum_cplx_accumulate_" , (DL_FUNC) &_cpp11test_sum_cplx_accumulate_, 1 },
595+ {" _cpp11test_sum_cplx_for2_" , (DL_FUNC) &_cpp11test_sum_cplx_for2_, 1 },
596+ {" _cpp11test_sum_cplx_for_" , (DL_FUNC) &_cpp11test_sum_cplx_for_, 1 },
597+ {" _cpp11test_sum_cplx_for_2_" , (DL_FUNC) &_cpp11test_sum_cplx_for_2_, 1 },
598+ {" _cpp11test_sum_cplx_for_3_" , (DL_FUNC) &_cpp11test_sum_cplx_for_3_, 1 },
599+ {" _cpp11test_sum_cplx_for_4_" , (DL_FUNC) &_cpp11test_sum_cplx_for_4_, 1 },
600+ {" _cpp11test_sum_cplx_for_5_" , (DL_FUNC) &_cpp11test_sum_cplx_for_5_, 1 },
601+ {" _cpp11test_sum_cplx_for_6_" , (DL_FUNC) &_cpp11test_sum_cplx_for_6_, 1 },
602+ {" _cpp11test_sum_cplx_foreach_" , (DL_FUNC) &_cpp11test_sum_cplx_foreach_, 1 },
523603 {" _cpp11test_sum_dbl_accumulate2_" , (DL_FUNC) &_cpp11test_sum_dbl_accumulate2_, 1 },
524604 {" _cpp11test_sum_dbl_accumulate_" , (DL_FUNC) &_cpp11test_sum_dbl_accumulate_, 1 },
525605 {" _cpp11test_sum_dbl_for2_" , (DL_FUNC) &_cpp11test_sum_dbl_for2_, 1 },
0 commit comments