Added mat_vectorize_tr().