What are the advantages of using Ruby NArray over Array?
问题 I just came across the NArray library for Ruby -- please excuse my ignorance when asking this question :) What are the advantages of using the NArray library over the standard Ruby Array implementation? I've seen that NArray is geared towards numerical computing, but looking at the API, it looks like there are only a few extensions over Array geared towards numerical values -- nothing that you couldn't do with Array.. Why not just use Array? Is there a huge speed advantage? Is there a huge