BitMagic-C++
Public Types | Public Member Functions | Data Fields
bm::gap_transpose_engine< GT, BT, BLOCK_SIZE > Class Template Reference

Bit-plane splicing of a GAP block. More...

#include <bmtrans.h>

Collaboration diagram for bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >:
Collaboration graph
[legend]

Public Types

typedef tmatrix< GT, static_cast< unsigned >(sizeof(GT) *8), static_cast< unsigned >(((BLOCK_SIZE *sizeof(unsigned))/(sizeof(GT)))/(sizeof(GT) *8))> tmatrix_type
 cryptic calculation of equivalent size for the transpose matrix based on BLOCK_SIZE and sizeof(GT)(16) More...
 

Public Member Functions

 gap_transpose_engine ()
 
void transpose (const GT *BMRESTRICT gap_buf, BT *BMRESTRICT tmp_block)
 Transpose GAP block through a temp. More...
 
void transpose (const GT *BMRESTRICT garr, unsigned garr_size, BT *BMRESTRICT tmp_block)
 Transpose array of shorts. More...
 
void compute_distance_matrix ()
  More...
 
void reduce ()
  More...
 
void restore ()
  More...
 
void trestore (GT gap_head, GT *BMRESTRICT gap_buf, BT *BMRESTRICT tmp_block)
 Restore GAP block from the transposed matrix. More...
 

Data Fields

tmatrix_type tmatrix_
  More...
 
unsigned eff_cols_
  More...
 
unsigned distance_ [tmatrix_type::n_rows][tmatrix_type::n_rows]
  More...
 
unsigned char pc_vector_ [tmatrix_type::n_rows]
  More...
 
unsigned pc_vector_stat_ [bm::ibpc_end]
  More...
 
tmatrix_type::rstat rstat_vector_ [tmatrix_type::n_rows]
 

Detailed Description

template<typename GT, typename BT, unsigned BLOCK_SIZE>
class bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >

Bit-plane splicing of a GAP block.

GT - gap word type BT - block word type BLOCK_SIZE - bit block size in words (works as a transposition basis)

Definition at line 741 of file bmtrans.h.

Member Typedef Documentation

◆ tmatrix_type

template<typename GT , typename BT , unsigned BLOCK_SIZE>
typedef tmatrix<GT, static_cast<unsigned>(sizeof(GT)*8), static_cast<unsigned>(((BLOCK_SIZE * sizeof(unsigned)) / (sizeof(GT))) / (sizeof(GT) * 8))> bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::tmatrix_type

cryptic calculation of equivalent size for the transpose matrix based on BLOCK_SIZE and sizeof(GT)(16)

matrix[size_of_gap*8][(Size_block_in_bytes / size_of_gap) / number_of_planes)]

Definition at line 752 of file bmtrans.h.

Member Function Documentation

◆ compute_distance_matrix()

template<typename GT , typename BT , unsigned BLOCK_SIZE>
void bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::compute_distance_matrix ( )
inline

◆ reduce()

template<typename GT , typename BT , unsigned BLOCK_SIZE>
void bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::reduce ( )
inline

◆ restore()

template<typename GT , typename BT , unsigned BLOCK_SIZE>
void bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::restore ( )
inline

◆ transpose() [1/2]

template<typename GT , typename BT , unsigned BLOCK_SIZE>
void bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::transpose ( const GT *BMRESTRICT  gap_buf,
BT *BMRESTRICT  tmp_block 
)
inline

◆ transpose() [2/2]

template<typename GT , typename BT , unsigned BLOCK_SIZE>
void bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::transpose ( const GT *BMRESTRICT  garr,
unsigned  garr_size,
BT *BMRESTRICT  tmp_block 
)
inline

◆ trestore()

template<typename GT , typename BT , unsigned BLOCK_SIZE>
void bm::gap_transpose_engine< GT, BT, BLOCK_SIZE >::trestore ( GT  gap_head,
GT *BMRESTRICT  gap_buf,
BT *BMRESTRICT  tmp_block 
)
inline

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