casacore
|
Mathematical operations for MArray objects. More...
#include <MArrayMath.h>
Classes | |
class | MAvdevFunc |
class | MFractileFunc |
class | MMaxFunc |
class | MMeanFunc |
class | MMedianFunc |
class | MMinFunc |
class | MProductFunc |
class | MRmsFunc |
class | MStddevFunc |
class | MSumFunc |
Define functors to perform a reduction function on an MArray object. More... | |
class | MSumSqrFunc |
class | MVarianceFunc |
Public Member Functions | |
template<typename T > | |
MArray< T > | partialArrayMath (const MArray< T > &a, const IPosition &collapseAxes, const MArrayFunctorBase< T > &funcObj) |
Do partial reduction of an MArray object. More... | |
template<typename T , typename RES > | |
void | partialArrayMath (MArray< RES > &res, const MArray< T > &a, const IPosition &collapseAxes, const MArrayFunctorBase< T, RES > &funcObj) |
template<typename T > | |
MArray< T > | boxedArrayMath (const MArray< T > &a, const IPosition &boxShape, const MArrayFunctorBase< T > &funcObj) |
template<typename T , typename RES > | |
void | boxedArrayMath (MArray< RES > &res, const MArray< T > &array, const IPosition &boxShape, const MArrayFunctorBase< T, RES > &funcObj) |
template<typename T > | |
MArray< T > | slidingArrayMath (const MArray< T > &array, const IPosition &halfBoxShape, const MArrayFunctorBase< T > &funcObj, Bool fillEdge=True) |
template<typename T , typename RES > | |
void | slidingArrayMath (MArray< RES > &res, const MArray< T > &array, const IPosition &halfBoxShape, const MArrayFunctorBase< T, RES > &funcObj, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | operator+ (const MArray< T > &left, const MArray< T > &right) |
Add, subtract, etc. More... | |
template<typename T > | |
MArray< T > | operator- (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator* (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator/ (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator% (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator& (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator| (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator^ (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator+ (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator- (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator* (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator/ (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator% (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator& (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator| (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator^ (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | operator+ (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator- (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator* (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator/ (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator% (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator& (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator| (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator^ (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | operator- (const MArray< T > &a) |
Negate the elements in an array. More... | |
template<typename T > | |
MArray< T > | operator~ (const MArray< T > &a) |
Take the complement of the elements in an array. More... | |
template<typename T > | |
MArray< T > | sin (const MArray< T > &a) |
Perform mathematical function on each element in an array. More... | |
template<typename T > | |
MArray< T > | cos (const MArray< T > &a) |
template<typename T > | |
MArray< T > | tan (const MArray< T > &a) |
template<typename T > | |
MArray< T > | sinh (const MArray< T > &a) |
template<typename T > | |
MArray< T > | cosh (const MArray< T > &a) |
template<typename T > | |
MArray< T > | tanh (const MArray< T > &a) |
template<typename T > | |
MArray< T > | asin (const MArray< T > &a) |
template<typename T > | |
MArray< T > | acos (const MArray< T > &a) |
template<typename T > | |
MArray< T > | atan (const MArray< T > &a) |
template<typename T > | |
MArray< T > | atan2 (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | atan2 (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | atan2 (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | exp (const MArray< T > &a) |
template<typename T > | |
MArray< T > | log (const MArray< T > &a) |
template<typename T > | |
MArray< T > | log10 (const MArray< T > &a) |
template<typename T > | |
MArray< T > | sqrt (const MArray< T > &a) |
template<typename T > | |
MArray< T > | square (const MArray< T > &a) |
template<typename T > | |
MArray< T > | cube (const MArray< T > &a) |
template<typename T > | |
MArray< T > | pow (const MArray< T > &a, const MArray< T > &exp) |
template<typename T > | |
MArray< T > | pow (const T &a, const MArray< T > &exp) |
template<typename T > | |
MArray< T > | pow (const MArray< T > &a, const Double &exp) |
template<typename T > | |
MArray< T > | min (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | min (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | min (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | max (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | max (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | max (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | ceil (const MArray< T > &a) |
template<typename T > | |
MArray< T > | floor (const MArray< T > &a) |
template<typename T > | |
MArray< T > | round (const MArray< T > &a) |
template<typename T > | |
MArray< T > | sign (const MArray< T > &a) |
template<typename T > | |
MArray< T > | abs (const MArray< T > &a) |
template<typename T > | |
MArray< T > | fabs (const MArray< T > &a) |
template<typename T > | |
MArray< T > | fmod (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | fmod (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | fmod (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | floormod (const MArray< T > &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | floormod (const MArray< T > &left, const T &right) |
template<typename T > | |
MArray< T > | floormod (const T &left, const MArray< T > &right) |
template<typename T > | |
MArray< T > | conj (const MArray< T > &arr) |
MArray< Float > | real (const MArray< Complex > &arr) |
MArray< Float > | imag (const MArray< Complex > &arr) |
MArray< Float > | amplitude (const MArray< Complex > &arr) |
MArray< Float > | phase (const MArray< Complex > &arr) |
MArray< Double > | real (const MArray< DComplex > &arr) |
MArray< Double > | imag (const MArray< DComplex > &arr) |
MArray< Double > | amplitude (const MArray< DComplex > &arr) |
MArray< Double > | phase (const MArray< DComplex > &arr) |
template<typename T > | |
T | sum (const MArray< T > &a) |
Reduce an array to a scalar using the unmasked elements only. More... | |
template<typename T > | |
T | sumsqr (const MArray< T > &a) |
template<typename T > | |
T | product (const MArray< T > &a) |
template<typename T > | |
T | min (const MArray< T > &a) |
template<typename T > | |
T | max (const MArray< T > &a) |
template<typename T > | |
T | mean (const MArray< T > &a) |
template<typename T > | |
T | variance (const MArray< T > &a, T mean, uInt ddof) |
template<typename T > | |
T | variance (const MArray< T > &a, uInt ddof) |
template<typename T > | |
T | stddev (const MArray< T > &a, uInt ddof) |
template<typename T > | |
T | stddev (const MArray< T > &a, T mean, uInt ddof) |
template<typename T > | |
T | avdev (const MArray< T > &a, T mean) |
template<typename T > | |
T | avdev (const MArray< T > &a) |
template<typename T > | |
T | rms (const MArray< T > &a) |
template<typename T > | |
T | median (const MArray< T > &a, Bool sorted, Bool takeEvenMean, Bool inPlace=False) |
template<typename T > | |
T | median (const MArray< T > &a) |
template<typename T > | |
T | median (const MArray< T > &a, Bool sorted) |
template<typename T > | |
T | medianInPlace (const MArray< T > &a, Bool sorted=False) |
template<typename T > | |
T | fractile (const MArray< T > &a, Float fraction, Bool sorted=False, Bool inPlace=False) |
Return the fractile of an array. More... | |
template<typename T > | |
MArray< T > | partialSums (const MArray< T > &a, const IPosition &collapseAxes) |
Get partial sums, etc. More... | |
template<typename T > | |
MArray< T > | partialSumSqrs (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialProducts (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialMins (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialMaxs (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialMeans (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialVariances (const MArray< T > &a, const IPosition &collapseAxes, uInt ddof) |
template<typename T > | |
MArray< T > | partialStddevs (const MArray< T > &a, const IPosition &collapseAxes, uInt ddof) |
template<typename T > | |
MArray< T > | partialAvdevs (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialRmss (const MArray< T > &a, const IPosition &collapseAxes) |
template<typename T > | |
MArray< T > | partialMedians (const MArray< T > &a, const IPosition &collapseAxes, Bool takeEvenMean=False, Bool inPlace=False) |
template<typename T > | |
MArray< T > | partialFractiles (const MArray< T > &a, const IPosition &collapseAxes, Float fraction, Bool inPlace=False) |
template<typename T > | |
MArray< T > | slidingSums (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
Get sliding sums. More... | |
template<typename T > | |
MArray< T > | slidingSumSqrs (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingProducts (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingMins (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingMaxs (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingMeans (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingVariances (const MArray< T > &a, const IPosition &halfBoxSize, uInt ddof, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingStddevs (const MArray< T > &a, const IPosition &halfBoxSize, uInt ddof, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingAvdevs (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingRmss (const MArray< T > &a, const IPosition &halfBoxSize, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingMedians (const MArray< T > &a, const IPosition &halfBoxSize, Bool takeEvenMean=False, Bool inPlace=False, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | slidingFractiles (const MArray< T > &a, const IPosition &halfBoxSize, Float fraction, Bool inPlace=False, Bool fillEdge=True) |
template<typename T > | |
MArray< T > | boxedSums (const MArray< T > &a, const IPosition &boxSize) |
Get boxed sums. More... | |
template<typename T > | |
MArray< T > | boxedSumSqrs (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedProducts (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedMins (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedMaxs (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedMeans (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedVariances (const MArray< T > &a, const IPosition &boxSize, uInt ddof) |
template<typename T > | |
MArray< T > | boxedStddevs (const MArray< T > &a, const IPosition &boxSize, uInt ddof) |
template<typename T > | |
MArray< T > | boxedAvdevs (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedRmss (const MArray< T > &a, const IPosition &boxSize) |
template<typename T > | |
MArray< T > | boxedMedians (const MArray< T > &a, const IPosition &boxSize, Bool takeEvenMean=False, Bool inPlace=False) |
template<typename T > | |
MArray< T > | boxedFractiles (const MArray< T > &a, const IPosition &boxSize, Float fraction, Bool inPlace=False) |
Mathematical operations for MArray objects.
These functions perform element by element mathematical operations on optionally masked arrays and/or scalars. If two arrays are used, the arrays must conform, except for allEQ which returns False if the arrays do not conform.
The functions in this file can be divided in 3 groups:
Definition at line 96 of file MArrayMath.h.
|
inline |
Definition at line 640 of file MArrayMath.h.
References casacore::abs(), and casacore::MArray< T >::array().
|
inline |
Definition at line 536 of file MArrayMath.h.
References casacore::acos(), and casacore::MArray< T >::array().
|
inline |
Definition at line 685 of file MArrayMath.h.
References casacore::amplitude(), and casacore::MArray< T >::array().
|
inline |
Definition at line 697 of file MArrayMath.h.
References casacore::amplitude(), and casacore::MArray< T >::array().
|
inline |
Definition at line 532 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::asin().
|
inline |
Definition at line 540 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::atan().
|
inline |
Definition at line 544 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::atan2(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 550 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::atan2().
|
inline |
Definition at line 554 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::atan2().
|
inline |
Definition at line 815 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::avdev(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), casacore::mean(), casacore::MArrayBase::nvalid(), and casacore::sum().
|
inline |
Definition at line 829 of file MArrayMath.h.
References casacore::avdev(), and casacore::mean().
|
inline |
Definition at line 251 of file MArrayMath.h.
References casacore::boxedArrayMath().
|
inline |
Loop through all data and assemble as needed.
Definition at line 260 of file MArrayMath.h.
References AlwaysAssert, casacore::MArray< T >::array(), casacore::Array< T, Alloc >::data(), casacore::False, casacore::fillBoxedShape(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), casacore::mask(), casacore::ndim(), casacore::MArray< T >::resize(), casacore::MArrayBase::setMask(), casacore::MArrayBase::shape(), casacore::shape(), and casacore::True.
|
inline |
Definition at line 1298 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1336 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::False, casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1252 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1263 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1320 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::False, casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1241 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1230 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1309 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1286 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Get boxed sums.
Definition at line 1208 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1219 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1274 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::boxedArrayMath(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 624 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::ceil().
|
inline |
Definition at line 676 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::conj().
|
inline |
Definition at line 512 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::cos().
|
inline |
Definition at line 524 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::cosh().
|
inline |
Definition at line 578 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::cube().
|
inline |
Definition at line 558 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::exp().
|
inline |
Definition at line 644 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 628 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::floor().
|
inline |
Definition at line 662 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), casacore::arrays_internal::floormod(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 668 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::arrays_internal::floormod().
|
inline |
Definition at line 672 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::arrays_internal::floormod().
|
inline |
Definition at line 648 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), casacore::fmod(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 654 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::fmod().
|
inline |
Definition at line 658 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::fmod().
|
inline |
Return the fractile of an array.
It returns the value at the given fraction of the array. A fraction of 0.5 is the same as the median, be it that no mean of the two middle elements is taken if the array has an even nr of elements. It uses kthLargest if the array is not sorted yet.
The normal fractile function needs at least one element, so shortcut.
Definition at line 878 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::empty(), casacore::MArray< T >::flatten(), casacore::fractile(), casacore::MArrayBase::hasMask(), casacore::SHARE, casacore::MArrayBase::size(), casacore::IPosition::storage(), and casacore::True.
|
inline |
Definition at line 682 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::imag().
|
inline |
Definition at line 694 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::imag().
|
inline |
Definition at line 562 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::log().
|
inline |
Definition at line 566 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::log10().
|
inline |
Definition at line 610 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), casacore::MArrayBase::isNull(), and casacore::max().
|
inline |
Definition at line 616 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::max().
|
inline |
Definition at line 620 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::max().
|
inline |
Definition at line 761 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), and casacore::max().
|
inline |
Definition at line 774 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::mean(), casacore::MArrayBase::nvalid(), and casacore::sum().
|
inline |
The normal median function needs at least one element, so shortcut.
Median can be taken in place.
Definition at line 849 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::empty(), casacore::MArray< T >::flatten(), casacore::MArrayBase::hasMask(), casacore::median(), casacore::SHARE, casacore::MArrayBase::size(), casacore::IPosition::storage(), and casacore::True.
|
inline |
Definition at line 863 of file MArrayMath.h.
References casacore::False, casacore::median(), and casacore::MArrayBase::size().
|
inline |
Definition at line 866 of file MArrayMath.h.
References casacore::False, casacore::median(), and casacore::MArrayBase::nelements().
|
inline |
Definition at line 869 of file MArrayMath.h.
References casacore::median(), casacore::MArrayBase::nelements(), and casacore::True.
|
inline |
Definition at line 596 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), casacore::MArrayBase::isNull(), and casacore::min().
|
inline |
Definition at line 602 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::min().
|
inline |
Definition at line 606 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::min().
|
inline |
Definition at line 748 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), and casacore::min().
|
inline |
Definition at line 407 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 447 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 479 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 413 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 451 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 483 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 395 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 439 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 471 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Add, subtract, etc.
2 arrays or array and scalar.
Definition at line 383 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 431 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 463 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 389 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 435 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 467 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Negate the elements in an array.
Definition at line 497 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 401 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 443 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 475 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 425 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 459 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 491 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 419 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 455 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Definition at line 487 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Take the complement of the elements in an array.
Definition at line 502 of file MArrayMath.h.
References casacore::MArray< T >::array().
|
inline |
Do partial reduction of an MArray object.
I.e., perform the operation on a subset of the array axes (the collapse axes).
Definition at line 188 of file MArrayMath.h.
|
inline |
This can also be done as boxedArrayMath with a removeDegenerate thereafter.
It should be possible to parallelize this loop. Determine nr of iteration steps and iterate over that as an int. Do not use Array slicing, because that is not thread-safe. Instead create ArraySTLIterator directly from Array and blc,trc, so funcObj should accept iterators instead of Array. However, ArraySTLIterator needs the sliced array, not original. Maybe keep ref of itsSteps in iterator instead of array. Hmm, tricky for median and fractile. Better to make Array copy ctor thread-safe (thus use boost shared_ptr).
IPosition shape(a.array().shape().removeAxes (collapseAxes));
Definition at line 197 of file MArrayMath.h.
References AlwaysAssert, casacore::MArray< T >::array(), casacore::Array< T, Alloc >::data(), casacore::False, casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), casacore::mask(), casacore::IPosition::removeAxes(), casacore::MArray< T >::resize(), casacore::MArrayBase::setMask(), casacore::ArrayBase::shape(), casacore::shape(), and casacore::True.
|
inline |
Definition at line 986 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1023 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::False, casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 940 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 951 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 1008 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::False, casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 929 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 918 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 997 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 974 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Get partial sums, etc.
Definition at line 895 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 906 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 962 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::isNull().
|
inline |
Definition at line 688 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::phase().
|
inline |
Definition at line 700 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::phase().
|
inline |
Definition at line 582 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::combineMask(), casacore::MArrayBase::isNull(), and casacore::pow().
|
inline |
Definition at line 588 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::pow().
|
inline |
Definition at line 592 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::exp(), and casacore::pow().
|
inline |
Definition at line 735 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), and casacore::product().
|
inline |
Definition at line 679 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::real().
|
inline |
Definition at line 691 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::real().
|
inline |
Definition at line 835 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), casacore::MArrayBase::nvalid(), casacore::rms(), casacore::sqrt(), and casacore::sum().
|
inline |
Definition at line 632 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::round().
|
inline |
Definition at line 636 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::sign().
|
inline |
Perform mathematical function on each element in an array.
Definition at line 508 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::sin().
|
inline |
Definition at line 520 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::sinh().
|
inline |
Definition at line 307 of file MArrayMath.h.
References casacore::slidingArrayMath().
|
inline |
Loop through all data and assemble as needed.
Definition at line 317 of file MArrayMath.h.
References AlwaysAssert, casacore::MArray< T >::array(), casacore::False, casacore::fillSlidingShape(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), casacore::mask(), casacore::ndim(), casacore::MArray< T >::resize(), casacore::MArrayBase::setMask(), casacore::MArrayBase::shape(), casacore::shape(), and casacore::True.
|
inline |
Definition at line 1142 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1185 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::False, casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1090 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1102 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1166 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::False, casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1078 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1066 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1154 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1128 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Get sliding sums.
Definition at line 1042 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1054 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 1114 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::isNull(), and casacore::slidingArrayMath().
|
inline |
Definition at line 570 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::sqrt().
|
inline |
Definition at line 574 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::square().
|
inline |
Definition at line 803 of file MArrayMath.h.
References casacore::sqrt(), and casacore::variance().
|
inline |
Definition at line 809 of file MArrayMath.h.
References casacore::sqrt(), and casacore::variance().
|
inline |
Reduce an array to a scalar using the unmasked elements only.
The result is 0 if there are no unmasked elements.
Definition at line 709 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), and casacore::sum().
|
inline |
Definition at line 722 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), and casacore::MArrayBase::mask().
|
inline |
Definition at line 516 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::tan().
|
inline |
Definition at line 528 of file MArrayMath.h.
References casacore::MArray< T >::array(), and casacore::tanh().
|
inline |
Definition at line 783 of file MArrayMath.h.
References casacore::MArray< T >::array(), casacore::Array< T, Alloc >::begin(), casacore::Array< T, Alloc >::cbegin(), casacore::Array< T, Alloc >::cend(), casacore::ArrayBase::contiguousStorage(), casacore::Array< T, Alloc >::end(), casacore::MArrayBase::hasMask(), casacore::MArrayBase::mask(), casacore::mean(), casacore::MArrayBase::nvalid(), and casacore::sum().
|
inline |
Definition at line 797 of file MArrayMath.h.
References casacore::mean(), and casacore::variance().