-
Notifications
You must be signed in to change notification settings - Fork 391
L_1lg
Joris Gillis edited this page Apr 4, 2023
·
2 revisions
[INTERNAL]
::
lookupvector([int] v) -> [int] lookupvector([int] v, int size) -> [int]
.......
::
lookupvector([int] v)
[INTERNAL]
.............
.......
::
lookupvector([int] v, int size)
[INTERNAL] Returns a vector for quickly looking up entries of supplied list.
lookupvector[i]!=-1 <=> v contains i v[lookupvector[i]] == i <=> v contains i
Duplicates are treated by looking up last occurrence
Extra doc: https://github.com/casadi/casadi/wiki/L_1lg
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/casadi_misc.hpp#L154
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/casadi_misc.cpp#L154-L163
.............
To edit, see writing tips.