Skip to content

Commit e7307e0

Browse files
Document batch::get in the migration guide
Fix #591
1 parent 7d8d2ca commit e7307e0

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)