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

common: Make CompareMatrices dig into autodiff gradients #14366

Conversation

EricCousineau-TRI
Copy link
Contributor

@EricCousineau-TRI EricCousineau-TRI commented Nov 19, 2020

@EricCousineau-TRI
Copy link
Contributor Author

EricCousineau-TRI commented Nov 19, 2020

Here's some old SFINAE stuff I did for checking if something was a template. I was doing something for CRTP here, but you could prolly use it for this check too 🤷
https://github.com/EricCousineau-TRI/repro/blob/07aa9570d774aacd764f94be0d649c93656ee99d/cpp/tpl_crtp_spec.cc#L8-L17

EDIT: With output:
https://github.com/EricCousineau-TRI/repro/blob/e13daf1a620919aa6defb8b225801cfa7875da41/cpp/tpl_crtp_spec.cc#L70-L104

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

Successfully merging this pull request may close these issues.

None yet

2 participants