Skip to content

Commit 941b225

Browse files
authored
Merge pull request #592 from xtensor-stack/feature/doc-batch-at
Document batch::get in the migration guide
2 parents e60ead6 + e7307e0 commit 941b225

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/source/migration_guide.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ Loading Batches
6666
to update an existing batch through its ``load`` method. The regular assign
6767
operator can be used instead.
6868

69+
Indexing Batches
70+
****************
71+
72+
``xsimd::batch<T>::operator[](size_t)`` has been replaced with
73+
``xsimd::batch<T>::get(size_t)``. Keep in mind that this method implies a register
74+
load *for each call*, so it's wise not to use it in performance-critical
75+
section. When needed, do an explicit store of the batch into an array and work
76+
from there.
77+
6978
Architecture Detection
7079
**********************
7180

0 commit comments

Comments
 (0)