28 #ifndef CASA_ARRAYLOGICAL_H
29 #define CASA_ARRAYLOGICAL_H
40 template <
class T>
class Vector;
41 template <
class T>
class Matrix;
42 template <
class T>
class Cube;
124 template<
typename T,
typename CompareOperator>
127 template<
typename T,
typename CompareOperator>
128 bool arrayCompareAll (
const Array<T>& left, T right,
130 template<
typename T,
typename CompareOperator>
131 bool arrayCompareAll (T left,
const Array<T>& right,
137 template<
typename T,
typename CompareOperator>
140 template<
typename T,
typename CompareOperator>
141 bool arrayCompareAny (
const Array<T>& left, T right,
143 template<
typename T,
typename CompareOperator>
144 bool arrayCompareAny (T left,
const Array<T>& right,
194 template<
class T> LogicalArray operator <= (const Array<T> &l,
196 template<
class T> LogicalArray operator < (const Array<T> &l,
265 {
return a.
size() <= 1 || allEQ(*a.
data(), a); }
285 template<
class T> LogicalArray operator <= (const Array<T> &
array,
const T &val);
286 template<
class T> LogicalArray operator <= (const T &val, const Array<T> &
array);
287 template<
class T> LogicalArray operator < (const Array<T> &
array,
const T &val);
288 template<
class T> LogicalArray operator < (const T &val, const Array<T> &
array);
392 {
return allEQ (array,
True); }
448 template<
typename T,
typename RES=
size_t>
454 template<
typename T,
typename RES=
size_t>
465 #ifndef CASACORE_NO_AUTO_TEMPLATES
466 #include <casacore/casa/Arrays/ArrayLogical.tcc>
467 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
std::vector< double > Vector
bool allNearAbs(const C1 &l, const C2 &r, U tolerance)
Test if all elements of the containers are absolutely near each other.
bool allNear(const C1 &l, const C2 &r, U tolerance)
Test if all elements of the containers are relatively near each other.
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
size_t ntrue(const Array< T > &array)
Bool anyLT(const TableVector< T > &l, const TableVector< T > &r)
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
Bool near(const GaussianBeam &left, const GaussianBeam &other, const Double relWidthTol, const Quantity &absPaTol)
LatticeExprNode ntrue(const LatticeExprNode &expr)
LatticeExprNode operator!=(const LatticeExprNode &left, const LatticeExprNode &right)
Bool allTrue(const Array< Bool > &array)
Are all elements true?
virtual RES operator()(const Array< T > &arr) const
virtual RES operator()(const Array< T > &arr) const
LatticeExprNode operator>=(const LatticeExprNode &left, const LatticeExprNode &right)
Bool anyNE(const TableVector< T > &l, const TableVector< T > &r)
T * data()
Get a pointer to the beginning of the array.
LatticeExprNode nfalse(const LatticeExprNode &expr)
LatticeExprNode operator!(const LatticeExprNode &expr)
TableExprNode isInf(const TableExprNode &node)
virtual Bool operator()(const Array< T > &arr) const
Basic class for math on Array objects.
TableExprNode isFinite(const TableExprNode &node)
Function to test if a scalar or array is finite.
bool Bool
Define the standard types used by Casacore.
Bool anyGE(const TableVector< T > &l, const TableVector< T > &r)
Bool anyGT(const TableVector< T > &l, const TableVector< T > &r)
template <class T, class U> class vector;
LatticeExprNode operator>(const LatticeExprNode &left, const LatticeExprNode &right)
Bool allSame(const Array< T > &a)
Test if all elements in an array are the same.
Bool anyEQ(const TableVector< T > &l, const TableVector< T > &r)
Bool anyTrue(const Array< Bool > &array)
Is any element true?
TableExprNode nearAbs(const TableExprNode &left, const TableExprNode &right)
Bool operator==(const MVTime &lh, const MVTime &rh)
is equal operator, uses operator Double which returns days
LatticeExprNode isNaN(const LatticeExprNode &expr)
Test if a value is a NaN.
Bool anyLE(const TableVector< T > &l, const TableVector< T > &r)
Element by element comparisons between the "l" and "r" table vectors.
LatticeExprNode operator||(const LatticeExprNode &left, const LatticeExprNode &right)
LatticeExprNode operator&&(const LatticeExprNode &left, const LatticeExprNode &right)
Logical binary operators.
virtual Bool operator()(const Array< T > &arr) const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.