real_t instead of templatizing ann, gmm, hmm, state, logadd