tesseract v5.3.3.20231005
|
#include <matrix.h>
Public Member Functions | |
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 (TFile *fp) const |
bool | DeSerialize (bool swap, FILE *fp) |
bool | DeSerialize (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 T &thing) |
void | put (int column, int row, const T &thing) |
T | get (ICOORD pos) const |
T | 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 () |
T | Max () const |
T | 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 () |
Protected Member Functions | |
bool | SerializeSize (FILE *fp) const |
bool | SerializeSize (TFile *fp) const |
bool | DeSerializeSize (bool swap, FILE *fp) |
bool | DeSerializeSize (TFile *fp) |
Protected Attributes | |
T * | array_ |
T | empty_ |
int | dim1_ |
int | dim2_ |
int | size_allocated_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 337 of file matrix.h.
|
inline |
|
inline |
Definition at line 175 of file matrix.h.
|
inline |
|
inline |
Definition at line 223 of file matrix.h.
|
inlineprotected |
Definition at line 545 of file matrix.h.
|
inlineprotected |
Definition at line 567 of file matrix.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in tesseract::BandTriMatrix< T >, and tesseract::BandTriMatrix< BLOB_CHOICE_LIST * >.
|
inline |
|
inline |
|
inline |
Definition at line 356 of file matrix.h.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 82 of file matrix.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 94 of file matrix.h.
|
inline |
Definition at line 117 of file matrix.h.
|
inline |
Definition at line 468 of file matrix.h.
|
inline |
Definition at line 150 of file matrix.h.
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |