Skip to content
Commit a89695e5 authored by Karl Rupp's avatar Karl Rupp
Browse files

Vector: Added support for resizing a vector<T> object with copy if it has zero size.

The following is now legitimate:
  std::vector<T> x(N);
  viennacl::vector<T> vcl_x;
  viennacl::copy(x, vcl_x);
and resizes the ViennaCL vector accordingly (in the default context).
A similar support for the iterator interface is not possible without substantial refactoring.
parent 75bb917a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment