Skip to content

Added samples to sparse documentation #2326

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

Merged
merged 3 commits into from
Jun 3, 2019

Conversation

mlloreda
Copy link
Member

@mlloreda mlloreda commented Oct 24, 2018

Samples added for:

array sparse(const dim_t nRows, const dim_t nCols,
                       const array values, const array rowIdx, const array colIdx,
                       const af::storage stype = AF_STORAGE_CSR);

array sparse(const dim_t nRows, const dim_t nCols, const dim_t nNZ,
                       const void* const values,
                       const int * const rowIdx, const int * const colIdx,
                       const dtype type = f32, const af::storage stype = AF_STORAGE_CSR,
                       const af::source src = afHost);

array sparse(const array dense, const af::storage stype = AF_STORAGE_CSR);

array dense(const array sparse);

Also made a few minor improvements to sparse backend and API code.

mlloreda added 3 commits May 31, 2019 12:48
Currently, some of the tests are failing across all backends. It seems
some of the dense arrays are being read in row-major order.
Added checks for NNZ and sparse representation type.
@umar456 umar456 added this to the v3.7.0 milestone May 31, 2019
@9prady9 9prady9 dismissed umar456’s stale review June 3, 2019 05:52

Addressed feedback

@9prady9 9prady9 merged commit 0982f49 into arrayfire:master Jun 3, 2019
@9prady9 9prady9 deleted the sparse-samples branch June 3, 2019 06:12
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

Successfully merging this pull request may close these issues.

3 participants