casacore
|
#include <STLMath.h>
Public Member Functions | |
void | throwContainerSizes (const char *name, size_t l1, size_t l2) |
Throw an exception that two container sizes mismatch. More... | |
template<typename CONTAINER > | |
void | checkContainerSizes (const CONTAINER &left, const CONTAINER &right, const char *name) |
Check if the sizes of both containers are the same. More... | |
template<typename CONTAINER > | |
CONTAINER | reversedCasaContainer (const CONTAINER &in) |
Reverse a Casacore container like IPosition, Block, or Vector. More... | |
template<class T > | |
std::vector< T > | operator+ (const std::vector< T > &left, const std::vector< T > &right) |
Add two std::vector objects. More... | |
template<class T > | |
std::vector< T > | operator/ (const std::vector< T > &left, const T &right) |
Divide a vector by a scalar. More... | |
Math operations on STL-like containers
Public interface
This file defines a few functions with a math operation on a vector. Others can be added later.
|
inline |
Check if the sizes of both containers are the same.
Definition at line 64 of file STLMath.h.
References throwContainerSizes().
Referenced by operator+().
|
inline |
Add two std::vector objects.
Definition at line 86 of file STLMath.h.
References checkContainerSizes().
|
inline |
|
inline |
void casacore::STLMath_global_functions_Container_Math::throwContainerSizes | ( | const char * | name, |
size_t | l1, | ||
size_t | l2 | ||
) |
Throw an exception that two container sizes mismatch.
Referenced by checkContainerSizes().