barry: Your go-to motif accountant  0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
barray-meat-operators.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BARRAY_TYPE()   BArray<Cell_Type, Data_Type>
 
#define BARRAY_TEMPLATE_ARGS()   <typename Cell_Type, typename Data_Type>
 
#define BARRAY_TEMPLATE(a, b)    template BARRAY_TEMPLATE_ARGS() inline a BARRAY_TYPE()::b
 
#define ROW(a)   this->el_ij[a]
 
#define COL(a)   this->el_ji[a]
 

Functions

template BARRAY_TEMPLATE_ARGS () inline void checkdim_(const BARRAY_TYPE() &lhs
 
template const BARRAY_TYPE () &rhs)
 
 BARRAY_TEMPLATE (BARRAY_TYPE()&, operator+=)(const BArray< Cell_Type
 
 for (size_t i=0u;i< nrow();++i) for(size_t j=0u
 
j< ncol();++j) this-> operator() (i, j)+
 
 BARRAY_TEMPLATE (BARRAY_TYPE()&, operator+=)(const Cell_Type &rhs)
 
 BARRAY_TEMPLATE (BARRAY_TYPE()&, operator-=)(const BArray< Cell_Type
 
 BARRAY_TEMPLATE (BARRAY_TYPE()&, operator-=)(const Cell_Type &rhs)
 
 BARRAY_TEMPLATE (BARRAY_TYPE()&, operator*=)(const Cell_Type &rhs)
 
 BARRAY_TEMPLATE (BARRAY_TYPE()&, operator/=)(const Cell_Type &rhs)
 

Variables

Data_Type & rhs
 
returnthis
 

Macro Definition Documentation

◆ BARRAY_TEMPLATE

#define BARRAY_TEMPLATE (   a,
 
)     template BARRAY_TEMPLATE_ARGS() inline a BARRAY_TYPE()::b

Definition at line 11 of file barray-meat-operators.hpp.

◆ BARRAY_TEMPLATE_ARGS

#define BARRAY_TEMPLATE_ARGS ( )    <typename Cell_Type, typename Data_Type>

Definition at line 9 of file barray-meat-operators.hpp.

◆ BARRAY_TYPE

#define BARRAY_TYPE ( )    BArray<Cell_Type, Data_Type>

Definition at line 7 of file barray-meat-operators.hpp.

◆ COL

#define COL (   a)    this->el_ji[a]

Definition at line 15 of file barray-meat-operators.hpp.

◆ ROW

#define ROW (   a)    this->el_ij[a]

Definition at line 14 of file barray-meat-operators.hpp.

Function Documentation

◆ BARRAY_TEMPLATE() [1/6]

BARRAY_TEMPLATE ( BARRAY_TYPE()&  ,
operator*   
) const &

Definition at line 88 of file barray-meat-operators.hpp.

◆ BARRAY_TEMPLATE() [2/6]

BARRAY_TEMPLATE ( BARRAY_TYPE()&  ,
operator+   
) const

◆ BARRAY_TEMPLATE() [3/6]

BARRAY_TEMPLATE ( BARRAY_TYPE()&  ,
operator+   
) const &

Definition at line 46 of file barray-meat-operators.hpp.

◆ BARRAY_TEMPLATE() [4/6]

BARRAY_TEMPLATE ( BARRAY_TYPE()&  ,
operator-   
) const

◆ BARRAY_TEMPLATE() [5/6]

BARRAY_TEMPLATE ( BARRAY_TYPE()&  ,
operator-   
) const &

Definition at line 75 of file barray-meat-operators.hpp.

◆ BARRAY_TEMPLATE() [6/6]

BARRAY_TEMPLATE ( BARRAY_TYPE()&  ,
operator/   
) const &

Definition at line 105 of file barray-meat-operators.hpp.

◆ BARRAY_TEMPLATE_ARGS()

template BARRAY_TEMPLATE_ARGS ( ) const &

◆ BARRAY_TYPE()

template const BARRAY_TYPE ( ) &

Definition at line 20 of file barray-meat-operators.hpp.

◆ for()

for ( )
pure virtual

Definition at line 66 of file barray-meat-operators.hpp.

◆ operator()()

j< ncol(); ++j) this-> operator() ( i  ,
j   
)

Variable Documentation

◆ rhs

Data_Type & rhs
Initial value:
{
checkdim_(*this, rhs)
Data_Type & rhs

Definition at line 33 of file barray-meat-operators.hpp.

◆ this

return * this

Definition at line 43 of file barray-meat-operators.hpp.