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

Vector: Support copy from host to empty vector #66

Closed
karlrupp opened this issue Mar 9, 2014 · 1 comment
Closed

Vector: Support copy from host to empty vector #66

karlrupp opened this issue Mar 9, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@karlrupp
Copy link
Collaborator

karlrupp commented Mar 9, 2014

It is handy to make possible the following:

std::vector<T> host_x(N);
viennacl::vector<T> x;
viennacl::copy(host_x, x);

in order to not prematurely require a size specification for x. Note that the three lines above may not even be in the same translation unit, so it may be difficult to provide a size for x at the point of its creation.

@karlrupp karlrupp added this to the Release 1.6.0 milestone Mar 9, 2014
@karlrupp karlrupp added the bug label Mar 9, 2014
@karlrupp karlrupp self-assigned this Mar 9, 2014
@karlrupp
Copy link
Collaborator Author

Fixed here: a89695e

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

No branches or pull requests

1 participant