Ymir  .9
Fast\C++toolforcomputationofassemblingprobabilities,statisticalinferenceofassemblingstatisticalmodelandgenerationofartificialsequencesofT-cellreceptorsdata.
Classes | Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
ymir::MultiMatrixChain< _Scalar > Class Template Reference

Class for storing lists of matrices, where one node in the list (called "chain") could contain more than one matrix. More...

#include <multimatrixchain.h>

Inheritance diagram for ymir::MultiMatrixChain< _Scalar >:
ymir::MAAG ymir::MAAGBuilder

Classes

struct  Node
 Node in the chain. Stores one or more matrices with equal size. More...
 

Public Types

typedef uint8_t node_ind_t
 Node index type.
 
typedef uint8_t matrix_ind_t
 Matrix index type.
 
typedef seq_len_t dim_t
 Type of dimensions of matrices (rows and columns).
 
typedef Matrix< _Scalar, dim_tmatrix_t
 Type of matrices in the chain.
 

Public Member Functions

void resize (node_ind_t n_nodes)
 
node_ind_t chainSize () const
 
void initNode (node_ind_t node_i, matrix_ind_t n_matrices, dim_t rows, dim_t cols)
 
void swap (MultiMatrixChain &other)
 
void finish ()
 
void fill (node_ind_t node, matrix_ind_t mat, _Scalar val=0)
 
matrix_t matrix (node_ind_t node, matrix_ind_t mat) const
 
_Scalar operator[] (size_t index) const
 
size_t values_size () const
 
matrix_ind_t nodeSize (node_ind_t node_i) const
 
dim_t nodeRows (node_ind_t node_i) const
 
dim_t nodeColumns (node_ind_t node_i) const
 
_Scalar & operator() (node_ind_t node_i, matrix_ind_t mat_i, dim_t row, dim_t col)
 Access element with specified indices at specified matrix. More...
 
_Scalar operator() (node_ind_t node_i, matrix_ind_t mat_i, dim_t row, dim_t col) const
 
_Scalar & at (node_ind_t node_i, matrix_ind_t mat_i, dim_t row, dim_t col)
 
_Scalar at (node_ind_t node_i, matrix_ind_t mat_i, dim_t row, dim_t col) const
 
node_ind_t addNode ()
 Add new node with pattern matrix.
 
node_ind_t addNode (matrix_ind_t n_matrices, dim_t rows, dim_t cols)
 

Protected Attributes

std::vector< Node_chain
 
std::vector< _Scalar > _values
 

Friends

class MAAGForwardBackwardAlgorithm
 

Detailed Description

template<typename _Scalar>
class ymir::MultiMatrixChain< _Scalar >

Class for storing lists of matrices, where one node in the list (called "chain") could contain more than one matrix.

Member Function Documentation

template<typename _Scalar >
_Scalar& ymir::MultiMatrixChain< _Scalar >::operator() ( node_ind_t  node_i,
matrix_ind_t  mat_i,
dim_t  row,
dim_t  col 
)
inline

Access element with specified indices at specified matrix.

Parameters
node_iNode's index with this matrix.
mat_iElement's matrix.
rowRow of the element.
colColumn of the element.
Returns
Element at position (i,j) from matrix mat_i from node node_i.

The documentation for this class was generated from the following file: