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

Dyadic Reduce could be better introduced #32

Open
jonocarroll opened this issue Oct 23, 2023 · 0 comments
Open

Dyadic Reduce could be better introduced #32

jonocarroll opened this issue Oct 23, 2023 · 0 comments

Comments

@jonocarroll
Copy link

In functions.ipynb, section 'Direct operators', the dyadic use of Reduce is introduced as

2 (+/) ⍳10

This took a while for me to get my head around, as I was only familiar with the monadic Reduce producing the sum. It is briefly mentioned that this is a windowed reduction, but that is not properly introduced until iteration.ipynb, section 'Windowed reduction'.

Since it is used to introduce the dyadic case, a quick explanation of what this derived function does would be helpful there. The explanation used in the later section is clarifying

For example, to calculate the sum of each element in a vector with its subsequent element, we employ a reduction with a sliding window of size 2

but I could not predict that based on the understanding I had in the earlier section alone.

Many thanks for this resource, I am thoroughly enjoying it and find it very well presented!

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

No branches or pull requests

1 participant