-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inv() of one-element Array #2472
Comments
I tried to browse the mailing list but couldn't find the argument for If |
+1 on returning a scalar for v'v |
Or any vector-vector inner product! |
The correct behavior depends whether we view Another "way out" would be to make transpose lazy, so that |
+1 for |
@StefanKarpinski, that makes sense--thanks for the explanation. I hadn't thought through the implications (need my coffee...) I also like the lazy transpose idea. It's been a while since I touched LAPACK directly, but from other discussions here and from what little I remember, LAPACK should actually support Transposed matrices directly, right? Assuming someone took the time to write the code in Julia. |
As @toivoh pointed out, you need an immutable Vector type (possibly immutable by convention, wrapping a mutable array like our strings do), for this to work well. Otherwise you still end up needing to make a copy when you do the "lazy" transpose. Which isn't really very lazy. |
@kmsquire Actually some functionality for transposed matrices in LAPACK and BLAS is already in use through the I like the |
+1 for the |
The Transpose type isn't really a win unless we adopt a distinction between mutable arrays and immutable tensors wrapping mutable arrays, making them immutable by convention. Otherwise we would end up doing more copying than we do now. |
We would need a way to force the transpose when you want an actual Beside that, a When I was talking about immutable types, it was only as an implementation |
Simple ways to force the transpose would probably be |
Of course a 1x3 matrix times a 3-vector gives a 1-vector. But IIUC the transpose of a vector is not necessarily a 1xN matrix. So it seems defensible for It would also be ok for |
I think that it might make sense to have |
still returns an error. Why is this issue closed? |
0.6-rc2:
|
Thanks. I was using 0.5.2. Cheers. |
Reported by Eduardo H on julia-users https://groups.google.com/d/msg/julia-users/YIY9oXolMMU/0gdpaNnChsoJ
Should probably be
[0.0714286]
.The text was updated successfully, but these errors were encountered: