28 #ifndef CASA_ARRAYLOGICAL_H 29 #define CASA_ARRAYLOGICAL_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Arrays/Array.h> 34 #include <casacore/casa/Arrays/LogiArray.h> 35 #include <casacore/casa/Arrays/ArrayMathBase.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); }
271 template<
class T> LogicalArray
isInf (
const Array<T> &array);
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);
297 template<
class T> LogicalArray
near (
const Array<T> &array,
const T &val,
299 template<
class T> LogicalArray
near (
const T &val,
const Array<T> &array,
301 template<
class T> LogicalArray
nearAbs (
const Array<T> &array,
const T &val,
303 template<
class T> LogicalArray
nearAbs (
const T &val,
const Array<T> &array,
374 template<
class T>
Bool anyNearAbs (
const Array<T> &array,
const T &val,
376 template<
class T>
Bool anyNearAbs (
const T &val,
const Array<T> &array,
381 template<
class T>
Bool anyAND (
const Array<T> &array,
const T &val);
382 template<
class T>
Bool anyAND (
const T &val,
const Array<T> &array);
383 template<
class T>
Bool anyOR (
const Array<T> &array,
const T &val);
384 template<
class T>
Bool anyOR (
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.
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 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)
Bool allTrue(const Array< Bool > &array)
Are all elements true?
bool operator==(const casacore_allocator< T, ALIGNMENT > &, const casacore_allocator< T, ALIGNMENT > &)
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)
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
TableExprNode isInf(const TableExprNode &node)
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)
LatticeExprNode operator &&(const LatticeExprNode &left, const LatticeExprNode &right)
Logical binary operators.
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)
LatticeExprNode isNaN(const LatticeExprNode &expr)
Test if a value is a NaN.
bool operator!=(const casacore_allocator< T, ALIGNMENT > &, const casacore_allocator< T, ALIGNMENT > &)
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)
this file contains all the compiler specific defines
virtual Bool operator()(const Array< T > &arr) const