close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

Last modified 18 years ago

#101 closed enhancement (fixed)

When multiplying wrong-sized matrix TOL does not give a warning.

Reported by: sdelfresno Owned by: manuelb
Priority: normal Milestone:
Component: Math Version: head
Severity: minor Keywords:
Cc:

Description

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)

comment:1 Changed 21 years ago by manuelb

Status: newassigned

comment:2 Changed 21 years ago by danirus

Resolution: invalid
Status: assignedclosed

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.

comment:3 Changed 21 years ago by César Pérez Álvarez

Resolution: invalid
Status: closedreopened

There is no bug, but the warning when the matrix product returns a [0X0] matrix
does not appear, and it must in order to advice to user.

comment:4 Changed 21 years ago by manuelb

Status: reopenedassigned

comment:5 Changed 21 years ago by manuelb

Owner: changed from danirus to manuelb
Status: assignednew

Mine!

comment:6 Changed 21 years ago by manuelb

Status: newassigned

comment:7 Changed 21 years ago by manuelb

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.

comment:8 Changed 21 years ago by manuelb

Resolution: fixed
Status: assignedclosed
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.

A fix for this bug is already avaliable on the cvs.

comment:9 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000445
Note: See TracTickets for help on using tickets.