tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
BandTriMatrix< T > Class Template Reference

#include <matrix.h>

Inheritance diagram for BandTriMatrix< T >:
Collaboration diagram for BandTriMatrix< T >:

Public Member Functions

 BandTriMatrix (int dim1, int dim2, const T &empty)
 
int dimension () const
 
int bandwidth () const
 
virtual int index (int column, int row) const
 
void AttachOnCorner (BandTriMatrix< T > *array2)
 
- Public Member Functions inherited from GENERIC_2D_ARRAY< T >
 GENERIC_2D_ARRAY (int dim1, int dim2, const T &empty, T *array)
 
 GENERIC_2D_ARRAY (int dim1, int dim2, const T &empty)
 
 GENERIC_2D_ARRAY ()
 
 GENERIC_2D_ARRAY (const GENERIC_2D_ARRAY< T > &src)
 
virtual ~GENERIC_2D_ARRAY ()
 
void operator= (const GENERIC_2D_ARRAY< T > &src)
 
void ResizeNoInit (int size1, int size2, int pad=0)
 
void Resize (int size1, int size2, const T &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
 
void put (ICOORD pos, const T &thing)
 
void put (int column, int row, const T &thing)
 
get (ICOORD pos) const
 
get (int column, int row) const
 
const T & operator() (int column, int row) const
 
T & operator() (int column, int row)
 
T * operator[] (int column)
 
const T * operator[] (int column) const
 
void operator+= (const GENERIC_2D_ARRAY< T > &addend)
 
void operator-= (const GENERIC_2D_ARRAY< T > &minuend)
 
void operator+= (const T &addend)
 
void operator*= (const T &factor)
 
void Clip (const T &rangemin, const T &rangemax)
 
bool WithinBounds (const T &rangemin, const T &rangemax) const
 
double Normalize ()
 
Max () const
 
MaxAbs () const
 
void SumSquares (const GENERIC_2D_ARRAY< T > &src, const T &decay_factor)
 
void AdamUpdate (const GENERIC_2D_ARRAY< T > &sum, const GENERIC_2D_ARRAY< T > &sqsum, const T &epsilon)
 
void AssertFinite () const
 
void RotatingTranspose (const int *dims, int num_dims, int src_dim, int dest_dim, GENERIC_2D_ARRAY< T > *result) const
 
void delete_matrix_pointers ()
 

Additional Inherited Members

- Protected Member Functions inherited from GENERIC_2D_ARRAY< T >
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< T >
T * array_
 
empty_
 
int dim1_
 
int dim2_
 
int size_allocated_
 

Constructor & Destructor Documentation

◆ BandTriMatrix()

template<class T>
BandTriMatrix< T >::BandTriMatrix ( int  dim1,
int  dim2,
const T &  empty 
)
inline

Member Function Documentation

◆ AttachOnCorner()

template<class T>
void BandTriMatrix< T >::AttachOnCorner ( BandTriMatrix< T > *  array2)
inline

◆ bandwidth()

template<class T>
int BandTriMatrix< T >::bandwidth ( ) const
inline

◆ dimension()

template<class T>
int BandTriMatrix< T >::dimension ( ) const
inline

◆ index()

template<class T>
virtual int BandTriMatrix< T >::index ( int  column,
int  row 
) const
inlinevirtual

Reimplemented from GENERIC_2D_ARRAY< T >.


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