Skip to content

Conversation

@v923z
Copy link
Owner

@v923z v923z commented Aug 25, 2025

Addresses the feature request in #737.

#if ULAB_MAX_DIMS > 1
// no need to check anything, if the maximum number of dimensions is 1
if(input->ndim != 1) {
mp_raise_ValueError(MP_ERROR_TEXT("object too deep for desired arrayy"));

Choose a reason for hiding this comment

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

typo with arrayy

Copy link
Owner Author

Choose a reason for hiding this comment

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

Indeed, thanks for catching it!

@v923z
Copy link
Owner Author

v923z commented Aug 27, 2025

@kwagyeman I think the implementation is complete, however, I haven't checked all cases, when something could go wrong, like what happens, if minlength is larger/smaller then the length of the weights etc. Could you, please, write down the relevant test cases that should be treated, and what the exceptions should look like?

@kwagyeman
Copy link

@v923z
Copy link
Owner Author

v923z commented Sep 2, 2025

https://chatgpt.com/s/t_68af717ea2248191b8ebdb48613aea80

Many thanks, this is a rather detailed test suite. I think the code is complete now. If you agree, I'll write up the documentation, and merge.

@kwagyeman
Copy link

LTGM

@v923z v923z changed the title Bincount [WIP] Bincount Sep 3, 2025
@v923z v923z merged commit 11eefea into master Sep 3, 2025
6 of 32 checks passed
@v923z v923z deleted the bincount branch September 3, 2025 18:27
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.

3 participants