X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=viterbifast.cpp;h=3f3fc970a2075a248bdace6b599773e04a84db01;hb=1e8d08e96f4fe99604a6b3502568de464bf60891;hp=2b201741448e5bad79aa93b7c9887b4cdf2bda42;hpb=fd98ee6efb944d38bbd61fc36ea9fea2557e3830;p=mothur.git diff --git a/viterbifast.cpp b/viterbifast.cpp index 2b20174..3f3fc97 100644 --- a/viterbifast.cpp +++ b/viterbifast.cpp @@ -1,9 +1,11 @@ +//uchime by Robert C. Edgar http://drive5.com/uchime This code is donated to the public domain. + #include "dp.h" #include "out.h" #include "evalue.h" #define CMP_SIMPLE 0 - + #if SAVE_FAST static Mx g_MxDPM; static Mx g_MxDPD; @@ -66,21 +68,21 @@ static void AllocSave(unsigned LA, unsigned LB) g_DPDSimple = g_DPDSimpleMx->GetData(); g_DPISimple = g_DPISimpleMx->GetData(); #endif - g_MxDPM.Alloc("FastM", LA+1, LB+1); - g_MxDPD.Alloc("FastD", LA+1, LB+1); - g_MxDPI.Alloc("FastI", LA+1, LB+1); - - g_MxTBM.Alloc("FastTBM", LA+1, LB+1); - g_MxTBD.Alloc("FastTBD", LA+1, LB+1); - g_MxTBI.Alloc("FastTBI", LA+1, LB+1); - - g_DPM = g_MxDPM.GetData(); - g_DPD = g_MxDPD.GetData(); - g_DPI = g_MxDPI.GetData(); - - g_TBM = g_MxTBM.GetData(); - g_TBD = g_MxTBD.GetData(); - g_TBI = g_MxTBI.GetData(); + g_MxDPM.Alloc("FastM", LA+1, LB+1); + g_MxDPD.Alloc("FastD", LA+1, LB+1); + g_MxDPI.Alloc("FastI", LA+1, LB+1); + + g_MxTBM.Alloc("FastTBM", LA+1, LB+1); + g_MxTBD.Alloc("FastTBD", LA+1, LB+1); + g_MxTBI.Alloc("FastTBI", LA+1, LB+1); + + g_DPM = g_MxDPM.GetData(); + g_DPD = g_MxDPD.GetData(); + g_DPI = g_MxDPI.GetData(); + + g_TBM = g_MxTBM.GetData(); + g_TBD = g_MxTBD.GetData(); + g_TBI = g_MxTBI.GetData(); } static void SAVE_DPM(unsigned i, unsigned j, float x)