Xmipp
v3.23.11-Nereus
|
#include <Matrix.h>
Classes | |
struct | MatrixDataTag |
Public Member Functions | |
Matrix (int _ligne=0, int _nColumn=0) | |
Matrix (int _ligne, int _nColumn, int _extLine, int _extColumn) | |
Matrix (const char *filename, char ascii=0) | |
Matrix (Vector a, Vector b) | |
Matrix (Vector a) | |
void | save (char *filename, char ascii) |
void | save (FILE *f, char ascii) |
void | updateSave (char *saveFileName) |
void | extendLine () |
void | setNLine (int _nLine) |
void | extendColumn () |
void | setNColumn (int _nColumn) |
void | setSize (int _nLine, int _nColumn) |
void | exactshape () |
void | print () |
void | setColNames (char **c, int nc=0) |
~Matrix () | |
Matrix (const Matrix &A) | |
Matrix & | operator= (const Matrix &A) |
Matrix | clone () |
void | copyFrom (Matrix a) |
bool | operator== (const Matrix &A) |
int | nLine () |
int | nColumn () |
char ** | getColumnNames () |
double * | operator[] (int i) |
operator double ** () const | |
Vector | getLine (int i, int n=0, int startCol=0) |
void | getLine (int i, Vector r, int n=0, int startCol=0) |
Vector | getColumn (int i, int n=0) |
void | getColumn (int i, Vector r, int n=0) |
void | getSubMatrix (Matrix R, int startL, int StartC, int nl=0, int nc=0) |
void | setLine (int i, Vector v, int n=0) |
void | setLines (int indexDest, Matrix Source, int indexSource=0, int number=0) |
void | swapLines (int i, int j) |
int | lineIndex (Vector r, int nn=0) |
void | merge (Matrix m, int eliminateDoubles=1) |
void | append (Vector tmp) |
void | zero () |
void | diagonal (double d) |
Matrix | multiply (Matrix B) |
void | multiplyInPlace (double d) |
void | multiply (Vector R, Vector v) |
void | transposeAndMultiply (Vector R, Vector a) |
void | multiply (Matrix R, Matrix a) |
void | transposeAndMultiply (Matrix R, Matrix a) |
void | multiplyByTranspose (Matrix R, Matrix a) |
void | multiplyByDiagonalMatrix (Vector v) |
Vector | multiply (Vector v) |
void | addInPlace (Matrix B) |
void | addMultiplyInPlace (double d, Matrix B) |
void | addUnityInPlace (double d) |
void | transposeInPlace () |
Matrix | transpose () |
void | transpose (Matrix trans) |
double | scalarProduct (int nl, Vector v) |
Matrix (MatrixTriangle A, char bTranspose=0) | |
bool | cholesky (MatrixTriangle matL, double lambda=0, double *lambdaCorrection=NULL) |
void | choleskySolveInPlace (Vector b) |
void | QR (Matrix Q=Matrix::emptyMatrix, MatrixTriangle R=MatrixTriangle::emptyMatrixTriangle, VectorInt permutation=VectorInt::emptyVectorInt) |
double | frobeniusNorm () |
double | LnftyNorm () |
double | euclidianNorm (int i) |
Vector | getMaxColumn () |
Static Public Attributes | |
static Matrix | emptyMatrix |
Protected Types | |
typedef struct Matrix::MatrixDataTag | MatrixData |
Protected Member Functions | |
void | init (int _nLine, int _nColumn, int _extLine, int _extColumn, MatrixData *d=NULL) |
void | setExtSize (int _extLine, int _extColumn) |
void | destroyCurrentBuffer () |
Protected Attributes | |
MatrixData * | d |
|
protected |
Matrix::Matrix | ( | int | _ligne = 0 , |
int | _nColumn = 0 |
||
) |
Definition at line 60 of file Matrix.cpp.
Matrix::Matrix | ( | int | _ligne, |
int | _nColumn, | ||
int | _extLine, | ||
int | _extColumn | ||
) |
Definition at line 92 of file Matrix.cpp.
Matrix::Matrix | ( | const char * | filename, |
char | ascii = 0 |
||
) |
Definition at line 97 of file Matrix.cpp.
Definition at line 81 of file Matrix.cpp.
Matrix::Matrix | ( | Vector | a | ) |
Definition at line 74 of file Matrix.cpp.
Matrix::~Matrix | ( | ) |
Definition at line 434 of file Matrix.cpp.
Matrix::Matrix | ( | const Matrix & | A | ) |
Definition at line 463 of file Matrix.cpp.
Matrix::Matrix | ( | MatrixTriangle | A, |
char | bTranspose = 0 |
||
) |
Definition at line 742 of file Matrix.cpp.
void Matrix::addInPlace | ( | Matrix | B | ) |
Definition at line 703 of file Matrix.cpp.
void Matrix::addMultiplyInPlace | ( | double | d, |
Matrix | B | ||
) |
Definition at line 720 of file Matrix.cpp.
void Matrix::addUnityInPlace | ( | double | d | ) |
Definition at line 1038 of file Matrix.cpp.
void Matrix::append | ( | Vector | tmp | ) |
Definition at line 1227 of file Matrix.cpp.
bool Matrix::cholesky | ( | MatrixTriangle | matL, |
double | lambda = 0 , |
||
double * | lambdaCorrection = NULL |
||
) |
Definition at line 763 of file Matrix.cpp.
void Matrix::choleskySolveInPlace | ( | Vector | b | ) |
Definition at line 808 of file Matrix.cpp.
Matrix Matrix::clone | ( | ) |
Definition at line 470 of file Matrix.cpp.
void Matrix::copyFrom | ( | Matrix | a | ) |
Definition at line 478 of file Matrix.cpp.
|
protected |
Definition at line 439 of file Matrix.cpp.
void Matrix::diagonal | ( | double | d | ) |
Definition at line 65 of file Matrix.cpp.
double Matrix::euclidianNorm | ( | int | i | ) |
Definition at line 1140 of file Matrix.cpp.
void Matrix::exactshape | ( | ) |
Definition at line 379 of file Matrix.cpp.
void Matrix::extendColumn | ( | ) |
Definition at line 193 of file Matrix.cpp.
void Matrix::extendLine | ( | ) |
Definition at line 181 of file Matrix.cpp.
double Matrix::frobeniusNorm | ( | ) |
Definition at line 1045 of file Matrix.cpp.
Vector Matrix::getColumn | ( | int | i, |
int | n = 0 |
||
) |
Definition at line 1108 of file Matrix.cpp.
void Matrix::getColumn | ( | int | i, |
Vector | r, | ||
int | n = 0 |
||
) |
Definition at line 1117 of file Matrix.cpp.
Vector Matrix::getLine | ( | int | i, |
int | n = 0 , |
||
int | startCol = 0 |
||
) |
Definition at line 1094 of file Matrix.cpp.
void Matrix::getLine | ( | int | i, |
Vector | r, | ||
int | n = 0 , |
||
int | startCol = 0 |
||
) |
Definition at line 1101 of file Matrix.cpp.
Vector Matrix::getMaxColumn | ( | ) |
Definition at line 1073 of file Matrix.cpp.
void Matrix::getSubMatrix | ( | Matrix | R, |
int | startL, | ||
int | StartC, | ||
int | nl = 0 , |
||
int | nc = 0 |
||
) |
Definition at line 1145 of file Matrix.cpp.
|
protected |
Definition at line 37 of file Matrix.cpp.
int Matrix::lineIndex | ( | Vector | r, |
int | nn = 0 |
||
) |
Definition at line 1168 of file Matrix.cpp.
double Matrix::LnftyNorm | ( | ) |
Definition at line 1058 of file Matrix.cpp.
void Matrix::merge | ( | Matrix | m, |
int | eliminateDoubles = 1 |
||
) |
Definition at line 1203 of file Matrix.cpp.
Definition at line 633 of file Matrix.cpp.
Definition at line 650 of file Matrix.cpp.
Definition at line 573 of file Matrix.cpp.
Definition at line 688 of file Matrix.cpp.
void Matrix::multiplyByDiagonalMatrix | ( | Vector | v | ) |
Definition at line 558 of file Matrix.cpp.
Definition at line 613 of file Matrix.cpp.
void Matrix::multiplyInPlace | ( | double | d | ) |
Definition at line 640 of file Matrix.cpp.
Definition at line 451 of file Matrix.cpp.
|
inline |
void Matrix::print | ( | ) |
Definition at line 418 of file Matrix.cpp.
void Matrix::QR | ( | Matrix | Q = Matrix::emptyMatrix , |
MatrixTriangle | R = MatrixTriangle::emptyMatrixTriangle , |
||
VectorInt | permutation = VectorInt::emptyVectorInt |
||
) |
Definition at line 820 of file Matrix.cpp.
void Matrix::save | ( | char * | filename, |
char | ascii | ||
) |
Definition at line 282 of file Matrix.cpp.
void Matrix::save | ( | FILE * | f, |
char | ascii | ||
) |
Definition at line 306 of file Matrix.cpp.
double Matrix::scalarProduct | ( | int | nl, |
Vector | v | ||
) |
Definition at line 695 of file Matrix.cpp.
void Matrix::setColNames | ( | char ** | c, |
int | nc = 0 |
||
) |
Definition at line 1180 of file Matrix.cpp.
|
protected |
Definition at line 212 of file Matrix.cpp.
void Matrix::setLine | ( | int | i, |
Vector | v, | ||
int | n = 0 |
||
) |
Definition at line 1125 of file Matrix.cpp.
void Matrix::setLines | ( | int | indexDest, |
Matrix | Source, | ||
int | indexSource = 0 , |
||
int | number = 0 |
||
) |
Definition at line 1131 of file Matrix.cpp.
void Matrix::setNColumn | ( | int | _nColumn | ) |
Definition at line 199 of file Matrix.cpp.
void Matrix::setNLine | ( | int | _nLine | ) |
Definition at line 187 of file Matrix.cpp.
void Matrix::setSize | ( | int | _nLine, |
int | _nColumn | ||
) |
Definition at line 205 of file Matrix.cpp.
void Matrix::swapLines | ( | int | i, |
int | j | ||
) |
Definition at line 1155 of file Matrix.cpp.
Matrix Matrix::transpose | ( | ) |
Definition at line 539 of file Matrix.cpp.
void Matrix::transpose | ( | Matrix | trans | ) |
Definition at line 526 of file Matrix.cpp.
Definition at line 669 of file Matrix.cpp.
Definition at line 593 of file Matrix.cpp.
void Matrix::transposeInPlace | ( | ) |
Definition at line 500 of file Matrix.cpp.
void Matrix::updateSave | ( | char * | saveFileName | ) |
Definition at line 349 of file Matrix.cpp.
void Matrix::zero | ( | ) |
Definition at line 553 of file Matrix.cpp.
|
protected |