Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Incorrect result of matrices addition with inconsistent dimension. #98

Open
studyeveryday7 opened this issue May 22, 2021 · 1 comment
Assignees

Comments

@studyeveryday7
Copy link

Describe the bug

In the Matrix module, after creating 2*2 Matrix A and 3*3 Matrix B, then input the content of Matrix A as [[1,2],[3,4]] and Matrix B as [[1,2,3],[4,5,6],[7,8,9]
image

Then choose the A + B function,after evaluate the result is
image

which is incorrect.

Expected behavior

I expected the result should be “inconsistent dimensions: 2 != 3”, which is same as the result of A x B function.
image

To reproduce

  1. Open NCalc+ (Which is build from latest source code)
  2. Go to Matrix module
  3. Create two Matrix as description
  4. Click the evaluate bottom
  5. Incorrect result has been displayed

Configuration

  • Android version 9
  • device MI 8 Lite

Screenshots

image

@MoneyMakerCqf
Copy link
Contributor

I think I can work on it. And I have sent an issue, please check on it:
#99

axkr pushed a commit that referenced this issue May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants