Template Function ADS::countLatticePaths

Function Documentation

template<class C = std::uint64_t, class T>
C ADS::countLatticePaths(const std::vector<std::vector<T>> &B)

the number of the paths from the upper left to the lower right cell of B, each step right or down, through nonzero cells only; 0 for B empty

Pre:

B a rectangle