I implement a tensor version (using numpy) of HMM for three classic problems of HMM. For any non-sequential/non-recursive, I bypass the for-loop by using tensor ...