GammaLib
2.0.0
|
N-dimensional array class interface definition. More...
Go to the source code of this file.
Classes | |
class | GNdarray |
N-dimensional array class. More... | |
Functions | |
GNdarray | operator+ (const GNdarray &a, const GNdarray &b) |
Return sum of two arrays. More... | |
GNdarray | operator+ (const GNdarray &array, const double &value) |
Add value to array (right addition) More... | |
GNdarray | operator+ (const double &value, const GNdarray &array) |
Add value to array (left addition) More... | |
GNdarray | operator- (const GNdarray &a, const GNdarray &b) |
Return difference of arrays. More... | |
GNdarray | operator- (const GNdarray &array, const double &value) |
Subtract value from array. More... | |
GNdarray | operator- (const double &value, const GNdarray &array) |
Subtract array from value. More... | |
GNdarray | operator* (const GNdarray &array, const double &value) |
Multiply array by value (right multiplication) More... | |
GNdarray | operator* (const double &value, const GNdarray &array) |
Multiply array by value (left multiplication) More... | |
GNdarray | operator/ (const GNdarray &array, const double &value) |
Divide array by value. More... | |
N-dimensional array class interface definition.
Definition in file GNdarray.hpp.
Multiply array by value (right multiplication)
[in] | array | Array. |
[in] | value | Value. |
value
.Returns an array for which all elements have be multiplied by value
.
Definition at line 532 of file GNdarray.hpp.
Multiply array by value (left multiplication)
[in] | value | Value. |
[in] | array | Array. |
value
.Returns an array for which all elements have be multiplied by value
.
Definition at line 550 of file GNdarray.hpp.
Return sum of two arrays.
[in] | a | First array. |
[in] | b | Second array. |
a
and b
.Returns the sum of arrays a
and b
.
Definition at line 416 of file GNdarray.hpp.
Add value to array (right addition)
[in] | array | Array. |
[in] | value | Value. |
value
added to all elements.Returns an array for which the value
has been added to all elements.
Definition at line 434 of file GNdarray.hpp.
Add value to array (left addition)
[in] | value | Value. |
[in] | array | Array. |
value
added to all elements.Returns an array for which the value
has been added to all elements.
Definition at line 452 of file GNdarray.hpp.
Return difference of arrays.
[in] | a | First array. |
[in] | b | Second array. |
a
and b
.Returns the difference between array a
and b
.
Definition at line 470 of file GNdarray.hpp.
Subtract value from array.
[in] | array | Array. |
[in] | value | Value. |
value
subtracted from all elements.Returns an array for which the value
has been subtracted from all elements. For example
double value = 5.0; GNdarray result = array - value;
Definition at line 492 of file GNdarray.hpp.
Subtract array from value.
[in] | value | Value. |
[in] | array | Array. |
value
subtracted from all elements.Returns an array for which all elements have been subtracted from value
. For example
double value = 5.0; GNdarray result = value - array;
Definition at line 514 of file GNdarray.hpp.
Divide array by value.
[in] | array | Array. |
[in] | value | Value. |
value
.Returns an array for which all elements have be divided by value
.
Definition at line 568 of file GNdarray.hpp.