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

Length-1 Vector Multiplication Error

Participant

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?

Tags (1)
4 REPLIES 4

Re: Length-1 Vector Multiplication Error

Nukeman,

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

Re: Length-1 Vector Multiplication Error

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.

Re: Length-1 Vector Multiplication Error

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

Re: Length-1 Vector Multiplication Error

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

Thanks for checking.

Announcements