This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Thread-safety of multiple writers to a matrix

Tags: None
(comma "," separated)
brycen
Registered Member
Posts
2
Karma
0
How threadsafe is Eigen in a situation where there are multiple writers to a matrix, but no two threads ever write to the same index? Say I have a thread per row, and am calling repeatedly

myMatrix.row(i).noalias() += someOtherVector;

Is it possible that there would be some conflict under the hood?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
no conflict, that's safe.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]