You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but maybe the use case of producing a different bigarray compatible element type is not so common? an intermediate version would be to add an optional initializer to scan:
where the folding function is called with init and the first array element first, instead of just repeating the first element of the array as it is done now, and reverts to the current semantics if init is not given.
not sure this is worth it? but it might be worth it to add an in-place version (which it have not found)
The text was updated successfully, but these errors were encountered:
the signature
is not the most general. a more general one would be a list of intermediate fold results,
but maybe the use case of producing a different bigarray compatible element type is not so common? an intermediate version would be to add an optional initializer to
scan
:where the folding function is called with
init
and the first array element first, instead of just repeating the first element of the array as it is done now, and reverts to the current semantics ifinit
is not given.not sure this is worth it? but it might be worth it to add an in-place version (which it have not found)
The text was updated successfully, but these errors were encountered: