GammaLib
2.1.0.dev
|
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 533 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 551 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 417 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 435 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 453 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 471 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 493 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 515 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 569 of file GNdarray.hpp.