Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Export the specialspan value for not-indexing an array dimension.#61

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
leftaroundabout wants to merge1 commit intoarrayfire:master
base:master
Choose a base branch
Loading
fromleftaroundabout:export/index-span

Conversation

leftaroundabout
Copy link
Contributor

The special valuespan 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 ofaf_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 crypticcode, not to mention unsafe if the definition of af_span should ever change.)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@leftaroundabout

[8]ページ先頭

©2009-2025 Movatter.jp