casa
$Rev:20696$
|
Miscellaneous table vector operations. More...
#include <TVecMath.h>
Public Member Functions | |
template<class T > | |
void | tabVecRepminmax (T &min, T &max, const TabVecRep< T > &) |
Determine minimum and maximum value in a table vector. | |
template<class T > | |
void | tabVecRepindgen (TabVecRep< T > &, Int start, Int inc) |
Fills all elements of the table vector with a sequence starting with "start" and incrementing by "inc" for each element. | |
template<class T > | |
T | tabVecRepsum (const TabVecRep< T > &) |
Sum of all the elements of a table vector. | |
template<class T > | |
T | tabVecRepproduct (const TabVecRep< T > &) |
Product of all the elements of a table vector. |
Miscellaneous table vector operations.
Internal
Fill a table vector or calculate the sum, product, minimum or maximum of its elements.
Definition at line 216 of file TVecMath.h.
void casa::TVecMath_global_functions_miscellaneous::tabVecRepindgen | ( | TabVecRep< T > & | , |
Int | start, | ||
Int | inc | ||
) |
Fills all elements of the table vector with a sequence starting with "start" and incrementing by "inc" for each element.
void casa::TVecMath_global_functions_miscellaneous::tabVecRepminmax | ( | T & | min, |
T & | max, | ||
const TabVecRep< T > & | |||
) |
Determine minimum and maximum value in a table vector.
Requires that the type "T" has comparison operators.
T casa::TVecMath_global_functions_miscellaneous::tabVecRepproduct | ( | const TabVecRep< T > & | ) |
Product of all the elements of a table vector.
Warning: product can easily overflow;
T casa::TVecMath_global_functions_miscellaneous::tabVecRepsum | ( | const TabVecRep< T > & | ) |
Sum of all the elements of a table vector.