GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GMatrix.hpp File Reference

Generic matrix class definition. More...

#include <string>
#include "GMatrixBase.hpp"

Go to the source code of this file.

Classes

class  GMatrix
 Generic matrix class definition. More...
 

Functions

GMatrix operator* (const GMatrix &matrix, const double &scalar)
 Multiply matrix by scalar. More...
 
GMatrix operator* (const double &scalar, const GMatrix &matrix)
 Multiply matrix by scalar. More...
 
GMatrix operator/ (const GMatrix &matrix, const double &scalar)
 Divide matrix by scalar. More...
 

Detailed Description

Generic matrix class definition.

Author
Juergen Knoedlseder

Definition in file GMatrix.hpp.

Function Documentation

GMatrix operator* ( const GMatrix matrix,
const double &  scalar 
)
inline

Multiply matrix by scalar.

Parameters
[in]matrixMatrix.
[in]scalarScalar.
Returns
Matrix divided by scalar.

Returns a matrix where each element has been multiplied by a scalar.

Definition at line 370 of file GMatrix.hpp.

GMatrix operator* ( const double &  scalar,
const GMatrix matrix 
)
inline

Multiply matrix by scalar.

Parameters
[in]scalarScalar.
[in]matrixMatrix.
Returns
Matrix divided by scalar.

Returns a matrix where each element has been multiplied by a scalar.

Definition at line 388 of file GMatrix.hpp.

GMatrix operator/ ( const GMatrix matrix,
const double &  scalar 
)
inline

Divide matrix by scalar.

Parameters
[in]matrixMatrix.
[in]scalarScalar.
Returns
Matrix divided by scalar.

Returns a matrix where each element has been divided by a scalar.

Definition at line 406 of file GMatrix.hpp.