General Purpose Geodetic Library
SgMatrix.h File Reference
#include <math.h>
#include <stdio.h>
#include <iostream>
#include <SgMathSupport.h>
#include <SgVector.h>

Go to the source code of this file.

Classes

class  SgMatrix
 

Functions

SgMatrix operator- (const SgMatrix &M)
 
SgMatrix operator/ (const SgMatrix &M, double d)
 
SgMatrix operator* (const SgMatrix &M, double d)
 
SgMatrix operator* (double d, const SgMatrix &M)
 
SgMatrix operator+ (const SgMatrix &M1, const SgMatrix &M2)
 
SgMatrix operator- (const SgMatrix &M1, const SgMatrix &M2)
 
std::ostream & operator<< (std::ostream &s, const SgMatrix &M)
 

Function Documentation

◆ operator*() [1/2]

SgMatrix operator* ( const SgMatrix M,
double  d 
)
inline

Returns a matrix multiplied by a scalar.

Parameters
M– a matrix;
d– a scale.

Definition at line 559 of file SgMatrix.h.

◆ operator*() [2/2]

SgMatrix operator* ( double  d,
const SgMatrix M 
)
inline

Returns a natrix multiplied by a scalar.

Parameters
d– a scale.
M– a matrix;

Definition at line 567 of file SgMatrix.h.

◆ operator+()

SgMatrix operator+ ( const SgMatrix M1,
const SgMatrix M2 
)
inline

Returns a sum of two matrices.

Parameters
M1is a first term,
M2is a second term in the sum.

Definition at line 575 of file SgMatrix.h.

◆ operator-() [1/2]

SgMatrix operator- ( const SgMatrix M)
inline

Returns a matrix with an inverted sign.

Parameters
M– an original matrix.

Definition at line 543 of file SgMatrix.h.

◆ operator-() [2/2]

SgMatrix operator- ( const SgMatrix M1,
const SgMatrix M2 
)
inline

Returns a difference of two matrices.

Parameters
M1is a first term,
M2is a second term in the sum.

Definition at line 583 of file SgMatrix.h.

◆ operator/()

SgMatrix operator/ ( const SgMatrix M,
double  d 
)
inline

Returns a matrix divided by a scalar.

Parameters
M– a matrix;
d– a divider;

Definition at line 551 of file SgMatrix.h.

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