You are right, inheriting from PrimitiveArray isn't very useful. > Concerning map/map!: if we care about speed of them then we > need specialized version. But I am not sure if we care.
Why not care about its performance? map! in IndexedAggregate uses indices(), which returns a List, costs much more memory. This makes me doubt the usefulness of PrimitiveArray: Its feature is 0-based, elt has no bound checking (same as qelt). The original purpose of PrimitiveArray is performance? To utilize its no bound checking elt? But almost other functions on PrimitiveArray is unoptimized compared with ARRAY1 or IARRAY1(S, 0). -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
