GammaLib
2.1.0.dev
|
Vector class interface definition. More...
Go to the source code of this file.
Classes | |
class | GVector |
Vector class. More... | |
Functions | |
GVector | operator+ (const GVector &a, const GVector &b) |
Add two vectors. More... | |
GVector | operator+ (const GVector &vector, const double &scalar) |
Add scalar to vector. More... | |
GVector | operator+ (const double &scalar, const GVector &vector) |
Add scalar to vector. More... | |
GVector | operator- (const GVector &a, const GVector &b) |
Subtract vector from vector. More... | |
GVector | operator- (const GVector &vector, const double &scalar) |
Subtract scalar from vector. More... | |
GVector | operator- (const double &scalar, const GVector &vector) |
Subtract vector from scalar. More... | |
GVector | operator* (const GVector &vector, const double &scalar) |
Multiply vector by scalar. More... | |
GVector | operator* (const double &scalar, const GVector &vector) |
Multiply vector by scalar. More... | |
GVector | operator/ (const GVector &vector, const double &scalar) |
Divide vector by scalar. More... | |
Vector class interface definition.
Definition in file GVector.hpp.
Multiply vector by scalar.
[in] | vector | Vector. |
[in] | scalar | Scalar. |
scalar
.Returns a vector for which all elements have be multiplied by scalar
.
Definition at line 304 of file GVector.hpp.
Multiply vector by scalar.
[in] | scalar | Scalar. |
[in] | vector | Vector. |
scalar
.Returns a vector for which all elements have be multiplied by scalar
.
Definition at line 322 of file GVector.hpp.
Add two vectors.
[in] | a | Vector. |
[in] | b | Vector. |
a
and b
.Returns the sum of vectors a
and b
.
Definition at line 194 of file GVector.hpp.
Add scalar to vector.
[in] | vector | Vector. |
[in] | scalar | Scalar. |
scalar
added to all elements.Returns a vector for which the scalar
has been added to all elements.
Definition at line 212 of file GVector.hpp.
Add scalar to vector.
[in] | scalar | Scalar. |
[in] | vector | Vector. |
scalar
added to all elements.Returns a vector for which the scalar
has been added to all elements.
Definition at line 230 of file GVector.hpp.
Subtract vector from vector.
[in] | a | Vector. |
[in] | b | Vector. |
a
and b
.Returns the difference between vector a
and b
.
Definition at line 248 of file GVector.hpp.
Subtract scalar from vector.
[in] | vector | Vector. |
[in] | scalar | Scalar. |
scalar
subtracted from all elements.Returns a vector for which the scalar
has been subtracted from all elements.
Definition at line 267 of file GVector.hpp.
Subtract vector from scalar.
[in] | scalar | Scalar. |
[in] | vector | Vector. |
scalar
.Returns a vector for which all elements have been subtracted from the scalar
.
Definition at line 286 of file GVector.hpp.
Divide vector by scalar.
[in] | vector | Vector. |
[in] | scalar | Scalar. |
scalar
.Returns a vector for which all elements have be divided by scalar
.
Definition at line 340 of file GVector.hpp.