Again $table function, speed/functionality improved
Subject: Again $table function, speed/functionality improved
From: Richard Fateman
Date: Wed, 13 May 2009 06:32:19 -0700
How about other versions that might do the following:
(a) produce an array instead of a list
(b) use a different combining form. Instead of cons or append. For
example, plus, times, or any binary operation.
table(i, iterator, target=array) --- for Maxima maybe need to say
table(i,iterator,type=array, name=A) since arrays are not first-class
object in Maxima.
table(i,iterator, combiner="+") like apply("+",table(..)) but
faster. See if it is faster than sum ..