When multiplying wrong-sized matrix TOL does not give a warning.
If I have two Matrix like this:
A [100x200]
B[200x100]
C[108x56]
Calculating A*B will be ok, but:
Calculating A*C will return a [0x0] matrix, but will give no warning at all.
Therefore, when A*C is done, I see no error and TOL keeps on running using
wrong results.
I would find it very useful a warning in case this situation is encountered.
Thanks.
Change History (9)
Resolution: |
→ invalid
|
Status: |
assigned →
closed
|
Resolution: |
invalid
|
Status: |
closed →
reopened
|
Status: |
reopened →
assigned
|
Owner: |
changed from danirus to manuelb
|
Status: |
assigned →
new
|
status_whiteboard: |
→ TOL warns the user when adding and subtracting matrices, but product is much more complicated than those operations and will take more time.
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
status_whiteboard: |
TOL warns the user when adding and subtracting matrices, but product is much more complicated than those operations and will take more time.
|
bug_file_loc: |
→ http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000445
|
In order to use the ordinary matrix product we must be sure that the number of
columns of Matrix A is equal to the number of rows of Matrix B.
If you try this code:
Matrix MA = Rand(100,200,0,100);
Matrix MC = Rand(200,56,0,100);
Matrix M_AxC = MA*MC; It works correctly
With Tol code given in the bug report we are using a number of columns of Matrix
"A" distinct of the number of rows of Matrix "C".
Maybe the bug you are trying to report is within another piece of code, or with
other values. If this is the case, please report it as a new bug.