On Sat, 30 Oct 2021, Allin Cottrell wrote:
[D]o we really want to make the return value in the X,Y case a
matrix rather than a vector?
I'm not sure that's very helpful, but if we stay with a matrix
result I think Artur is right: in a matrix operation where the
left-hand operand is m x n and the right-hand one is p x n it
seems unintuitive to give a p x m result; seems m x p would be
better. (That point is of course invisible if m == p but it
appears otherwise.)
Hmm, second thoughts... If we return a matrix it's then easier to
document the order in which the distances appear (whichever way that
may be), as in "element i,j holds the distance between row i of X
and row j of Y" (or the transpose). And provided that is clearly
documented maybe m x p versus p x m doesn't matter.
Allin