tesseract  4.0.0-1-g2a2b
functions.h File Reference
#include <cmath>
#include "helpers.h"
#include "tprintf.h"

Go to the source code of this file.

Classes

struct  tesseract::FFunc
 
struct  tesseract::FPrime
 
struct  tesseract::ClipFFunc
 
struct  tesseract::ClipFPrime
 
struct  tesseract::Relu
 
struct  tesseract::ReluPrime
 
struct  tesseract::GFunc
 
struct  tesseract::GPrime
 
struct  tesseract::ClipGFunc
 
struct  tesseract::ClipGPrime
 
struct  tesseract::HFunc
 
struct  tesseract::HPrime
 
struct  tesseract::UnityFunc
 
struct  tesseract::IdentityFunc
 

Namespaces

 tesseract
 

Macros

#define DEBUG_DETAIL   0
 

Functions

double tesseract::Tanh (double x)
 
double tesseract::Logistic (double x)
 
template<class Func >
void tesseract::FuncInplace (int n, double *inout)
 
template<class Func >
void tesseract::FuncMultiply (const double *u, const double *v, int n, double *out)
 
template<typename T >
void tesseract::SoftmaxInPlace (int n, T *inout)
 
void tesseract::CopyVector (int n, const double *src, double *dest)
 
void tesseract::AccumulateVector (int n, const double *src, double *dest)
 
void tesseract::MultiplyVectorsInPlace (int n, const double *src, double *inout)
 
void tesseract::MultiplyAccumulate (int n, const double *u, const double *v, double *out)
 
void tesseract::SumVectors (int n, const double *v1, const double *v2, const double *v3, const double *v4, const double *v5, double *sum)
 
template<typename T >
void tesseract::ZeroVector (int n, T *vec)
 
template<typename T >
void tesseract::ClipVector (int n, T lower, T upper, T *vec)
 
void tesseract::CodeInBinary (int n, int nf, double *vec)
 

Variables

const int tesseract::kTableSize = 4096
 
const double tesseract::kScaleFactor = 256.0
 

Macro Definition Documentation

◆ DEBUG_DETAIL

#define DEBUG_DETAIL   0

Definition at line 29 of file functions.h.