Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rcpparrayfire template support #18

Open
hakantekbas opened this issue Jun 9, 2021 · 2 comments
Open

rcpparrayfire template support #18

hakantekbas opened this issue Jun 9, 2021 · 2 comments

Comments

@hakantekbas
Copy link

Hi;

Is it possible to use template in rcpparrayfire. I could not see an example. If we can, can you share an example?

Thanks.

@rstub
Copy link
Member

rstub commented Jun 10, 2021

Can you be a bit more specific what you are trying to do?

In principle, you can use any C++ construct you like. However, the interface to R is limited to R's C API.

@hakantekbas
Copy link
Author

I'm trying to write a code that can handle integer or numeric (double) vector.

template<typename T, int RTYPE>
Vector<RTYPE> maxMinMedianGroupBy(Vector<RTYPE> data,IntegerVector grp,std::string funcTip) {
..........
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants