3 ms·
This approach is still used (conceptually, at least) in statistical computing. NumPy and R are good examples of this approach, and also have solutions for the i
by disgruntledphd2 6y ago
This approach is still used (conceptually, at least) in statistical computing. NumPy and R are good examples of this approach, and also have solutions for the indexing problems outlined in the article.
That being said, statistical computing is at the mercy of the high cost of matrix multiplication.
I think that you can alter the order of arrays in numpy, and examine the performance difference.
- grayclhn 6y agoI think the desired functionality is closer to Pandas than Numpy — you want coordinated arrays of different data types, not higher-dimension arrays of the same data type. R and Pandas aren’t exactly known for their outstanding native performance (they’re generally fast after converting dataframes to arrays and outsourcing to C or Fortran) so they’re great demonstrations of the syntax for some of these indexing problems but leave a lot to be desired.
- cozzyd 6y agoROOT TTrees will "split" class members to effectively transform them into AoS although this is mostly for IO efficiency.