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

allow AbstractVector input for gradients #103

Merged
merged 1 commit into from
Feb 10, 2016
Merged

Conversation

mlubin
Copy link
Contributor

@mlubin mlubin commented Feb 9, 2016

I don't mean to create unnecessary merge conflicts for #102 (so I didn't add tests), but in JuMP we need to pass around subarrays instead of proper Arrays. I don't see why ForwardDiff should insist on the type of the vector inputs so long as it's indexable.

@mlubin
Copy link
Contributor Author

mlubin commented Feb 10, 2016

Updated to ::typeof(output)

@jrevels
Copy link
Member

jrevels commented Feb 10, 2016

If you feel like it, you could loosen the Vector restriction on the other API methods as well. Otherwise LGTM, feel free to merge when you're ready.

@mlubin
Copy link
Contributor Author

mlubin commented Feb 10, 2016

Thanks! This is all I need for JuMP, and don't want to create any more merge conflicts than necessary.

mlubin added a commit that referenced this pull request Feb 10, 2016
allow AbstractVector input for gradients
@mlubin mlubin merged commit d671417 into master Feb 10, 2016
@mlubin mlubin deleted the ml/abstractvector branch February 10, 2016 02:38
@mlubin mlubin mentioned this pull request Feb 19, 2016
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