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

Go to the source code of this file.

Functions

SgVector operator* (const SgUtMatrix &R, const SgVector &V)
 
SgUtMatrix operator~ (const SgUtMatrix &R)
 
SgMatrix calcProduct_mat_x_mat (const SgUtMatrix &R1, const SgMatrix &M2)
 
SgVectorsolveEquation (const SgUtMatrix &R, SgVector &x, const SgVector &z)
 
std::ostream & operator<< (std::ostream &s, const SgUtMatrix &R)
 

Function Documentation

◆ calcProduct_mat_x_mat()

SgMatrix calcProduct_mat_x_mat ( const SgUtMatrix R1,
const SgMatrix M2 
)

Definition at line 124 of file SgUtMatrix.cpp.

◆ operator*()

SgVector operator* ( const SgUtMatrix R,
const SgVector V 
)

Makes a product of a matrix and a vector.

Parameters
R– a matrix;
V– a vector.

Definition at line 69 of file SgUtMatrix.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const SgUtMatrix R 
)

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

Parameters
s– a stream;
R– a matrix.

Definition at line 205 of file SgUtMatrix.cpp.

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

◆ operator~()

SgUtMatrix operator~ ( const SgUtMatrix R)

Returns inversed matrix. This is time consumed operation, shouldn't use in ordinary operations. R*~R == ~R*R == E (original matrix doesn't change)..

Definition at line 90 of file SgUtMatrix.cpp.

◆ solveEquation()

SgVector& solveEquation ( const SgUtMatrix R,
SgVector x,
const SgVector z 
)

Returns a vector x that is satisfies an equation system Rx=z.

Parameters
R– a matrix, input;
x– a vector, output.
z– a vector, input;

Definition at line 166 of file SgUtMatrix.cpp.

References SgVector::getElement(), SgUtMatrix::getElement(), SgVector::n(), and SgMatrix::nRow().