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

#include <weightmatrix.h>

Inheritance diagram for tesseract::TransposedArray:
Collaboration diagram for tesseract::TransposedArray:

Public Member Functions

void Transpose (const GENERIC_2D_ARRAY< double > &input)
 
virtual ~TransposedArray ()
 
void WriteStrided (int t, const float *data)
 
void WriteStrided (int t, const double *data)
 
void PrintUnTransposed (int num)
 
- Public Member Functions inherited from GENERIC_2D_ARRAY< double >
 GENERIC_2D_ARRAY (int dim1, int dim2, const double &empty, double *array)
 
 GENERIC_2D_ARRAY (int dim1, int dim2, const double &empty)
 
 GENERIC_2D_ARRAY ()
 
 GENERIC_2D_ARRAY (const GENERIC_2D_ARRAY< double > &src)
 
virtual ~GENERIC_2D_ARRAY ()
 
void operator= (const GENERIC_2D_ARRAY< double > &src)
 
void ResizeNoInit (int size1, int size2, int pad=0)
 
void Resize (int size1, int size2, const double &empty)
 
void ResizeWithCopy (int size1, int size2)
 
void Clear ()
 
bool Serialize (FILE *fp) const
 
bool Serialize (tesseract::TFile *fp) const
 
bool DeSerialize (bool swap, FILE *fp)
 
bool DeSerialize (tesseract::TFile *fp)
 
bool SerializeClasses (FILE *fp) const
 
bool DeSerializeClasses (bool swap, FILE *fp)
 
int dim1 () const
 
int dim2 () const
 
virtual int num_elements () const
 
virtual int index (int column, int row) const
 
void put (ICOORD pos, const double &thing)
 
void put (int column, int row, const double &thing)
 
double get (ICOORD pos) const
 
double get (int column, int row) const
 
const double & operator() (int column, int row) const
 
double & operator() (int column, int row)
 
double * operator[] (int column)
 
const double * operator[] (int column) const
 
void operator+= (const GENERIC_2D_ARRAY< double > &addend)
 
void operator+= (const double &addend)
 
void operator-= (const GENERIC_2D_ARRAY< double > &minuend)
 
void operator*= (const double &factor)
 
void Clip (const double &rangemin, const double &rangemax)
 
bool WithinBounds (const double &rangemin, const double &rangemax) const
 
double Normalize ()
 
double Max () const
 
double MaxAbs () const
 
void SumSquares (const GENERIC_2D_ARRAY< double > &src, const double &decay_factor)
 
void AdamUpdate (const GENERIC_2D_ARRAY< double > &sum, const GENERIC_2D_ARRAY< double > &sqsum, const double &epsilon)
 
void AssertFinite () const
 
void RotatingTranspose (const int *dims, int num_dims, int src_dim, int dest_dim, GENERIC_2D_ARRAY< double > *result) const
 
void delete_matrix_pointers ()
 

Additional Inherited Members

- Protected Member Functions inherited from GENERIC_2D_ARRAY< double >
bool SerializeSize (FILE *fp) const
 
bool SerializeSize (tesseract::TFile *fp) const
 
bool DeSerializeSize (bool swap, FILE *fp)
 
bool DeSerializeSize (tesseract::TFile *fp)
 
- Protected Attributes inherited from GENERIC_2D_ARRAY< double >
double * array_
 
double empty_
 
int dim1_
 
int dim2_
 
int size_allocated_
 

Constructor & Destructor Documentation

◆ ~TransposedArray()

tesseract::TransposedArray::~TransposedArray ( )
virtualdefault

Member Function Documentation

◆ PrintUnTransposed()

void tesseract::TransposedArray::PrintUnTransposed ( int  num)
inline

◆ Transpose()

void tesseract::TransposedArray::Transpose ( const GENERIC_2D_ARRAY< double > &  input)

◆ WriteStrided() [1/2]

void tesseract::TransposedArray::WriteStrided ( int  t,
const float *  data 
)
inline

◆ WriteStrided() [2/2]

void tesseract::TransposedArray::WriteStrided ( int  t,
const double *  data 
)
inline

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