@@ -166,6 +166,13 @@ extern "C" SEXP _cpp4rtest_grow_(SEXP n) {
166166 return cpp4r::as_sexp (grow_ (cpp4r::as_cpp<cpp4r::decay_t <R_xlen_t>>(n)));
167167 END_cpp4r
168168}
169+ // grow.cpp
170+ cpp4r::writable::complexes grow_cplx_ (R_xlen_t n);
171+ extern " C" SEXP _cpp4rtest_grow_cplx_ (SEXP n) {
172+ BEGIN_cpp4r
173+ return cpp4r::as_sexp (grow_cplx_ (cpp4r::as_cpp<cpp4r::decay_t <R_xlen_t>>(n)));
174+ END_cpp4r
175+ }
169176// insert.cpp
170177SEXP cpp4r_insert_ (SEXP num_sxp);
171178extern " C" SEXP _cpp4rtest_cpp4r_insert_ (SEXP num_sxp) {
@@ -443,6 +450,69 @@ extern "C" SEXP _cpp4rtest_sum_dbl_accumulate2_(SEXP x_sxp) {
443450 return cpp4r::as_sexp (sum_dbl_accumulate2_ (cpp4r::as_cpp<cpp4r::decay_t <SEXP>>(x_sxp)));
444451 END_cpp4r
445452}
453+ // sum.cpp
454+ cpp4r::r_complex sum_cplx_for_ (cpp4r::complexes x);
455+ extern " C" SEXP _cpp4rtest_sum_cplx_for_ (SEXP x) {
456+ BEGIN_cpp4r
457+ return cpp4r::as_sexp (sum_cplx_for_ (cpp4r::as_cpp<cpp4r::decay_t <cpp4r::complexes>>(x)));
458+ END_cpp4r
459+ }
460+ // sum.cpp
461+ cpp4r::complexes sum_cplx_for_2_ (cpp4r::complexes x);
462+ extern " C" SEXP _cpp4rtest_sum_cplx_for_2_ (SEXP x) {
463+ BEGIN_cpp4r
464+ return cpp4r::as_sexp (sum_cplx_for_2_ (cpp4r::as_cpp<cpp4r::decay_t <cpp4r::complexes>>(x)));
465+ END_cpp4r
466+ }
467+ // sum.cpp
468+ std::complex <double > sum_cplx_for_3_ (cpp4r::complexes x_sxp);
469+ extern " C" SEXP _cpp4rtest_sum_cplx_for_3_ (SEXP x_sxp) {
470+ BEGIN_cpp4r
471+ return cpp4r::as_sexp (sum_cplx_for_3_ (cpp4r::as_cpp<cpp4r::decay_t <cpp4r::complexes>>(x_sxp)));
472+ END_cpp4r
473+ }
474+ // sum.cpp
475+ std::complex <double > sum_cplx_for_4_ (SEXP x_sxp);
476+ extern " C" SEXP _cpp4rtest_sum_cplx_for_4_ (SEXP x_sxp) {
477+ BEGIN_cpp4r
478+ return cpp4r::as_sexp (sum_cplx_for_4_ (cpp4r::as_cpp<cpp4r::decay_t <SEXP>>(x_sxp)));
479+ END_cpp4r
480+ }
481+ // sum.cpp
482+ SEXP sum_cplx_for_5_ (SEXP x_sxp);
483+ extern " C" SEXP _cpp4rtest_sum_cplx_for_5_ (SEXP x_sxp) {
484+ BEGIN_cpp4r
485+ return cpp4r::as_sexp (sum_cplx_for_5_ (cpp4r::as_cpp<cpp4r::decay_t <SEXP>>(x_sxp)));
486+ END_cpp4r
487+ }
488+ // sum.cpp
489+ cpp4r::complexes sum_cplx_for_6_ (SEXP x_sxp);
490+ extern " C" SEXP _cpp4rtest_sum_cplx_for_6_ (SEXP x_sxp) {
491+ BEGIN_cpp4r
492+ return cpp4r::as_sexp (sum_cplx_for_6_ (cpp4r::as_cpp<cpp4r::decay_t <SEXP>>(x_sxp)));
493+ END_cpp4r
494+ }
495+ // sum.cpp
496+ std::complex <double > sum_cplx_foreach_ (cpp4r::complexes x);
497+ extern " C" SEXP _cpp4rtest_sum_cplx_foreach_ (SEXP x) {
498+ BEGIN_cpp4r
499+ return cpp4r::as_sexp (sum_cplx_foreach_ (cpp4r::as_cpp<cpp4r::decay_t <cpp4r::complexes>>(x)));
500+ END_cpp4r
501+ }
502+ // sum.cpp
503+ std::complex <double > sum_cplx_accumulate_ (cpp4r::complexes x);
504+ extern " C" SEXP _cpp4rtest_sum_cplx_accumulate_ (SEXP x) {
505+ BEGIN_cpp4r
506+ return cpp4r::as_sexp (sum_cplx_accumulate_ (cpp4r::as_cpp<cpp4r::decay_t <cpp4r::complexes>>(x)));
507+ END_cpp4r
508+ }
509+ // sum.cpp
510+ std::complex <double > sum_cplx_for2_ (SEXP x_sxp);
511+ extern " C" SEXP _cpp4rtest_sum_cplx_for2_ (SEXP x_sxp) {
512+ BEGIN_cpp4r
513+ return cpp4r::as_sexp (sum_cplx_for2_ (cpp4r::as_cpp<cpp4r::decay_t <SEXP>>(x_sxp)));
514+ END_cpp4r
515+ }
446516// sum_int.cpp
447517double sum_int_for_ (cpp4r::integers x);
448518extern " C" SEXP _cpp4rtest_sum_int_for_ (SEXP x) {
@@ -574,6 +644,7 @@ static const R_CallMethodDef CallEntries[] = {
574644 {" _cpp4rtest_gibbs_rcpp" , (DL_FUNC) &_cpp4rtest_gibbs_rcpp, 2 },
575645 {" _cpp4rtest_gibbs_rcpp2" , (DL_FUNC) &_cpp4rtest_gibbs_rcpp2, 2 },
576646 {" _cpp4rtest_grow_" , (DL_FUNC) &_cpp4rtest_grow_, 1 },
647+ {" _cpp4rtest_grow_cplx_" , (DL_FUNC) &_cpp4rtest_grow_cplx_, 1 },
577648 {" _cpp4rtest_grow_strings_cpp4r_" , (DL_FUNC) &_cpp4rtest_grow_strings_cpp4r_, 2 },
578649 {" _cpp4rtest_grow_strings_manual_" , (DL_FUNC) &_cpp4rtest_grow_strings_manual_, 2 },
579650 {" _cpp4rtest_grow_strings_rcpp_" , (DL_FUNC) &_cpp4rtest_grow_strings_rcpp_, 2 },
@@ -615,6 +686,15 @@ static const R_CallMethodDef CallEntries[] = {
615686 {" _cpp4rtest_row_sums" , (DL_FUNC) &_cpp4rtest_row_sums, 1 },
616687 {" _cpp4rtest_string_proxy_assignment_" , (DL_FUNC) &_cpp4rtest_string_proxy_assignment_, 0 },
617688 {" _cpp4rtest_string_push_back_" , (DL_FUNC) &_cpp4rtest_string_push_back_, 0 },
689+ {" _cpp4rtest_sum_cplx_accumulate_" , (DL_FUNC) &_cpp4rtest_sum_cplx_accumulate_, 1 },
690+ {" _cpp4rtest_sum_cplx_for2_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for2_, 1 },
691+ {" _cpp4rtest_sum_cplx_for_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for_, 1 },
692+ {" _cpp4rtest_sum_cplx_for_2_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for_2_, 1 },
693+ {" _cpp4rtest_sum_cplx_for_3_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for_3_, 1 },
694+ {" _cpp4rtest_sum_cplx_for_4_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for_4_, 1 },
695+ {" _cpp4rtest_sum_cplx_for_5_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for_5_, 1 },
696+ {" _cpp4rtest_sum_cplx_for_6_" , (DL_FUNC) &_cpp4rtest_sum_cplx_for_6_, 1 },
697+ {" _cpp4rtest_sum_cplx_foreach_" , (DL_FUNC) &_cpp4rtest_sum_cplx_foreach_, 1 },
618698 {" _cpp4rtest_sum_dbl_accumulate2_" , (DL_FUNC) &_cpp4rtest_sum_dbl_accumulate2_, 1 },
619699 {" _cpp4rtest_sum_dbl_accumulate_" , (DL_FUNC) &_cpp4rtest_sum_dbl_accumulate_, 1 },
620700 {" _cpp4rtest_sum_dbl_for2_" , (DL_FUNC) &_cpp4rtest_sum_dbl_for2_, 1 },
0 commit comments