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

Shared helper applying a triangular moment-transform table. 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_apply.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::moment

Functions

template<class T>
std::vector< T > line::moment::apply_table (const Matrix< T > &A, const std::vector< T > &v)
 Apply a lower-triangular transform table to a moment vector.

Detailed Description

Shared helper applying a triangular moment-transform table.

Templated port of matlab/src/api/moment/moment_apply.m. Every operation is integer or rational, so the exact instantiation returns the transform with no rounding at all. That matters more here than almost anywhere else in the API: the alternating binomial sums of the moment conversions cancel catastrophically in double arithmetic once the order grows.

Definition in file moment_apply.h.