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

fixes #498, mdivide_left_tri_low now calls var overload #540

Merged
merged 2 commits into from
May 4, 2017

Conversation

bob-carpenter
Copy link
Contributor

Submission Checklist

  • Run unit tests: ./runTests.py test/unit
  • Run cpplint: make cpplint
  • Declare copyright holder and open-source license: see below

Summary:

Fix overload logic in mdivide_left_tri_low so that it calls the var version of mdivide_left_tri where appropriate.

Intended Effect:

Reduce memory size for matrix division.

How to Verify:

Unit tests still pass.

Side Effects:

May be a bit slower according to @rtrangucci

Documentation:

I added doc and tests for mdivide_left_tri_low showing how it's used as a view and gets the right values. Other tests for mdivide_left_tri remain.

Reviewer Suggestions:

Anyone.

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):

Columbia University

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@rtrangucci
Copy link
Contributor

I'm taking a look at this now

@rtrangucci
Copy link
Contributor

@bob-carpenter This looks good. The new test only tests the var/var instantiation of the function, but I added the double/var and var/double versions. I'll push, and when those tests pass, we can merge this. Thanks Bob!

@bob-carpenter
Copy link
Contributor Author

@rtrangucci Thanks for the extra tests. I didn't add derivative tests, either. Should we go through and test the derivatives are the same as for inverse(X) * Y?

Also, do we need to do anything for dividing on the right?

@bob-carpenter bob-carpenter merged commit a27dce5 into develop May 4, 2017
@bob-carpenter bob-carpenter deleted the feature/0498-mdivide-arg-lookup branch May 4, 2017 19:19
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