cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Length-1 Vector Multiplication Error

Robert-B
5-Regular Member

Length-1 Vector Multiplication Error

I have found an error in vector multiplication when the length of one vector is reduced to just one.  It should not throw an error, but does, stating that "These array dimensions do not match", which is just ridiculous.

 

Of course, there are workarounds, but this should be corrected.

 

Thoughts anyone?

4 REPLIES 4
MJG
18-Opal
18-Opal
(To:Robert-B)

Nukeman,

I agree that the symbolic processor has a bug.  However, please note that the numeric processor calculates the correct product.

Robert-B
5-Regular Member
(To:MJG)

Mostly correct.  However, the Lev-Mar method (in genfit and Least SquaresFit) has to resolve the first derivatives of the fitting parameters.  That's where I've run afoul of this problem.

LucMeekes
23-Emerald III
(To:Robert-B)

How does it fare when the vector (with the lower case letters) is reduced to a single element vector (containing just a)?

 

In Mathcad 11:

LM_20171026_1elVector.png

Luc

Robert-B
5-Regular Member
(To:LucMeekes)

Yes, Prime produces this same result.  But, this is still only half right.

Thanks for checking.

Top Tags