Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add SetDimensions #9

Merged
merged 2 commits into from
Aug 21, 2020
Merged

add SetDimensions #9

merged 2 commits into from
Aug 21, 2020

Conversation

jonreiter
Copy link
Contributor

Add PackedMatrix.SetDimensions with error checking.

Simplex.LoadProblem was not bounds-checking the constraint and objective function slices. In cases where these slices were too long this ran off the end of unsafe.Pointer arrays. Without SetDimensions there was no way to add empty rows at the bottom of a packedmatrix to get these sizes/lengths in line.

@spakin spakin merged commit e02c0be into lanl:master Aug 21, 2020
@spakin
Copy link
Member

spakin commented Aug 21, 2020

Thanks for the updated code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants