- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I couldn't seem to find this in the docs, though I'm sure it's specified somewhere.
Can cblas_?copy support overlapping regions for the source and destinations vectors?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Underlying code works the same as public source versions. According to Fortran rules, overlap isn't permitted, as if the prototypes were defined with *restrict. In practice, it will likely work OK with overlap, if copying toward smaller addresses with positive increment parameters, or toward larger addresses with negative increments.
memmove() is fairly efficient in most current implementations (maybe better than ?copy for the case of both increments negative), so it may not make sense to use ?copy in such cases.
memmove() is fairly efficient in most current implementations (maybe better than ?copy for the case of both increments negative), so it may not make sense to use ?copy in such cases.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page