Skip to content

Sparse Arrays? #80

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

Closed
LMescheder opened this issue Sep 25, 2016 · 14 comments
Closed

Sparse Arrays? #80

LMescheder opened this issue Sep 25, 2016 · 14 comments

Comments

@LMescheder
Copy link

Array fire includes limited sparse array functionality. Are there any plans to wrap these?

@pavanky
Copy link

pavanky commented Sep 25, 2016

af_matmul also supports sparse matrix, dense {matrix, vector} multiplications.

@ranjanan
Copy link
Contributor

ranjanan commented Sep 26, 2016

@LMescheder thanks for reporting this. Support for this will be included in ArrayFire.jl very soon.

@pavanky
Copy link

pavanky commented Sep 26, 2016

@ranjanan on a related note, there have been other functions added to arrayfire in 3.4.0:
https://github.com/arrayfire/arrayfire/releases/tag/v3.4.0

If it helps, I made the following issue when adding the necessary functionality to the python wrapper
arrayfire/arrayfire-python#100

@ranjanan
Copy link
Contributor

@pavanky Thanks! This is very helpful.

@pavanky
Copy link

pavanky commented Sep 26, 2016

The names in the python wrapper are not identical, but they should provide as a template for the functions to be added.

@ranjanan
Copy link
Contributor

@LMescheder I might not be able to get around to adding more functionality to this package for a few weeks. Would you mind putting together a PR to the package? That would be much appreciated. I would help and review as necessary. In general, more contributions to this package would be highly appreciated.

@bscohen1
Copy link

bscohen1 commented Dec 4, 2016

Has ArrayFire been updated to include sparse array constructors? I am looking to construct COO sparse arrays and solve a linear system Ax=b.

@shehzan10
Copy link

@bscohen1 You can use the sparse() function to create sparse matrices.
Other sparse handling functions can be found here.

Lastly, you can see sparse usage under the Conjugate Gradient example.

@lruthotto
Copy link
Contributor

I was just wondering, if there is any update on wrapping the sparse functions of ArrayFire into julia code.

@ranjanan
Copy link
Contributor

ranjanan commented Mar 6, 2017

@lruthotto I have been a bit busy with a number of other things. But I think @GAIKA plans on including this functionality in his PR #121.

@lruthotto
Copy link
Contributor

Thanks for the update! Looking forward to seeing this in action. @GAIKA let me know if you need someone to test this functionality. I don't think I can help much with writing the code, but this I can do.

@ghost
Copy link

ghost commented Mar 6, 2017

@lruthotto - Can you write tests? I have all the wrappers for C code already in place (search for sparse in https://github.com/gaika/ArrayFire.jl/blob/master/src/wrap.jl ), it is just a matter of making sure all types match and maybe adjusting function signatures to be more Julian.

@ghost
Copy link

ghost commented Mar 8, 2017

Thanks for @lruthotto's initiative and tests it is now possible to convert between AFArray and SparseMatrixCSC in #121

@ghost
Copy link

ghost commented Sep 13, 2017

merged with v0.1.0

@ghost ghost closed this as completed Sep 13, 2017
This issue was closed.
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

6 participants