reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
77 for (typename ArrayRef<T>::size_type x = 1; x <= n; ++x) { 77 for (typename ArrayRef<T>::size_type x = 1; x <= n; ++x) { 78 int OldRow = Row[x]; 80 Row[x] = std::min( 81 Previous + (FromArray[y-1] == ToArray[x-1] ? 0u : 1u), 82 std::min(Row[x-1], Row[x])+1); 82 std::min(Row[x-1], Row[x])+1); 85 if (FromArray[y-1] == ToArray[x-1]) Row[x] = Previous; 85 if (FromArray[y-1] == ToArray[x-1]) Row[x] = Previous; 86 else Row[x] = std::min(Row[x-1], Row[x]) + 1; 86 else Row[x] = std::min(Row[x-1], Row[x]) + 1; 86 else Row[x] = std::min(Row[x-1], Row[x]) + 1; 89 BestThisRow = std::min(BestThisRow, Row[x]);