GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 
GMatrix operator* (const double &scalar, const GMatrix &matrix)
 Multiply matrix by scalar.
 
GMatrix operator/ (const GMatrix &matrix, const double &scalar)
 Divide matrix by scalar.
 

Detailed Description

Generic matrix class definition.

Author
Juergen Knoedlseder

Definition in file GMatrix.hpp.

Function Documentation

◆ operator*() [1/2]

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 387 of file GMatrix.hpp.

◆ operator*() [2/2]

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 369 of file GMatrix.hpp.

◆ operator/()

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 405 of file GMatrix.hpp.