tesseract  4.0.0-1-g2a2b
tesseract::IntSimdMatrixAVX2 Class Reference

#include <intsimdmatrixavx2.h>

Inheritance diagram for tesseract::IntSimdMatrixAVX2:
tesseract::IntSimdMatrix

Public Member Functions

 IntSimdMatrixAVX2 ()
 
- Public Member Functions inherited from tesseract::IntSimdMatrix
 IntSimdMatrix ()
 
void Init (const GENERIC_2D_ARRAY< int8_t > &w)
 
int RoundInputs (int size) const
 
int RoundOutputs (int size) const
 
void MatrixDotVector (const GENERIC_2D_ARRAY< int8_t > &w, const GenericVector< double > &scales, const int8_t *u, double *v) const
 

Additional Inherited Members

- Static Public Member Functions inherited from tesseract::IntSimdMatrix
static IntSimdMatrixGetFastestMultiplier ()
 
- Protected Types inherited from tesseract::IntSimdMatrix
typedef void(* PartialFunc) (const int8_t *w, const double *scales, const int8_t *u, int num_in, int num_out, double *v)
 
- Static Protected Member Functions inherited from tesseract::IntSimdMatrix
static int Roundup (int input, int factor)
 
- Protected Attributes inherited from tesseract::IntSimdMatrix
int num_outputs_per_register_
 
int max_output_registers_
 
int num_inputs_per_register_
 
int num_inputs_per_group_
 
int num_input_groups_
 
std::vector< int8_t > shaped_w_
 
std::vector< PartialFuncpartial_funcs_
 

Detailed Description

Definition at line 26 of file intsimdmatrixavx2.h.

Constructor & Destructor Documentation

◆ IntSimdMatrixAVX2()

tesseract::IntSimdMatrixAVX2::IntSimdMatrixAVX2 ( )

Definition at line 272 of file intsimdmatrixavx2.cpp.

272  {
273 #ifdef __AVX2__
274  num_outputs_per_register_ = kNumOutputsPerRegister;
275  max_output_registers_ = kMaxOutputRegisters;
276  num_inputs_per_register_ = kNumInputsPerRegister;
277  num_inputs_per_group_ = kNumInputsPerGroup;
278  num_input_groups_ = kNumInputGroups;
279  partial_funcs_ = {PartialMatrixDotVector64, PartialMatrixDotVector32,
280  PartialMatrixDotVector16, PartialMatrixDotVector8};
281 #endif // __AVX2__
282 }
std::vector< PartialFunc > partial_funcs_

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