casa
5.7.0-16
|
Math operations on STL-like containers. More...
#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 |
|
inline |
Add two std::vector objects.
Definition at line 86 of file STLMath.h.
References casa::utilj::transform().
|
inline |
Divide a vector by a scalar.
Definition at line 98 of file STLMath.h.
References casa::utilj::transform().
|
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.