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

How to generate an array according to the rules defined by oneself? #53

Open
wujilingfeng opened this issue May 19, 2023 · 1 comment
Open

Comments

@wujilingfeng
Copy link

How to generate an array according to the rules defined by oneself?
I have a function like func:: Int->Int->Float, which represents calculating values based on index

@chessai
Copy link
Collaborator

chessai commented May 19, 2023

Right now, I think you would need to combine Data.Vector.generate, Data.Vector.toList, and eg ArrayFire.Array.matrix.

The construction API could definitely be expanded

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

2 participants