LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
moment_lah.h File Reference

Unsigned Lah numbers. More...

#include <vector>
#include "line/num/number.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
#include "line/util/population.h"
Include dependency graph for moment_lah.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::moment

Functions

template<class T>
Matrix< T > line::moment::moment_lah (int n)
 L(i,j) = L(i-1,j-1) + (i+j-1) L(i-1,j), L(0,0) = 1.

Detailed Description

Unsigned Lah numbers.

Templated port of matlab/src/api/moment/moment_lah.m. Every operation is integer or rational, so the exact instantiation returns the transform with no rounding: moment conversions are exactly where double arithmetic hurts, since the alternating binomial sums cancel catastrophically at high order.

Definition in file moment_lah.h.