link to wiki.
simplify size calc in ga(). promote 1-element vector just as a scalar. format func table.