Conversation

leftaroundabout

The special value span is quite important for effective array slicing in ArrayFire, but it was not previously exposed in the Haskell bindings. Indeed, as this is a constant rather than a function it cannot be imported (?) using the FFI, but the same value can simply be hardcoded as a Haskell constant.

Without this export, users could also hard-code it at each use site. But that would result in cryptic code, not to mention unsafe if the definition of af_span should ever change. It's certainly better to have it available in the library.

This is quite important for effective array slicing, but not previously exposed.

(The value could easily be hard-coded at each use site, but that would make for cryptic
code, not to mention unsafe if the definition of af_span should ever change.)
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

@leftaroundabout