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

Minimal changes to jacobian in calculus.jl to allow for nonsquare Jacobians #372

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

gaperez64
Copy link
Contributor

I enabled the CI workflow on my clone and things seemed OK, I hope there are some tests being run there becase I did not run any checks/tests manually :D

@gaperez64
Copy link
Contributor Author

oh and this resolves #371

Copy link
Member

@lbenet lbenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. I left essentially one suggestion (four times)... Aside from that, LGTM!

src/calculus.jl Outdated

@inbounds for comp = 1:numVars
@inbounds for comp = 1:length(vf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the following is recommended (it should have been changed before, but ...):

Suggested change
@inbounds for comp = 1:length(vf)
@inbounds for comp in eachindex(vf)

src/calculus.jl Outdated

for comp = 1:numVars
for comp = 1:length(vf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion as above...

src/calculus.jl Outdated
for comp2 = 1:numVars
for comp1 = 1:numVars
for comp1 = 1:length(vf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion, again

src/calculus.jl Outdated
for comp = 1:numVars
@inbounds for nv = 1:numVars
@inbounds for nv = 1:length(vf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion again

@gaperez64
Copy link
Contributor Author

All changes implemented now

Copy link
Member

@lbenet lbenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Merging!

@lbenet lbenet merged commit 4dd8971 into JuliaDiff:master Oct 17, 2024
13 checks passed
@lbenet lbenet mentioned this pull request Oct 17, 2024
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