26#include <ql/math/matrix.hpp>
43Matrix
generator(
const Matrix& t,
const Real horizon = 1.0);
std::vector< Real > creditStateBoundaries(const I &begin, const I &end)
compute N(0,1) credit state boundaries
void checkTransitionMatrix(const Matrix &t)
check if the matrix is a transition matrix, i.e. row sums are 1 and entries are non-negative
void checkGeneratorMatrix(const Matrix &g)
check if the matrix is a generator matirx, i.e. row sums are 0 and non-diagonal elements are non-nega...
Matrix generator(const Matrix &t, const Real horizon)
void sanitiseTransitionMatrix(Matrix &m)