If allocating the arrays is a big bottleneck, you might consider making use of/adding this to FixedSizeArrays.
--Tim On Tuesday, November 17, 2015 05:12:13 PM Pavel wrote: > Quite useful, thank you. Essentially choosing the form of exact expression > based on matrix element comparison. Appears to be reasonably stable and > over 10 times speedup! > > On Tuesday, November 17, 2015 at 12:57:33 AM UTC-8, Kristoffer Carlsson > > wrote: > > Maybe this link is of use? http://stackoverflow.com/a/10188318
