Skip to content

Conversation

blegat
Copy link
Member

@blegat blegat commented Jun 3, 2021

Zero index is used to determine whether there are duplicate names:

if iszero(index.value)

This was clashing with the fact that MatrixOfConstraints was returning zero indices. It turns out we don't really don't zero indices. In fact with this PR, ci.value corresponds to the row in the scalar case which is nice (and to the first row in the vector case). Before, it corresponded to the offset but it was zero for the first constraint.

@blegat blegat merged commit 002a9c4 into master Jun 7, 2021
@blegat blegat deleted the bl/name_dup_mat branch June 7, 2021 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants