Opened 12 years ago

Closed 12 years ago

#2129 closed defect (fixed)

Incompatible argument types to operation matrix multiplication

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: Cc:

Description

It seems we don't handle some matrix multiplications where dims have an expression instead of integers:

[/var/lib/hudson/jobs/OpenModelica_MSL_COVERAGE/workspace/OpenModelica/build/lib/omlibrary/Modelica 3.2.1/Math/package.mo:3594:9-3594:30:writable] Error: Incompatible argument types to operation matrix multiplication in component <NO COMPONENT>, left type: Real[size(A, 2), size(A, 1)], right type: Real[size(A, 1), size(A, 2)]
[/var/lib/hudson/jobs/OpenModelica_MSL_COVERAGE/workspace/OpenModelica/build/lib/omlibrary/Modelica 3.2.1/Math/package.mo:3594:9-3594:30:writable] Error: Cannot resolve type of expression transpose(U) * C. The operands have types Real[size(A, 2), size(A, 1)], Real[size(A, 1), size(A, 2)] in component <NO COMPONENT>.

Never mind that the sizes of A,1 and A,2 are always equal.

Change History (1)

comment:1 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r15694

Note: See TracTickets for help on using tickets.