Skip to content

Conversation

rakki-18
Copy link
Contributor

@rakki-18 rakki-18 commented Jun 1, 2021

Previously, when we perform the element-wise multiplication of AIDiagonalMatrix with another matrix, we never took into account that only diagonal elements have to be multiplied as other elements would anyway be zero.

This PR introduces a new method productFromDiagonalMatrix that multiplies only the diagonal elements of the argument(AIDiagonalmatrix) with the receiver(AIMatrix) and returns the argument.

This makes the implementation of element wise multiplication of diagonal matrices faster.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 14

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 893898694: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

3 similar comments
@coveralls
Copy link

Pull Request Test Coverage Report for Build 14

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 893898694: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 893898694: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 893898694: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@rakki-18
Copy link
Contributor Author

rakki-18 commented Jun 1, 2021

@hernanmd can you please review this?

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