General Purpose Geodetic Library
SgUtMatrix.h File Reference
#include <SgMathSupport.h>
#include <SgVector.h>
#include <SgMatrix.h>

Go to the source code of this file.

Classes

class  SgUtMatrix
 

Functions

SgUtMatrix operator- (const SgUtMatrix &R)
 
SgUtMatrix operator/ (const SgUtMatrix &R, double d)
 
SgUtMatrix operator* (const SgUtMatrix &R, double d)
 
SgUtMatrix operator* (double d, const SgUtMatrix &R)
 
SgUtMatrix operator+ (const SgUtMatrix &R1, const SgUtMatrix &R2)
 
SgUtMatrix operator- (const SgUtMatrix &R1, const SgUtMatrix &R2)
 
std::ostream & operator<< (std::ostream &s, const SgUtMatrix &R)
 
SgVectorsolveEquation (const SgUtMatrix &R, SgVector &x, const SgVector &z)
 

Function Documentation

◆ operator*() [1/2]

SgUtMatrix operator* ( const SgUtMatrix R,
double  d 
)
inline

Returns a matrix multiplied by a scalar.

Parameters
R– a matrix;
d– a scale.

Definition at line 495 of file SgUtMatrix.h.

◆ operator*() [2/2]

SgUtMatrix operator* ( double  d,
const SgUtMatrix R 
)
inline

Returns a natrix multiplied by a scalar.

Parameters
d– a scale.
R– a matrix;

Definition at line 503 of file SgUtMatrix.h.

◆ operator+()

SgUtMatrix operator+ ( const SgUtMatrix R1,
const SgUtMatrix R2 
)
inline

Returns a sum of two UT matrices.

Parameters
R1is a first term,
R2is a second term in the sum.

Definition at line 511 of file SgUtMatrix.h.

◆ operator-() [1/2]

SgUtMatrix operator- ( const SgUtMatrix R)
inline

Returns a matrix with an inverted sign.

Parameters
R– an original matrix.

Definition at line 479 of file SgUtMatrix.h.

◆ operator-() [2/2]

SgUtMatrix operator- ( const SgUtMatrix R1,
const SgUtMatrix R2 
)
inline

Returns a difference of two matrices.

Parameters
R1is a first term,
R2is a second term in the sum.

Definition at line 519 of file SgUtMatrix.h.

◆ operator/()

SgUtMatrix operator/ ( const SgUtMatrix R,
double  d 
)
inline

Returns a matrix divided by a scalar.

Parameters
R– a matrix;
d– a divider;

Definition at line 487 of file SgUtMatrix.h.

◆ 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().

◆ 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().