DCProgs 0.9 documentation

QMatrix

«  Exceptions   ::   Contents   ::   Log10Likelihood  »

QMatrix

struct DCProgs::QMatrix
#include <qmatrix.h>

State matrix that can be partitioned into open/shut states.

In practice, this is a two tuple with some helper functions to get corners.

Public Functions

QMatrix()

Constructor.

template < class T >
QMatrix(Eigen::DenseBase< T > const & _c, t_uint _nopen = 0)

Constructor.

t_rmatrix::Scalar const & operator()(t_rmatrix::Index const & _i, t_rmatrix::Index const & _j)

Returns rate at location.

t_rmatrix::Scalar & operator()(t_rmatrix::Index const & _i, t_rmatrix::Index const & _j)

Returns rate at location.

Eigen::Block< t_rmatrix > aa()

Open to open transitions.

Eigen::Block< t_rmatrix > af()

Open to shut transitions.

Eigen::Block< t_rmatrix > fa()

Shut to open transitions.

Eigen::Block< t_rmatrix > ff()

Shut to shut transitions.

Eigen::Block< t_rmatrix const > aa()

Open to open transitions.

Eigen::Block< t_rmatrix const > af()

Open to shut transitions.

Eigen::Block< t_rmatrix const > fa()

Shut to open transitions.

Eigen::Block< t_rmatrix const > ff()

Shut to shut transitions.

t_uint nshut()

Number of shut states.

QMatrix transpose()

Returns transpose of this \(Q\)-matrix.

A states become F states, and F states become A states, and the matrix is transposed such that the new AA block is in the top left corner.

std::tuple< t_cvector , t_cmatrix > eigenstuff()

Computes eigenvalues and eigenvectors.

Solves the transpose eigenproblem \(\phi = \phi\cdot\mathcal{Q}\).

Public Members

t_uint nopen

Number of open states.

t_rmatrix matrix

The matrix itself.

«  Exceptions   ::   Contents   ::   Log10Likelihood  »