This suggests that "XVec" and "YVec" may both refer to the same matrix object, rather than two distinct copies.
Creating a second matrix with NEWMAT before storing "YVec" results in the expected independent behavior. I'm not sure whether this is by design, but I thought it might be worth sharing.
Kind regards,
Johan.
This suggests that "XVec" and "YVec" may both refer to the same matrix object, rather than two distinct copies.
Thanks for the suggestion! I tested the INDEX, STOIJ, STOEL sequence alongside PUTMI — and to my surprise, the performance is pretty much the same. But hey, PUTMI lets me skip the whole STOIJ choreography, so I’ll happily stick with the lazy route 😄
Still, it’s great to know there’s more than one way to fill a matrix — or as they say, all roads lead to Rome!
Cheers,
Johan.