Skip to content

Added EWiseAdd tests for COO matrix#15

Merged
gsvgit merged 11 commits intoSparseLinearAlgebra:devfrom
dpanfilyonok:ewa-generic-tests
Mar 10, 2021
Merged

Added EWiseAdd tests for COO matrix#15
gsvgit merged 11 commits intoSparseLinearAlgebra:devfrom
dpanfilyonok:ewa-generic-tests

Conversation

@dpanfilyonok
Copy link
Copy Markdown
Collaborator

@dpanfilyonok dpanfilyonok commented Feb 28, 2021

Proposed Changes

  • Changed matrix/vector builders
  • Removed dense vector
  • Added COO EWiseAdd tests for int, float, bool and some other
  • Added first version of classes reorganization

Need to be added in the future:

  • tests with randomly generated masks
  • tests on all available OpenCL devices
  • tests on some large matrices
  • test on more primitive types

@dpanfilyonok dpanfilyonok changed the title Added EWiseAdd tests for COO Matrix Added EWiseAdd tests for COO matrix Feb 28, 2021
@dpanfilyonok dpanfilyonok requested a review from gsvgit February 28, 2021 21:11
EWiseAdd.tests
]

// sequenced test?
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Are these tests really sequenced when running dotnet test?

"There should be no difference between expected and received values"
|> Expect.all difference isZero

let correctnessOnBool (case: OperationCase) (matrixA: bool[,], matrixB: bool[,]) =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why it can't be generalized? It seems to be particular case of correctnessOnNumbers

||> Seq.map2 diff

"There should be no difference between expected and received values"
|> Expect.all difference isZero
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Must indices (rows and columns) be checked as well?

Copy link
Copy Markdown
Member

@gsvgit gsvgit left a comment

Choose a reason for hiding this comment

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

Looks good. @artemgl can tests on addition be fixed?

@artemgl
Copy link
Copy Markdown
Collaborator

artemgl commented Mar 10, 2021

@gsvgit tests must be working fine. Actual version of addition works a little weird as it turned out. I have already corrected it locally. It will be very convenient for me if we merge this request as it contains a lot of changes. I could check my last version and open pull request with passing tests.

@gsvgit gsvgit merged commit 77f4be6 into SparseLinearAlgebra:dev Mar 10, 2021
@gsvgit
Copy link
Copy Markdown
Member

gsvgit commented Mar 10, 2021

@artemgl well. Done.

@dpanfilyonok dpanfilyonok deleted the ewa-generic-tests branch March 16, 2021 20:50
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