4 ms·
The Python commands are encountered sequentially. One could image a library where the Python commands build the computation under the hood. Then, the library wo
by bee_rider 1y ago
The Python commands are encountered sequentially. One could image a library where the Python commands build the computation under the hood. Then, the library would be able to take advantage of situations like this one (or, more practically, reorder multiplications and/or avoid unnecessary temporaries).