- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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?
コピーされたリンク
1 返信
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
