Skip to content

Conversation

@SadiinsoSnowfall
Copy link
Collaborator

No description provided.

@SadiinsoSnowfall SadiinsoSnowfall changed the title Made cont_true a new format callable Made count_true a new format callable Mar 6, 2025
@SadiinsoSnowfall SadiinsoSnowfall marked this pull request as ready for review March 7, 2025 08:41
@SadiinsoSnowfall SadiinsoSnowfall marked this pull request as draft March 7, 2025 10:01
@SadiinsoSnowfall SadiinsoSnowfall marked this pull request as ready for review March 7, 2025 13:45
Copy link
Collaborator

@DenisYaroshevskiy DenisYaroshevskiy left a comment

Choose a reason for hiding this comment

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

Is this still in progress?

Copy link
Collaborator

@DenisYaroshevskiy DenisYaroshevskiy left a comment

Choose a reason for hiding this comment

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

Now that I undestand your changes to the test a bit more, here is what i suggest.

a) We stop calling count directly in test, we start calling test_count with logical and ignore
b) inside test_count function you add extra cases for all falses and maybe ignore.mask(as{})

@SadiinsoSnowfall
Copy link
Collaborator Author

Waiting for the text default_behavior refactor to be merged.

@SadiinsoSnowfall SadiinsoSnowfall marked this pull request as draft March 24, 2025 19:00
@SadiinsoSnowfall SadiinsoSnowfall marked this pull request as ready for review March 27, 2025 16:32
#endif

// Assume an expression to be true at compile time
#if defined(EVE_NO_ASSUME)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this goes in ABI but w/e. @jfalcou

for (std::ptrdiff_t i = 0; i < cardinal / 4; ++i)
{
test_count_true(v, eve::keep_between(i, i + cardinal / 4));
test_count_true(v, eve::ignore_extrema(i, i + cardinal / 4));
Copy link
Collaborator

Choose a reason for hiding this comment

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

where are the tests ignore everything?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just above, L98 and L87.

}

template<typename T>
void test_count_true(T v)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you say you now support not relative masks - I don't see tests.

@SadiinsoSnowfall SadiinsoSnowfall merged commit e481dc2 into main Apr 9, 2025
33 checks passed
@jfalcou jfalcou deleted the callable/count_true branch May 13, 2025 13:49
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.

4 participants