Skip to main content
1-Visitor
October 26, 2017
Question

Length-1 Vector Multiplication Error

  • October 26, 2017
  • 2 replies
  • 2478 views

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?

2 replies

1-Visitor
October 26, 2017

Nukeman,

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

Robert-B1-VisitorAuthor
1-Visitor
October 26, 2017

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.

23-Emerald IV
October 26, 2017

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-B1-VisitorAuthor
1-Visitor
October 26, 2017

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

Thanks for checking.