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

How to calculate sum in 1.6? #127

Closed
jeremysalwen opened this issue Mar 7, 2015 · 1 comment
Closed

How to calculate sum in 1.6? #127

jeremysalwen opened this issue Mar 7, 2015 · 1 comment
Milestone

Comments

@jeremysalwen
Copy link

http://sourceforge.net/p/viennacl/discussion/1143678/thread/38e942a0/
In this thread, is says that

FYI: Actually, we have recently agreed to include additional reduction operations such as sum() in the upcoming 1.6.0 release.

However, I cannot seem to find out how to interface with these functions. I can't seem to find a working sum() function in the documentation or code, and

Scalar<double>  linalg::reduce<op_add>(vector);

gives compile errors

ambiguous overload for ‘operator=’ 
@karlrupp karlrupp added this to the Release 1.7.0 milestone May 5, 2015
@karlrupp
Copy link
Collaborator

karlrupp commented May 5, 2015

Sorry for answering so late, I totally overlooked this :-/

reduce<> and friends are so far only prepared from the API point of view, but the implementations in the backends are still missing, i.e. they have (unfortunately) not made it into the 1.6.x release series. This is also the reason why you ran into the compilation issues.

As we've received a couple of requests regarding these reduction operations already, I scheduled this for the 1.7.0 release.

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