25 Jan
2024
25 Jan
'24
9:45 p.m.
Hi Alan, The problem with .dot is not that it is not possible, but more that it is not obvious exactly what will happen given the overloading of multiple use cases; indeed, this is why `np.matmul` was created. For the stacks of vectors case in particular, it is surprising that the vector dimension is the one but last rather than the last dimension (at least if the total dimension is more than 2). The idea here is to have a function that does just one obvious thing (sadly, for matmul we didn't quite stick to that...). All the best, Marten