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

eve::abs as a demo for elementwise handling + decorator wrappings #1704

Merged
merged 12 commits into from
Dec 17, 2023

Conversation

jfalcou
Copy link
Owner

@jfalcou jfalcou commented Dec 14, 2023

No description provided.

include/eve/module/core/decorator/musl.hpp Show resolved Hide resolved
test/doc/core/saturated/abs.cpp Show resolved Hide resolved
test/doc/core/regular/deco.cpp Show resolved Hide resolved
<< "-> abs(pf) = " << eve::abs(pf) << '\n'
<< "<- pi = " << pi << '\n'
<< "-> saturated(abs)(pi) = " << eve::saturated(eve::abs)(pi) << '\n'
Copy link
Collaborator

Choose a reason for hiding this comment

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

why delete saturated from abs docs?

Copy link
Owner Author

Choose a reason for hiding this comment

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

the doc include this one AND the saturated doc, so it was redudant

include/eve/traits/product_type.hpp Show resolved Hide resolved
include/eve/traits/overload/supports.hpp Outdated Show resolved Hide resolved
include/eve/traits/overload/protocol.hpp Show resolved Hide resolved
//!
//! @groupheader{Semantic Modifiers}
//! @groupheader{Semantic Modifiers}
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this just be one doc? upp to you, I'm just asking

Copy link
Owner Author

Choose a reason for hiding this comment

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

I was thinking about it, I'll try something - i.e having a single doc .cpp and use snippet inside doxygen to cut it in pieces

@@ -9,7 +9,7 @@ int main()
wide_it pi = {-1, 2, -3, -32768};

std::cout << "---- simd" << '\n'
<< "<- pi = " << pi << '\n'
<< "-> saturated(abs)(pi) = " << eve::saturated(eve::abs)(pi) << '\n';
<< "<- pi = " << pi << '\n'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do ou want to actually redo these docs as tests, since you touch them?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I will yes

@jfalcou jfalcou merged commit 5abea74 into main Dec 17, 2023
37 checks passed
@jfalcou jfalcou deleted the feat/overload-abs branch December 17, 2023 18:35
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