Timeline for Perform matrix/tensor contractions more efficiently
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 1, 2016 at 9:40 | history | tweeted | twitter.com/StackMma/status/715836193976545284 | ||
Mar 31, 2016 at 14:38 | answer | added | jose | timeline score: 8 | |
Mar 30, 2016 at 22:58 | comment | added | J. M.'s missing motivation♦ |
You've seen MatrixPower[] , right?
|
|
Mar 30, 2016 at 22:27 | comment | added | Michael Weyrauch | The important fact you have to know is that Dot[] always contracts the last index of one tensor into the first of another. Therefore, you just need to Transpose or Flatten appropriately and then use Dot. As @march said this will always work and you can do the most complicated contractions. | |
Mar 30, 2016 at 21:29 | answer | added | yarchik | timeline score: 5 | |
Mar 30, 2016 at 21:12 | comment | added | march |
Are you absolutely certain that they can't be done using Dot (which is more general than just matrix multiplication), Transpose , Flatten , and Tr ? I'm willing to bet that it can be done with those optimized built-ins. Also, at least, please provide an example of one that can't be done with matrix multiplication and Tr for us to play with.
|
|
Mar 30, 2016 at 21:06 | history | asked | Stan | CC BY-SA 3.0 |