tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::IntSimdMatrix Class Reference

#include <intsimdmatrix.h>

Inheritance diagram for tesseract::IntSimdMatrix:
Collaboration diagram for tesseract::IntSimdMatrix:

Public Member Functions

 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
 

Static Public Member Functions

static IntSimdMatrixGetFastestMultiplier ()
 

Protected Types

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

static int Roundup (int input, int factor)
 

Protected Attributes

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_
 

Member Typedef Documentation

◆ PartialFunc

typedef void(* tesseract::IntSimdMatrix::PartialFunc) (const int8_t *w, const double *scales, const int8_t *u, int num_in, int num_out, double *v)
protected

Constructor & Destructor Documentation

◆ IntSimdMatrix()

tesseract::IntSimdMatrix::IntSimdMatrix ( )
inline

Member Function Documentation

◆ GetFastestMultiplier()

IntSimdMatrix * tesseract::IntSimdMatrix::GetFastestMultiplier ( )
static

◆ Init()

void tesseract::IntSimdMatrix::Init ( const GENERIC_2D_ARRAY< int8_t > &  w)

◆ MatrixDotVector()

void tesseract::IntSimdMatrix::MatrixDotVector ( const GENERIC_2D_ARRAY< int8_t > &  w,
const GenericVector< double > &  scales,
const int8_t *  u,
double *  v 
) const

◆ RoundInputs()

int tesseract::IntSimdMatrix::RoundInputs ( int  size) const
inline

◆ RoundOutputs()

int tesseract::IntSimdMatrix::RoundOutputs ( int  size) const
inline

◆ Roundup()

static int tesseract::IntSimdMatrix::Roundup ( int  input,
int  factor 
)
inlinestaticprotected

Member Data Documentation

◆ max_output_registers_

int tesseract::IntSimdMatrix::max_output_registers_
protected

◆ num_input_groups_

int tesseract::IntSimdMatrix::num_input_groups_
protected

◆ num_inputs_per_group_

int tesseract::IntSimdMatrix::num_inputs_per_group_
protected

◆ num_inputs_per_register_

int tesseract::IntSimdMatrix::num_inputs_per_register_
protected

◆ num_outputs_per_register_

int tesseract::IntSimdMatrix::num_outputs_per_register_
protected

◆ partial_funcs_

std::vector<PartialFunc> tesseract::IntSimdMatrix::partial_funcs_
protected

◆ shaped_w_

std::vector<int8_t> tesseract::IntSimdMatrix::shaped_w_
protected

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