28 #ifndef CASA_STLMATH_H
29 #define CASA_STLMATH_H
60 void throwContainerSizes (
const char*
name,
size_t l1,
size_t l2);
63 template<
typename CONTAINER>
67 if (left.size() != right.size()) {
68 throwContainerSizes (name, left.size(), right.size());
73 template<
typename CONTAINER>
76 size_t sz = in.size();
78 for (
size_t i=0; i<sz; ++i) {
86 std::vector<T>
operator+ (
const std::vector<T> &left,
87 const std::vector<T> &right)
89 checkContainerSizes(left, right,
"+");
90 std::vector<T> result(left.size());
92 result.begin(), std::plus<T>());
98 std::vector<T>
operator/ (
const std::vector<T> &left,
const T &right)
100 std::vector<T> result(left.size());
102 std::bind2nd(std::divides<T>(), right));
LatticeExprNode operator/(const LatticeExprNode &left, const LatticeExprNode &right)
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
CONTAINER reversedCasaContainer(const CONTAINER &in)
Reverse a Casacore container like IPosition, Block, or Vector.
void checkContainerSizes(const CONTAINER &left, const CONTAINER &right, const char *name)
Check if the sizes of both containers are the same.
LatticeExprNode operator+(const LatticeExprNode &expr)
Global functions operating on a LatticeExprNode.
transform(a.begin(), a.end(), std::ostream_iterator< int >(cout,"\n"), compose(unary(h), compose(unary(f), unary(f))))
Global Functions.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.