AURobotServers
4
|
#include <umatrix.h>
Public Member Functions | |
double | det (int *error) |
UMatrixBig | operator= (UMatrixBig V) |
UMatrixBig (const unsigned int rows, const unsigned int cols, double *data=NULL, unsigned int elements=0) | |
UMatrixBig (const unsigned int cols, double *data=NULL, unsigned int elements=0) | |
UMatrixBig (const unsigned int rows, const unsigned int cols, const double i, double *data=NULL, unsigned int elements=0) | |
~UMatrixBig () | |
Public Member Functions inherited from UMatrix | |
void | add (UMatrix *A, UMatrix *B) |
void | add (UMatrix *A) |
void | add (const double val) |
void | clear () |
unsigned int | cols () |
void | copy (UMatrix *source) |
CvArr * | cvArr () |
CvMat * | cvMat () |
double | det (int *error) |
void | eig (UMatrix *W, UMatrix *U, UMatrix *V, int flag=CV_SVD_V_T) |
int | elements () |
void | error (const int ierr, const char *message) |
bool | expand (const unsigned int iRows, const unsigned int iCols) |
bool | expand (const unsigned int iRows, const unsigned int iCols, const double iVal) |
double | get (const unsigned int at) |
double | get (int row, int col) |
double * | getData () |
virtual const char * | getDataType () |
double * | getRow (int row) |
bool | init (const unsigned int rows, const unsigned int cols) |
bool | init (const unsigned int rows, const unsigned int cols, const double i) |
bool | init (const unsigned int iRows, const unsigned int iCols, double *data, unsigned int bufferSizeInDoubles) |
void | inverse (UMatrix *B, int method=CV_SVD) |
virtual bool | isAlsoA (const char *typeString) |
bool | isCol () |
bool | isRow () |
int | maxSize () |
int | mult (UMatrix *A, UMatrix *B) |
void | mult (const double scale) |
bool | normalize () |
void | print (const char *prestring) |
unsigned int | rows () |
int | save (char *filename, char delim= ' ') |
bool | save (FILE *f, const char *name) |
void | set (const double value0, const double value1, const double value2=0.0, const double value3=0.0) |
bool | setAt (const unsigned int at, const double value) |
int | setCol (unsigned int col, const double value0, const double value1=0.0, const double value2=0.0, const double value3=0.0) |
int | setDiag (double value0, double value1, double value2=0.0, double value3=0.0) |
bool | setMat (const int rCnt, const int cCnt, double *values) |
int | setMinor (UMatrix *mA, const unsigned int ar, const unsigned int ac) |
int | setRC (const unsigned int row, const unsigned int col, const double value) |
int | setRow (unsigned int row, const double value0, const double value1=0.0, const double value2=0.0, const double value3=0.0) |
int | setRow (unsigned int row, unsigned int valCnt, const double val[]) |
bool | setSize (const unsigned int iRows, const unsigned int iCols) |
unsigned int | size () |
virtual void | snprint (const char *prestring, char *buff, const int buffCnt) |
virtual void | snprintMaple (const char *prestring, char *s, const int length) |
bool | solve (UMatrix *iB, UMatrix *X) |
double | sqSum () |
void | sub (UMatrix *A, UMatrix *B) |
void | sub (UMatrix *A) |
double | trace () |
void | transpose (UMatrix *B=NULL) |
bool | valid () |
Public Member Functions inherited from UDataBase | |
bool | isA (const char *typeString) |
UDataBase () | |
virtual | ~UDataBase () |
Additional Inherited Members | |
Public Attributes inherited from UMatrix | |
int | err |
Protected Attributes inherited from UMatrix | |
CvMat | mat |
unsigned int | matrixSize |
Big matrix with up to 40 rows and 40 columns. Space for elements are in local, i.e. not on heap (memalloc()).
UMatrixBig::UMatrixBig | ( | const unsigned int | rows, |
const unsigned int | cols, | ||
double * | data = NULL , |
||
unsigned int | elements = 0 |
||
) |
Constructor of a matrix of this size
References UMatrix::cols(), UMatrix::elements(), UMatrix::err, UMatrix::mat, and UMatrix::matrixSize.
UMatrixBig::UMatrixBig | ( | const unsigned int | cols, |
double * | data = NULL , |
||
unsigned int | elements = 0 |
||
) |
Constructor of a vector with one row
References UMatrix::cols(), UMatrix::elements(), UMatrix::err, UMatrix::mat, and UMatrix::matrixSize.
UMatrixBig::UMatrixBig | ( | const unsigned int | rows, |
const unsigned int | cols, | ||
const double | i, | ||
double * | data = NULL , |
||
unsigned int | elements = 0 |
||
) |
Constructor of matrix with this size and initial value i along the main diagonal (and other elements zero).
References UMatrix::cols(), UMatrix::elements(), UMatrix::err, UMatrix::init(), UMatrix::mat, and UMatrix::matrixSize.
UMatrixBig::~UMatrixBig | ( | ) |
Destructor deallocated allocated memory.
References UMatrix::mat.
double UMatrixBig::det | ( | int * | error | ) |
Solve a equation set. solve matrix (this) x vector (result) = vector (B) Calculate determinant .
References UMatrix::cols(), UMatrix::det(), det(), UMatrix::err, UMatrix::rows(), and UMatrix::setMinor().
Referenced by det().
UMatrixBig UMatrixBig::operator= | ( | UMatrixBig | V | ) |
Returns a copy of V as this, with pointers corrected. result (this) = V.