Registered Member
|
Hi,
I have a problem with using InsertBack. If I try
I get the following output with error:
If I try to swap the two indices:
I get the same error but sooner:
I'm clearly not understanding the working of insertBack, what do I miss? I'm using eigen3 on a MacOSX. Cheers, Thomas |
Moderator
|
hi, the insertBack function is aimed to be as fast as possible and it is therefore a low level function: as explained in its documentation:
"Before filling a given inner vector you must call the statVec(Index) function" "After an insertion session, you should call the finalize() function." So here is the correct version:
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora