Timeline for Speedup matrix number multiplication
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 1, 2024 at 19:40 | comment | added | Felipe | Is there any way to avoid the copying inside mathematica? I have lists of tensors and scalars and I want to multiply them (for instance {tensor1, tensor2, ... } , {scalar1,scalar2, ...} goes to {tensor1* scalar1, tensor2*scalar2, ...}) and after I do that I won`t use either list. Is there a way to force mathematica to act directly on these lists without copying(introducing a side effect)? The lists are really big, and the tensor ranks as well. | |
| May 16, 2016 at 21:18 | comment | added | xslittlegrass | @FazlollahSoleymani This discussion is aimed at finding the reason of the slowness. I think it's not easy for me to write an easy-to-use solution in general environments, which seems to require non-trivial design efforts. I will be very happy to see someone with better knowledge than me to come up with a canonical solution. | |
| May 16, 2016 at 16:35 | comment | added | Faz | Nice response and discussion. Please just provide an edited version of your response or write how we can do scalar-to-matrix multiplications quickly from now on. I mean, how we can call LibraryLink->"Shared" for such multiplications as fast as possible in general environments. | |
| May 16, 2016 at 14:35 | comment | added | Mr.Wizard | Sorry I left the work for you to do, but thanks for doing it. I'm glad my idea proved useful. | |
| May 16, 2016 at 5:02 | history | edited | xslittlegrass | CC BY-SA 3.0 | added 40 characters in body |
| May 16, 2016 at 4:56 | history | edited | xslittlegrass | CC BY-SA 3.0 | added 110 characters in body |
| May 16, 2016 at 4:48 | history | edited | xslittlegrass | CC BY-SA 3.0 | added 110 characters in body |
| May 16, 2016 at 4:42 | history | answered | xslittlegrass | CC BY-SA 3.0 |