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

copy(): Unified behavior of copy() across all types. Resolves #5.

Now a copy() of generic->ViennaCL-type resizes the ViennaCL object if it has zero size.
Conversely, a copy() from ViennaCL-type->generic checks for the correct size of the generic object,
but no longer resizes anything. The rationale is that ViennaCL cannot reasonably know how to resize() external objects of arbitrary type.
Hence, the user is supposed to resize the type, because (s)he easily knows how to do this.
parent e15fb3b1
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