General Purpose Geodetic Library
SgMatrix.cpp File Reference
#include <QtCore/QString>
#include <SgMatrix.h>

Go to the source code of this file.

Functions

SgVector operator* (const SgMatrix &M, const SgVector &V)
 
SgMatrix calcProduct_mat_x_mat (const SgMatrix &M1, const SgMatrix &M2)
 
SgMatrix calcProduct_matT_x_mat (const SgMatrix &M1, const SgMatrix &M2)
 
SgMatrix calcProduct_mat_x_matT (const SgMatrix &M1, const SgMatrix &M2)
 
SgVector calcProduct_matT_x_vec (const SgMatrix &M, const SgVector &V)
 
std::ostream & operator<< (std::ostream &s, const SgMatrix &M)
 

Function Documentation

◆ calcProduct_mat_x_mat()

SgMatrix calcProduct_mat_x_mat ( const SgMatrix M1,
const SgMatrix M2 
)

Makes a product of two matrices.

Parameters
M1– a first term in the product;
M2– a second term in the product.

Definition at line 94 of file SgMatrix.cpp.

Referenced by SgEstimator::finisRun().

◆ calcProduct_mat_x_matT()

SgMatrix calcProduct_mat_x_matT ( const SgMatrix M1,
const SgMatrix M2 
)

Makes a product of a matrix and a transposed matrix, i.e., M1*M2^T.

Parameters
M1– a matrix, the first term in the product,
M2– a matrix that should be transposed.

Definition at line 165 of file SgMatrix.cpp.

◆ calcProduct_matT_x_mat()

SgMatrix calcProduct_matT_x_mat ( const SgMatrix M1,
const SgMatrix M2 
)

Makes a product of a transposed matrix and a matrix, i.e., M1^T*M2.

Parameters
M1– a matrix that should be transposed;
M2– a matrix, the second term in the product.

Definition at line 131 of file SgMatrix.cpp.

◆ calcProduct_matT_x_vec()

SgVector calcProduct_matT_x_vec ( const SgMatrix M,
const SgVector V 
)

Makes a product of a transposed matrix and a vector.

Parameters
M– a that should be transposed;
V– a vector.

Definition at line 192 of file SgMatrix.cpp.

◆ operator*()

SgVector operator* ( const SgMatrix M,
const SgVector V 
)

Makes a product of a matrix and a vector.

Parameters
M– a matrix;
V– a vector.

Definition at line 73 of file SgMatrix.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const SgMatrix M 
)

Makes output to std::ostream, a standard text formatted output.

Parameters
s– a stream;
M– a matrix.

Definition at line 228 of file SgMatrix.cpp.

References SgMatrix::getElement(), SgMatrix::nCol(), and SgMatrix::nRow().