-
Notifications
You must be signed in to change notification settings - Fork 122
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 benchmark for expression templates #634
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
430293a
to
01bf9b1
Compare
clang-tidy review says "All clean, LGTM! 👍" |
01bf9b1
to
432377d
Compare
results of the benchmark from github action:
|
clang-tidy review says "All clean, LGTM! 👍" |
include/clad/Differentiator/Array.h
Outdated
return array_expression<T, BinarySub, array<T>>(static_cast<T>(0), *this); | ||
CUDA_HOST_DEVICE array_expression<T, BinarySub, array<T> const&> | ||
operator-() const { | ||
return array_expression<T, BinarySub, array<T> const&>(static_cast<T>(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return array_expression<T, BinarySub, array<T> const&>(static_cast<T>(0), | |
return array_expression<T, BinarySub, const array<T>&>(static_cast<T>(0), |
We spell const in clad this way. Can you update the rest of the occurrences?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed and also added to .clang-format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
clang-tidy review says "All clean, LGTM! 👍" |
272bb99
to
0ab1f9a
Compare
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
const&
qualifiers while creatingarray_expression
objects to avoid the copying of arrays.