-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dot(A,B) for A,B matrices #206
Comments
This might lead to some unintentional confusion for numpy users where |
I think we want to think of this in connection with #42, even though this is about matrices. Personally, I think that |
Just a data point: for Quaternions |
It seems to me that However, there is enough variability in what people seem to think that Alternatively/additionally, we already have a (If you don't want a scalar result, you may be thinking of a tensor contraction (#3250).) |
I agree with @stevengj that the dot product should produce a scalar. The definition as numpy and Mathematica's abuse of the dot product to mean matrix multiplication is unfortunately not going away. It may be safer to avoid defining the dot product of matrices altogether. |
On the subject on |
We are not always that strict, e.g. we allow
|
I do run into these |
I don't get too excited about |
@stevengj the problem with |
But honestly I don't care that much what we call it, |
@andreasnoack, the question seems moot since if you want |
The motivation was generic programming. In linear least squares you often calculate |
I also think that |
@stevengj: I see that you added |
@toivoh, that's a good point; please comment at the PR, though. |
(Whoops, put the wrong issue number in an unrelated IJulia patch, sorry.) |
Fixed by JuliaLang/julia#11067 |
It would be nice to extend the implementation of
dot
for matrices using the natural definitionor more matlab like
The text was updated successfully, but these errors were encountered: