function hh = htxx(P,m,n,t) hh = []; dims = repmat([m],[1 t]); for xi = 1:m^t X = ind2coord(xi,dims); hh(xi) = htx(P,m,n,t,X); end return