casa
$Rev:20696$
|
Basic math for table vectors. More...
#include <TabVecMath.h>
Public Member Functions | |
template<class T > | |
void | operator+= (TableVector< T > &left, const TableVector< T > &right) |
Add 2 table vectors storing result in first one. | |
template<class T > | |
void | operator-= (TableVector< T > &left, const TableVector< T > &right) |
Subtract 2 table vectors storing result in first one. | |
template<class T > | |
void | operator*= (TableVector< T > &left, const TableVector< T > &right) |
Multiple 2 table vectors storing result in first one. | |
template<class T > | |
void | operator/= (TableVector< T > &left, const TableVector< T > &right) |
Divide 2 table vectors storing result in first one. | |
template<class T > | |
void | operator+= (TableVector< T > &left, const T &right) |
Add a scalar to each element in the table vector. | |
template<class T > | |
void | operator-= (TableVector< T > &left, const T &right) |
Subtract a scalar from each element in the table vector. | |
template<class T > | |
void | operator*= (TableVector< T > &left, const T &right) |
Multiple each element in the table vector with a scalar. | |
template<class T > | |
void | operator/= (TableVector< T > &left, const T &right) |
Divide each element in the table vector by a scalar. | |
template<class T > | |
TableVector< T > | operator+ (const TableVector< T > &) |
Unary plus. | |
template<class T > | |
TableVector< T > | operator- (const TableVector< T > &) |
Unary minus. | |
template<class T > | |
TableVector< T > | operator+ (const TableVector< T > &left, const TableVector< T > &right) |
Add 2 table vectors storing result in a new one. | |
template<class T > | |
TableVector< T > | operator- (const TableVector< T > &left, const TableVector< T > &right) |
Subtract 2 table vectors storing result in a new one. | |
template<class T > | |
TableVector< T > | operator* (const TableVector< T > &left, const TableVector< T > &right) |
Multiple 2 table vectors storing result in a new one. | |
template<class T > | |
TableVector< T > | operator/ (const TableVector< T > &left, const TableVector< T > &right) |
Divide 2 table vectors storing result in a new one. | |
template<class T > | |
TableVector< T > | operator+ (const TableVector< T > &left, const T &right) |
Add a scalar to each element in the table vector storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator- (const TableVector< T > &left, const T &right) |
Subtract a scalar from each element in the table vector storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator* (const TableVector< T > &left, const T &right) |
Multiple each element in the table vector with a scalar storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator/ (const TableVector< T > &left, const T &right) |
Divide each element in the table vector by a scalar storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator+ (const T &left, const TableVector< T > &right) |
Add a scalar to each element in the table vector storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator- (const T &left, const TableVector< T > &right) |
Subtract a scalar from each element in the table vector storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator* (const T &left, const TableVector< T > &right) |
Multiple each element in the table vector with a scalar storing result in a new table vector. | |
template<class T > | |
TableVector< T > | operator/ (const T &left, const TableVector< T > &right) |
Divide each element in the table vector by a scalar storing result in a new table vector. |
Basic math for table vectors.
Public interface
These global functions do the basic math for table vectors. This means addition, subtraction, multiplication, division and negation. In case two table vectors are used, the left and right operand must be conformant (i.e. have equal length).
Definition at line 61 of file TabVecMath.h.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator* | ( | const TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Multiple 2 table vectors storing result in a new one.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator* | ( | const TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Multiple each element in the table vector with a scalar storing result in a new table vector.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator* | ( | const T & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Multiple each element in the table vector with a scalar storing result in a new table vector.
void casa::TabVecMath_global_functions_basicMath::operator*= | ( | TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Multiple 2 table vectors storing result in first one.
void casa::TabVecMath_global_functions_basicMath::operator*= | ( | TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Multiple each element in the table vector with a scalar.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator+ | ( | const TableVector< T > & | ) | [inline] |
Unary plus.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator+ | ( | const TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Add 2 table vectors storing result in a new one.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator+ | ( | const TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Add a scalar to each element in the table vector storing result in a new table vector.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator+ | ( | const T & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Add a scalar to each element in the table vector storing result in a new table vector.
void casa::TabVecMath_global_functions_basicMath::operator+= | ( | TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Add 2 table vectors storing result in first one.
void casa::TabVecMath_global_functions_basicMath::operator+= | ( | TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Add a scalar to each element in the table vector.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator- | ( | const TableVector< T > & | ) | [inline] |
Unary minus.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator- | ( | const TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Subtract 2 table vectors storing result in a new one.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator- | ( | const TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Subtract a scalar from each element in the table vector storing result in a new table vector.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator- | ( | const T & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Subtract a scalar from each element in the table vector storing result in a new table vector.
void casa::TabVecMath_global_functions_basicMath::operator-= | ( | TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Subtract 2 table vectors storing result in first one.
void casa::TabVecMath_global_functions_basicMath::operator-= | ( | TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Subtract a scalar from each element in the table vector.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator/ | ( | const TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Divide 2 table vectors storing result in a new one.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator/ | ( | const TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Divide each element in the table vector by a scalar storing result in a new table vector.
TableVector<T> casa::TabVecMath_global_functions_basicMath::operator/ | ( | const T & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Divide each element in the table vector by a scalar storing result in a new table vector.
void casa::TabVecMath_global_functions_basicMath::operator/= | ( | TableVector< T > & | left, |
const TableVector< T > & | right | ||
) | [inline] |
Divide 2 table vectors storing result in first one.
void casa::TabVecMath_global_functions_basicMath::operator/= | ( | TableVector< T > & | left, |
const T & | right | ||
) | [inline] |
Divide each element in the table vector by a scalar.