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

CSRMatrix to Dense Matrix CastOpt and vise versa #366

Conversation

KostasBitsakos
Copy link
Contributor

No description provided.

@pdamme pdamme self-requested a review June 23, 2022 11:25
KostasBitsakos and others added 4 commits June 23, 2022 14:09
- See documentation of Matrix::set().
- This made the test case CastObj "DenseMatrix to CSRMatrix" fail on my system.
- Removed .vscode directory.
- Kernel:
  - Renamed some template parameters for consistency.
  - Added todo on potential for improving performance.
- Test cases:
  - Renamed some template parameters for consistency.
  - Testing with more value types, but without duplicating the test cases (providing a list of value types to the test cases).
@pdamme pdamme force-pushed the CastOpt-Dense-to-CSR-and-CSR-to-Dense-129-130 branch from 7339b1f to a3e19df Compare June 23, 2022 16:51
Copy link
Collaborator

@pdamme pdamme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR, @KostasBitsakos! It looks very good to me. I rebased your commits onto the main branch of your fork and applied some minor polishing and clean-up. I also fixed a minor bug: Using set() requires the data object to be in a structurally valid state (see documentation of Matrix::set()); for CSRMatrix this means its underlying arrays must have been initialized (or otherwise prepared, e.g., by prepareAppend()). You can view my changes in the commits tab on the PR's page.

Congrats on your first contribution to the codebase :) .

@pdamme pdamme merged commit 396d6f9 into daphne-eu:main Jun 23, 2022
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.

2 participants