casa
$Rev:20696$
|
Non-templated base class for templated Array class. More...
#include <ArrayBase.h>
Public Member Functions | |
ArrayBase () | |
ArrayBase (const IPosition &shape) | |
Create an array of the given shape, i.e. | |
ArrayBase (const ArrayBase &other) | |
Copy constructor. | |
ArrayBase & | operator= (const ArrayBase &) |
Assignment. | |
virtual | ~ArrayBase () |
Destructor. | |
uInt | ndim () const |
The dimensionality of this array. | |
size_t | nelements () const |
How many elements does this array have? Product of all axis lengths. | |
size_t | size () const |
Bool | empty () const |
Is the array empty (i.e. | |
Bool | contiguousStorage () const |
Are the array data contiguous? If they are not contiguous, getStorage (see below) needs to make a copy. | |
virtual Bool | ok () const |
Check to see if the Array is consistent. | |
const IPosition & | shape () const |
The length of each axis. | |
IPosition | endPosition () const |
A convenience function: endPosition(i) = shape(i) - 1; i.e. | |
const IPosition & | steps () const |
Return steps to be made if stepping one element in a dimension. | |
virtual ArrayPositionIterator * | makeIterator (uInt byDim) |
Create an ArrayIterator object of the correct type. | |
virtual ArrayBase * | getSection (const Slicer &) |
Get a reference to a section of an array. | |
void | validateConformance (const ArrayBase &) const |
Various helper functions. | |
void | validateIndex (const IPosition &) const |
void | validateIndex (uInt index) const |
void | validateIndex (uInt index1, uInt index2) const |
void | validateIndex (uInt index1, uInt index2, uInt index3) const |
Static Public Member Functions | |
static uInt | arrayVersion () |
Array version for major change (used by ArrayIO). | |
Protected Member Functions | |
void | baseCopy (const ArrayBase &that) |
Bool | isStorageContiguous () const |
Determine if the storage of a subset is contiguous. | |
void | checkVectorShape () |
Check if the shape of a vector is correct. | |
void | checkMatrixShape () |
Check if the shape of a matrix is correct. | |
void | checkCubeShape () |
Check if the shape of a cube is correct. | |
void | baseReform (ArrayBase &tmp, const IPosition &shape) const |
Reform the array to a shape with the same nr of elements. | |
void | baseNonDegenerate (const ArrayBase &other, const IPosition &ignoreAxes) |
Remove the degenerate axes from the Array object. | |
void | baseAddDegenerate (ArrayBase &, uInt numAxes) |
These member functions return an Array reference with the specified number of extra axes, all of length one, appended to the end of the Array. | |
size_t | makeSubset (ArrayBase &out, const IPosition &b, const IPosition &e, const IPosition &i) |
Make a subset of an array. | |
Bool | conform2 (const ArrayBase &other) const |
Are the shapes identical? | |
void | baseMakeSteps () |
Make the indexing step sizes. | |
void | throwNdimVector () |
Throw expection if vector dimensionality is incorrect. | |
Bool | copyVectorHelper (const ArrayBase &other) |
Helper function for templated Vector class. | |
Protected Attributes | |
size_t | nels_p |
uInt | ndimen_p |
Dimensionality of the array. | |
Bool | contiguous_p |
Are the data contiguous? | |
IPosition | length_p |
Used to hold the shape, increment into the underlying storage and originalLength of the array. | |
IPosition | inc_p |
IPosition | originalLength_p |
IPosition | steps_p |
Used to hold the step to next element in each dimension. |
Non-templated base class for templated Array class.
ArrayBase is only used to factor out common code from the templated Array class.
Definition at line 72 of file ArrayBase.h.
casa::ArrayBase::ArrayBase | ( | const IPosition & | shape | ) | [explicit] |
Create an array of the given shape, i.e.
after construction array.ndim() == shape.nelements() and array.shape() == shape. The origin of the Array is zero.
casa::ArrayBase::ArrayBase | ( | const ArrayBase & | other | ) |
Copy constructor.
virtual casa::ArrayBase::~ArrayBase | ( | ) | [virtual] |
Destructor.
static uInt casa::ArrayBase::arrayVersion | ( | ) | [inline, static] |
Array version for major change (used by ArrayIO).
enum did not work properly with cfront 3.0.1), so replaced by a static inline function. Users won't normally use this.
Definition at line 136 of file ArrayBase.h.
void casa::ArrayBase::baseAddDegenerate | ( | ArrayBase & | , |
uInt | numAxes | ||
) | [protected] |
void casa::ArrayBase::baseCopy | ( | const ArrayBase & | that | ) | [inline, protected] |
Definition at line 151 of file ArrayBase.h.
References operator=().
void casa::ArrayBase::baseMakeSteps | ( | ) | [protected] |
Make the indexing step sizes.
Referenced by casa::Array< ArgType >::makeSteps().
void casa::ArrayBase::baseNonDegenerate | ( | const ArrayBase & | other, |
const IPosition & | ignoreAxes | ||
) | [protected] |
Remove the degenerate axes from the Array object.
This is the implementation of the nonDegenerate functions. It has a different name to be able to make it virtual without having the "hide virtual function" message when compiling derived classes.
void casa::ArrayBase::baseReform | ( | ArrayBase & | tmp, |
const IPosition & | shape | ||
) | const [protected] |
Reform the array to a shape with the same nr of elements.
void casa::ArrayBase::checkCubeShape | ( | ) | [protected] |
Check if the shape of a cube is correct.
Adjust it if smaller.
void casa::ArrayBase::checkMatrixShape | ( | ) | [protected] |
Check if the shape of a matrix is correct.
Adjust it if smaller.
void casa::ArrayBase::checkVectorShape | ( | ) | [protected] |
Check if the shape of a vector is correct.
If possible, adjust if not. It is possible if at most one axis has length > 1.
Bool casa::ArrayBase::conform2 | ( | const ArrayBase & | other | ) | const [inline, protected] |
Are the shapes identical?
Definition at line 191 of file ArrayBase.h.
References casa::IPosition::isEqual(), and length_p.
Referenced by casa::Array< ArgType >::conform().
Bool casa::ArrayBase::contiguousStorage | ( | ) | const [inline] |
Are the array data contiguous? If they are not contiguous, getStorage
(see below) needs to make a copy.
Definition at line 110 of file ArrayBase.h.
References contiguous_p.
Referenced by casa::ArrayMath_global_functions_Array_mathematical_operations::arrayContTransform(), and casa::ArrayMath_global_functions_Array_mathematical_operations::arrayTransformInPlace().
Bool casa::ArrayBase::copyVectorHelper | ( | const ArrayBase & | other | ) | [protected] |
Helper function for templated Vector class.
It returns if this and other are conformant.
Bool casa::ArrayBase::empty | ( | ) | const [inline] |
Is the array empty (i.e.
no elements)?
Definition at line 104 of file ArrayBase.h.
References nels_p.
Referenced by casa::vi::VisBuffer2Adapter::uvw().
IPosition casa::ArrayBase::endPosition | ( | ) | const |
virtual ArrayBase* casa::ArrayBase::getSection | ( | const Slicer & | ) | [virtual] |
Get a reference to a section of an array.
This is the same as Array<T>::operator(), but without having to know the exact template type.
ArrayBase throws an exception.
Reimplemented in casa::Array< T >, casa::Array< CountedPtr< FTMachine > >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base > >, casa::Array< Cube< Bool > >, casa::Array< MeasComet * >, casa::Array< MS::PredefinedColumns >, casa::Array< Quantum< Double > >, casa::Array< CountedPtr< SIImageStore > >, casa::Array< CountedPtr< CFBuffer > >, casa::Array< GaussianBeam >, casa::Array< VBStore >, casa::Array< typename FunctionTraits< Float >::ArgType >, casa::Array< Slicer >, casa::Array< TT >, casa::Array< AnnotationBase::Keyword >, casa::Array< CountedPtr< ComponentList > >, casa::Array< CountedPtr< VisibilityResamplerBase > >, casa::Array< CFStore >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base > >, casa::Array< NewCalTable >, casa::Array< Matrix< Int > >, casa::Array< double >, casa::Array< Float >, casa::Array< FuncTypes >, casa::Array< PagedImage< Complex > * >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base > >, casa::Array< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base >, casa::Array< typename FunctionTraits< Double >::DiffType >, casa::Array< RigidVector< Double, 3 > >, casa::Array< typename FunctionTraits< T >::BaseType >, casa::Array< recordType >, casa::Array< AsciiAnnotationFileLine >, casa::Array< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base >, casa::Array< MeasurementSet >, casa::Array< QString >, casa::Array< RigidVector< Double, 2 > >, casa::Array< float >, casa::Array< Unit >, casa::Array< Double >, casa::Array< typename FunctionTraits< DComplex >::ArgType >, casa::Array< typename FunctionTraits< Double >::ArgType >, casa::Array< MPosition >, casa::Array< MDirection >, casa::Array< Vector< Int > >, casa::Array< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base > >, casa::Array< int >, casa::Array< AutoDiff< T > >, casa::Array< CountedPtr< Array< DComplex > > >, casa::Array< Vector< uInt > >, casa::Array< typename FunctionTraits< Double >::BaseType >, casa::Array< GaussianSpectralElement >, casa::Array< Short >, casa::Array< uChar >, casa::Array< MFrequency >, casa::Array< Quantity >, casa::Array< Vector< Double > >, casa::Array< String >, casa::Array< MVFrequency >, casa::Array< Range >, casa::Array< Cube< Float > >, casa::Array< Int >, casa::Array< MVAngle >, casa::Array< dbus::variant >, casa::Array< boost::dynamic_bitset<> >, casa::Array< std::pair< Quantity, Quantity > >, casa::Array< Int64 >, casa::Array< Char >, casa::Array< CStokesVector >, casa::Array< RegularFile >, casa::Array< Flux< Double > >, casa::Array< DComplex >, casa::Array< Type >, casa::Array< AutoDiffA< T > >, casa::Array< Vector< MVFrequency > >, casa::Array< Vector< String > >, casa::Array< Vector< Range > >, casa::Array< RORecordFieldPtr< Double > >, casa::Array< FitterType >, casa::Array< FType >, casa::Array< CountedPtr< CFCell > >, casa::Array< Bool >, casa::Array< CountedPtr< ResamplerWorklet > >, casa::Array< SquareMatrix< Complex, 2 > >, casa::Array< CTTimeInterp1 * >, casa::Array< BeamCalcGeometry >, casa::Array< Complex >, casa::Array< IPosition >, casa::Array< AutoDiff< Double > >, casa::Array< CountedPtr< Matrix< Double > > >, casa::Array< bool >, casa::Array< typename FunctionTraits< T >::DiffType >, casa::Array< Stokes::StokesTypes >, casa::Array< SAS >, casa::Array< Vector< FuncTypes > >, casa::Array< typename FunctionTraits< Float >::DiffType >, casa::Array< MSSelection >, casa::Array< typename NumericTraits< FType >::ConjugateType >, casa::Array< typename NumericTraits< Float >::ConjugateType >, casa::Array< Slice >, casa::Array< Vector< Slice > >, casa::Array< ImageFit1D< Float > >, casa::Array< typename NumericTraits< Double >::ConjugateType >, casa::Array< Vector< Complex > >, casa::Array< AxisType >, casa::Array< ALMAAntennaType >, casa::Array< CountedPtr< LFBase > >, casa::Array< typename FunctionTraits< Float >::BaseType >, casa::Array< AutoDiff< Float > >, casa::Array< typename NumericTraits< T >::ConjugateType >, casa::Array< MEpoch >, casa::Array< RigidVector< Int, 2 > >, casa::Array< MVBaseline >, casa::Array< Vector< MVAngle > >, casa::Array< CountedPtr< Array< Complex > > >, casa::Array< uInt64 >, casa::Array< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base >, casa::Array< typename FunctionTraits< DComplex >::BaseType >, casa::Array< casa::Double >, casa::Array< typename FunctionTraits< T >::ArgType >, casa::Array< uInt >, casa::Array< Domain >, casa::Array< typename FunctionTraits< DComplex >::DiffType >, casa::Array< RFlagWord >, casa::Array< MVTime >, and casa::Array< ArgType >.
Bool casa::ArrayBase::isStorageContiguous | ( | ) | const [protected] |
Determine if the storage of a subset is contiguous.
virtual ArrayPositionIterator* casa::ArrayBase::makeIterator | ( | uInt | byDim | ) | [virtual] |
Create an ArrayIterator object of the correct type.
This is implemented in the derived Array classes.
ArrayBase throws an exception.
Reimplemented in casa::Array< T >, casa::Array< CountedPtr< FTMachine > >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base > >, casa::Array< Cube< Bool > >, casa::Array< MeasComet * >, casa::Array< MS::PredefinedColumns >, casa::Array< Quantum< Double > >, casa::Array< CountedPtr< SIImageStore > >, casa::Array< CountedPtr< CFBuffer > >, casa::Array< GaussianBeam >, casa::Array< VBStore >, casa::Array< typename FunctionTraits< Float >::ArgType >, casa::Array< Slicer >, casa::Array< TT >, casa::Array< AnnotationBase::Keyword >, casa::Array< CountedPtr< ComponentList > >, casa::Array< CountedPtr< VisibilityResamplerBase > >, casa::Array< CFStore >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base > >, casa::Array< NewCalTable >, casa::Array< Matrix< Int > >, casa::Array< double >, casa::Array< Float >, casa::Array< FuncTypes >, casa::Array< PagedImage< Complex > * >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base > >, casa::Array< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base >, casa::Array< typename FunctionTraits< Double >::DiffType >, casa::Array< RigidVector< Double, 3 > >, casa::Array< typename FunctionTraits< T >::BaseType >, casa::Array< recordType >, casa::Array< AsciiAnnotationFileLine >, casa::Array< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base >, casa::Array< MeasurementSet >, casa::Array< QString >, casa::Array< RigidVector< Double, 2 > >, casa::Array< float >, casa::Array< Unit >, casa::Array< Double >, casa::Array< typename FunctionTraits< DComplex >::ArgType >, casa::Array< typename FunctionTraits< Double >::ArgType >, casa::Array< MPosition >, casa::Array< MDirection >, casa::Array< Vector< Int > >, casa::Array< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base > >, casa::Array< int >, casa::Array< AutoDiff< T > >, casa::Array< CountedPtr< Array< DComplex > > >, casa::Array< Vector< uInt > >, casa::Array< typename FunctionTraits< Double >::BaseType >, casa::Array< GaussianSpectralElement >, casa::Array< Short >, casa::Array< uChar >, casa::Array< MFrequency >, casa::Array< Quantity >, casa::Array< Vector< Double > >, casa::Array< String >, casa::Array< MVFrequency >, casa::Array< Range >, casa::Array< Cube< Float > >, casa::Array< Int >, casa::Array< MVAngle >, casa::Array< dbus::variant >, casa::Array< boost::dynamic_bitset<> >, casa::Array< std::pair< Quantity, Quantity > >, casa::Array< Int64 >, casa::Array< Char >, casa::Array< CStokesVector >, casa::Array< RegularFile >, casa::Array< Flux< Double > >, casa::Array< DComplex >, casa::Array< Type >, casa::Array< AutoDiffA< T > >, casa::Array< Vector< MVFrequency > >, casa::Array< Vector< String > >, casa::Array< Vector< Range > >, casa::Array< RORecordFieldPtr< Double > >, casa::Array< FitterType >, casa::Array< FType >, casa::Array< CountedPtr< CFCell > >, casa::Array< Bool >, casa::Array< CountedPtr< ResamplerWorklet > >, casa::Array< SquareMatrix< Complex, 2 > >, casa::Array< CTTimeInterp1 * >, casa::Array< BeamCalcGeometry >, casa::Array< Complex >, casa::Array< IPosition >, casa::Array< AutoDiff< Double > >, casa::Array< CountedPtr< Matrix< Double > > >, casa::Array< bool >, casa::Array< typename FunctionTraits< T >::DiffType >, casa::Array< Stokes::StokesTypes >, casa::Array< SAS >, casa::Array< Vector< FuncTypes > >, casa::Array< typename FunctionTraits< Float >::DiffType >, casa::Array< MSSelection >, casa::Array< typename NumericTraits< FType >::ConjugateType >, casa::Array< typename NumericTraits< Float >::ConjugateType >, casa::Array< Slice >, casa::Array< Vector< Slice > >, casa::Array< ImageFit1D< Float > >, casa::Array< typename NumericTraits< Double >::ConjugateType >, casa::Array< Vector< Complex > >, casa::Array< AxisType >, casa::Array< ALMAAntennaType >, casa::Array< CountedPtr< LFBase > >, casa::Array< typename FunctionTraits< Float >::BaseType >, casa::Array< AutoDiff< Float > >, casa::Array< typename NumericTraits< T >::ConjugateType >, casa::Array< MEpoch >, casa::Array< RigidVector< Int, 2 > >, casa::Array< MVBaseline >, casa::Array< Vector< MVAngle > >, casa::Array< CountedPtr< Array< Complex > > >, casa::Array< uInt64 >, casa::Array< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base >, casa::Array< typename FunctionTraits< DComplex >::BaseType >, casa::Array< casa::Double >, casa::Array< typename FunctionTraits< T >::ArgType >, casa::Array< uInt >, casa::Array< Domain >, casa::Array< typename FunctionTraits< DComplex >::DiffType >, casa::Array< RFlagWord >, casa::Array< MVTime >, and casa::Array< ArgType >.
size_t casa::ArrayBase::makeSubset | ( | ArrayBase & | out, |
const IPosition & | b, | ||
const IPosition & | e, | ||
const IPosition & | i | ||
) | [protected] |
Make a subset of an array.
It checks if start,end,incr are within the array limits. It returns the offset of the subset in the array.
uInt casa::ArrayBase::ndim | ( | ) | const [inline] |
The dimensionality of this array.
Definition at line 92 of file ArrayBase.h.
References ndimen_p.
Referenced by casa::Array< ArgType >::setEndIter().
size_t casa::ArrayBase::nelements | ( | ) | const [inline] |
How many elements does this array have? Product of all axis lengths.
Definition at line 97 of file ArrayBase.h.
References nels_p.
Referenced by casa::dbus::af(), casa::areEQ(), casa::VisibilityIteratorReadImpl::CJones(), casa::TabVecRep< T >::conform(), casa::MSSelection::getDDIDList(), casa::SpectralElement::getOrder(), casa::MSSelection::getStateObsModeList(), casa::MSAsRaster::ind_(), casa::ColumnsIndexArray::isUnique(), casa::ColumnsIndex::isUnique(), casa::WorldCanvas::ColorIndexedImage_::maskValid(), casa::ArrayMath_global_functions_Array_mathematical_operations::median(), casa::ArrayMath_global_functions_Array_mathematical_operations::medianInPlace(), casa::CalInterpolation::nAxes(), casa::LCSlicer::ndim(), casa::ArrayLogical_global_functions_Array_logical_operations::ntrue(), casa::MSAsRaster::MSpos_::p0(), and casa::Vector< ArgType >::resize().
virtual Bool casa::ArrayBase::ok | ( | ) | const [virtual] |
Check to see if the Array is consistent.
This is about the same thing as checking for invariants. If AIPS_DEBUG is defined, this is invoked after construction and on entry to most member functions.
Reimplemented in casa::Array< T >, casa::Array< CountedPtr< FTMachine > >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base > >, casa::Array< Cube< Bool > >, casa::Array< MeasComet * >, casa::Array< MS::PredefinedColumns >, casa::Array< Quantum< Double > >, casa::Array< CountedPtr< SIImageStore > >, casa::Array< CountedPtr< CFBuffer > >, casa::Array< GaussianBeam >, casa::Array< VBStore >, casa::Array< typename FunctionTraits< Float >::ArgType >, casa::Array< Slicer >, casa::Array< TT >, casa::Array< AnnotationBase::Keyword >, casa::Array< CountedPtr< ComponentList > >, casa::Array< CountedPtr< VisibilityResamplerBase > >, casa::Array< CFStore >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base > >, casa::Array< NewCalTable >, casa::Array< Matrix< Int > >, casa::Array< double >, casa::Array< Float >, casa::Array< FuncTypes >, casa::Array< PagedImage< Complex > * >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base > >, casa::Array< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base >, casa::Array< typename FunctionTraits< Double >::DiffType >, casa::Array< RigidVector< Double, 3 > >, casa::Array< typename FunctionTraits< T >::BaseType >, casa::Array< recordType >, casa::Array< AsciiAnnotationFileLine >, casa::Array< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base >, casa::Array< MeasurementSet >, casa::Array< QString >, casa::Array< RigidVector< Double, 2 > >, casa::Array< float >, casa::Array< Unit >, casa::Array< Double >, casa::Array< typename FunctionTraits< DComplex >::ArgType >, casa::Array< typename FunctionTraits< Double >::ArgType >, casa::Array< MPosition >, casa::Array< MDirection >, casa::Array< Vector< Int > >, casa::Array< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base >, casa::Array< Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base > >, casa::Array< int >, casa::Array< AutoDiff< T > >, casa::Array< CountedPtr< Array< DComplex > > >, casa::Array< Vector< uInt > >, casa::Array< typename FunctionTraits< Double >::BaseType >, casa::Array< GaussianSpectralElement >, casa::Array< Short >, casa::Array< uChar >, casa::Array< MFrequency >, casa::Array< Quantity >, casa::Array< Vector< Double > >, casa::Array< String >, casa::Array< MVFrequency >, casa::Array< Range >, casa::Array< Cube< Float > >, casa::Array< Int >, casa::Array< MVAngle >, casa::Array< dbus::variant >, casa::Array< boost::dynamic_bitset<> >, casa::Array< std::pair< Quantity, Quantity > >, casa::Array< Int64 >, casa::Array< Char >, casa::Array< CStokesVector >, casa::Array< RegularFile >, casa::Array< Flux< Double > >, casa::Array< DComplex >, casa::Array< Type >, casa::Array< AutoDiffA< T > >, casa::Array< Vector< MVFrequency > >, casa::Array< Vector< String > >, casa::Array< Vector< Range > >, casa::Array< RORecordFieldPtr< Double > >, casa::Array< FitterType >, casa::Array< FType >, casa::Array< CountedPtr< CFCell > >, casa::Array< Bool >, casa::Array< CountedPtr< ResamplerWorklet > >, casa::Array< SquareMatrix< Complex, 2 > >, casa::Array< CTTimeInterp1 * >, casa::Array< BeamCalcGeometry >, casa::Array< Complex >, casa::Array< IPosition >, casa::Array< AutoDiff< Double > >, casa::Array< CountedPtr< Matrix< Double > > >, casa::Array< bool >, casa::Array< typename FunctionTraits< T >::DiffType >, casa::Array< Stokes::StokesTypes >, casa::Array< SAS >, casa::Array< Vector< FuncTypes > >, casa::Array< typename FunctionTraits< Float >::DiffType >, casa::Array< MSSelection >, casa::Array< typename NumericTraits< FType >::ConjugateType >, casa::Array< typename NumericTraits< Float >::ConjugateType >, casa::Array< Slice >, casa::Array< Vector< Slice > >, casa::Array< ImageFit1D< Float > >, casa::Array< typename NumericTraits< Double >::ConjugateType >, casa::Array< Vector< Complex > >, casa::Array< AxisType >, casa::Array< ALMAAntennaType >, casa::Array< CountedPtr< LFBase > >, casa::Array< typename FunctionTraits< Float >::BaseType >, casa::Array< AutoDiff< Float > >, casa::Array< typename NumericTraits< T >::ConjugateType >, casa::Array< MEpoch >, casa::Array< RigidVector< Int, 2 > >, casa::Array< MVBaseline >, casa::Array< Vector< MVAngle > >, casa::Array< CountedPtr< Array< Complex > > >, casa::Array< uInt64 >, casa::Array< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base >, casa::Array< typename FunctionTraits< DComplex >::BaseType >, casa::Array< casa::Double >, casa::Array< typename FunctionTraits< T >::ArgType >, casa::Array< uInt >, casa::Array< Domain >, casa::Array< typename FunctionTraits< DComplex >::DiffType >, casa::Array< RFlagWord >, casa::Array< MVTime >, casa::Array< ArgType >, casa::Matrix< T >, casa::Matrix< CountedPtr< CFBuffer > >, casa::Matrix< VBStore >, casa::Matrix< Float >, casa::Matrix< Double >, casa::Matrix< String >, casa::Matrix< Int >, casa::Matrix< boost::dynamic_bitset<> >, casa::Matrix< CStokesVector >, casa::Matrix< FType >, casa::Matrix< Bool >, casa::Matrix< SquareMatrix< Complex, 2 > >, casa::Matrix< Complex >, casa::Matrix< uInt >, casa::Cube< T >, casa::Cube< Cube< Bool > >, casa::Cube< Float >, casa::Cube< Double >, casa::Cube< RigidVector< Double, 2 > >, casa::Cube< Cube< Float > >, casa::Cube< Int >, casa::Cube< DComplex >, casa::Cube< Bool >, casa::Cube< CountedPtr< CFCell > >, casa::Cube< Complex >, casa::Vector< T >, casa::Vector< CountedPtr< FTMachine > >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base > >, casa::Vector< MeasComet * >, casa::Vector< MS::PredefinedColumns >, casa::Vector< Quantum< Double > >, casa::Vector< CountedPtr< SIImageStore > >, casa::Vector< CountedPtr< CFBuffer > >, casa::Vector< typename FunctionTraits< Float >::ArgType >, casa::Vector< Slicer >, casa::Vector< AnnotationBase::Keyword >, casa::Vector< CountedPtr< ComponentList > >, casa::Vector< CountedPtr< VisibilityResamplerBase > >, casa::Vector< CFStore >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base > >, casa::Vector< Matrix< Int > >, casa::Vector< double >, casa::Vector< Float >, casa::Vector< FuncTypes >, casa::Vector< PagedImage< Complex > * >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base > >, casa::Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base >, casa::Vector< typename FunctionTraits< Double >::DiffType >, casa::Vector< RigidVector< Double, 3 > >, casa::Vector< typename FunctionTraits< T >::BaseType >, casa::Vector< AsciiAnnotationFileLine >, casa::Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base >, casa::Vector< MeasurementSet >, casa::Vector< QString >, casa::Vector< float >, casa::Vector< Unit >, casa::Vector< Double >, casa::Vector< typename FunctionTraits< DComplex >::ArgType >, casa::Vector< typename FunctionTraits< Double >::ArgType >, casa::Vector< MPosition >, casa::Vector< MDirection >, casa::Vector< Vector< Int > >, casa::Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base > >, casa::Vector< int >, casa::Vector< AutoDiff< T > >, casa::Vector< CountedPtr< Array< DComplex > > >, casa::Vector< Vector< uInt > >, casa::Vector< typename FunctionTraits< Double >::BaseType >, casa::Vector< GaussianSpectralElement >, casa::Vector< MFrequency >, casa::Vector< Quantity >, casa::Vector< Vector< Double > >, casa::Vector< String >, casa::Vector< MVFrequency >, casa::Vector< Range >, casa::Vector< Int >, casa::Vector< MVAngle >, casa::Vector< dbus::variant >, casa::Vector< Int64 >, casa::Vector< std::pair< Quantity, Quantity > >, casa::Vector< DComplex >, casa::Vector< RegularFile >, casa::Vector< Flux< Double > >, casa::Vector< Type >, casa::Vector< AutoDiffA< T > >, casa::Vector< Vector< MVFrequency > >, casa::Vector< Vector< String > >, casa::Vector< Vector< Range > >, casa::Vector< RORecordFieldPtr< Double > >, casa::Vector< FitterType >, casa::Vector< FType >, casa::Vector< Bool >, casa::Vector< CountedPtr< ResamplerWorklet > >, casa::Vector< SquareMatrix< Complex, 2 > >, casa::Vector< BeamCalcGeometry >, casa::Vector< Complex >, casa::Vector< IPosition >, casa::Vector< AutoDiff< Double > >, casa::Vector< CountedPtr< Matrix< Double > > >, casa::Vector< bool >, casa::Vector< typename FunctionTraits< T >::DiffType >, casa::Vector< Stokes::StokesTypes >, casa::Vector< SAS >, casa::Vector< Vector< FuncTypes > >, casa::Vector< typename FunctionTraits< Float >::DiffType >, casa::Vector< MSSelection >, casa::Vector< Slice >, casa::Vector< Vector< Slice > >, casa::Vector< typename NumericTraits< Double >::ConjugateType >, casa::Vector< Vector< Complex > >, casa::Vector< AxisType >, casa::Vector< ALMAAntennaType >, casa::Vector< CountedPtr< LFBase > >, casa::Vector< typename FunctionTraits< Float >::BaseType >, casa::Vector< AutoDiff< Float > >, casa::Vector< typename NumericTraits< T >::ConjugateType >, casa::Vector< MEpoch >, casa::Vector< RigidVector< Int, 2 > >, casa::Vector< MVBaseline >, casa::Vector< Vector< MVAngle > >, casa::Vector< CountedPtr< Array< Complex > > >, casa::Vector< uInt64 >, casa::Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base >, casa::Vector< typename FunctionTraits< DComplex >::BaseType >, casa::Vector< casa::Double >, casa::Vector< typename FunctionTraits< T >::ArgType >, casa::Vector< uInt >, casa::Vector< Domain >, casa::Vector< typename FunctionTraits< DComplex >::DiffType >, casa::Vector< RFlagWord >, and casa::Vector< ArgType >.
Assignment.
Referenced by baseCopy().
const IPosition& casa::ArrayBase::shape | ( | ) | const [inline] |
The length of each axis.
Reimplemented in casa::Matrix< T >, casa::Matrix< CountedPtr< CFBuffer > >, casa::Matrix< VBStore >, casa::Matrix< Float >, casa::Matrix< Double >, casa::Matrix< String >, casa::Matrix< Int >, casa::Matrix< boost::dynamic_bitset<> >, casa::Matrix< CStokesVector >, casa::Matrix< FType >, casa::Matrix< Bool >, casa::Matrix< SquareMatrix< Complex, 2 > >, casa::Matrix< Complex >, casa::Matrix< uInt >, casa::Vector< T >, casa::Vector< CountedPtr< FTMachine > >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base > >, casa::Vector< MeasComet * >, casa::Vector< MS::PredefinedColumns >, casa::Vector< Quantum< Double > >, casa::Vector< CountedPtr< SIImageStore > >, casa::Vector< CountedPtr< CFBuffer > >, casa::Vector< typename FunctionTraits< Float >::ArgType >, casa::Vector< Slicer >, casa::Vector< AnnotationBase::Keyword >, casa::Vector< CountedPtr< ComponentList > >, casa::Vector< CountedPtr< VisibilityResamplerBase > >, casa::Vector< CFStore >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base > >, casa::Vector< Matrix< Int > >, casa::Vector< double >, casa::Vector< Float >, casa::Vector< FuncTypes >, casa::Vector< PagedImage< Complex > * >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base > >, casa::Vector< typename LSQTraits< typename FunctionTraits< Double >::BaseType >::base >, casa::Vector< typename FunctionTraits< Double >::DiffType >, casa::Vector< RigidVector< Double, 3 > >, casa::Vector< typename FunctionTraits< T >::BaseType >, casa::Vector< AsciiAnnotationFileLine >, casa::Vector< typename LSQTraits< typename FunctionTraits< Float >::BaseType >::base >, casa::Vector< MeasurementSet >, casa::Vector< QString >, casa::Vector< float >, casa::Vector< Unit >, casa::Vector< Double >, casa::Vector< typename FunctionTraits< DComplex >::ArgType >, casa::Vector< typename FunctionTraits< Double >::ArgType >, casa::Vector< MPosition >, casa::Vector< MDirection >, casa::Vector< Vector< Int > >, casa::Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base >, casa::Vector< Vector< typename LSQTraits< typename FunctionTraits< T >::BaseType >::base > >, casa::Vector< int >, casa::Vector< AutoDiff< T > >, casa::Vector< CountedPtr< Array< DComplex > > >, casa::Vector< Vector< uInt > >, casa::Vector< typename FunctionTraits< Double >::BaseType >, casa::Vector< GaussianSpectralElement >, casa::Vector< MFrequency >, casa::Vector< Quantity >, casa::Vector< Vector< Double > >, casa::Vector< String >, casa::Vector< MVFrequency >, casa::Vector< Range >, casa::Vector< Int >, casa::Vector< MVAngle >, casa::Vector< dbus::variant >, casa::Vector< Int64 >, casa::Vector< std::pair< Quantity, Quantity > >, casa::Vector< DComplex >, casa::Vector< RegularFile >, casa::Vector< Flux< Double > >, casa::Vector< Type >, casa::Vector< AutoDiffA< T > >, casa::Vector< Vector< MVFrequency > >, casa::Vector< Vector< String > >, casa::Vector< Vector< Range > >, casa::Vector< RORecordFieldPtr< Double > >, casa::Vector< FitterType >, casa::Vector< FType >, casa::Vector< Bool >, casa::Vector< CountedPtr< ResamplerWorklet > >, casa::Vector< SquareMatrix< Complex, 2 > >, casa::Vector< BeamCalcGeometry >, casa::Vector< Complex >, casa::Vector< IPosition >, casa::Vector< AutoDiff< Double > >, casa::Vector< CountedPtr< Matrix< Double > > >, casa::Vector< bool >, casa::Vector< typename FunctionTraits< T >::DiffType >, casa::Vector< Stokes::StokesTypes >, casa::Vector< SAS >, casa::Vector< Vector< FuncTypes > >, casa::Vector< typename FunctionTraits< Float >::DiffType >, casa::Vector< MSSelection >, casa::Vector< Slice >, casa::Vector< Vector< Slice > >, casa::Vector< typename NumericTraits< Double >::ConjugateType >, casa::Vector< Vector< Complex > >, casa::Vector< AxisType >, casa::Vector< ALMAAntennaType >, casa::Vector< CountedPtr< LFBase > >, casa::Vector< typename FunctionTraits< Float >::BaseType >, casa::Vector< AutoDiff< Float > >, casa::Vector< typename NumericTraits< T >::ConjugateType >, casa::Vector< MEpoch >, casa::Vector< RigidVector< Int, 2 > >, casa::Vector< MVBaseline >, casa::Vector< Vector< MVAngle > >, casa::Vector< CountedPtr< Array< Complex > > >, casa::Vector< uInt64 >, casa::Vector< typename LSQTraits< typename FunctionTraits< DComplex >::BaseType >::base >, casa::Vector< typename FunctionTraits< DComplex >::BaseType >, casa::Vector< casa::Double >, casa::Vector< typename FunctionTraits< T >::ArgType >, casa::Vector< uInt >, casa::Vector< Domain >, casa::Vector< typename FunctionTraits< DComplex >::DiffType >, casa::Vector< RFlagWord >, casa::Vector< ArgType >, casa::Cube< T >, casa::Cube< Cube< Bool > >, casa::Cube< Float >, casa::Cube< Double >, casa::Cube< RigidVector< Double, 2 > >, casa::Cube< Cube< Float > >, casa::Cube< Int >, casa::Cube< DComplex >, casa::Cube< Bool >, casa::Cube< CountedPtr< CFCell > >, and casa::Cube< Complex >.
Definition at line 119 of file ArrayBase.h.
References length_p.
Referenced by casa::ArrayMath_global_functions_Array_mathematical_operations::checkArrayShapes(), casa::SynthesisUtils::SETVEC(), and casa::HDF5Record::writeArr().
size_t casa::ArrayBase::size | ( | ) | const [inline] |
Definition at line 99 of file ArrayBase.h.
References nels_p.
Referenced by casa::ArrayLogical_global_functions_Array_logical_operations::allSame(), casa::PMS::fromIntVector(), casa::FITSImgParser::has_qualityimg(), casa::RSUtils::pixelToScreen(), casa::RSUtils::screenToPixel(), casa::RSUtils::screenToWorld(), and casa::RegionShape::screenToWorld().
const IPosition& casa::ArrayBase::steps | ( | ) | const [inline] |
Return steps to be made if stepping one element in a dimension.
This is the 'physical' step, thus it also works correctly for non-contiguous arrays. E.g. data() + steps(0)
gives the second element of the first axis.
Definition at line 130 of file ArrayBase.h.
References steps_p.
void casa::ArrayBase::throwNdimVector | ( | ) | [protected] |
Throw expection if vector dimensionality is incorrect.
void casa::ArrayBase::validateConformance | ( | const ArrayBase & | ) | const |
Various helper functions.
void casa::ArrayBase::validateIndex | ( | const IPosition & | ) | const |
void casa::ArrayBase::validateIndex | ( | uInt | index | ) | const |
void casa::ArrayBase::validateIndex | ( | uInt | index1, |
uInt | index2 | ||
) | const |
void casa::ArrayBase::validateIndex | ( | uInt | index1, |
uInt | index2, | ||
uInt | index3 | ||
) | const |
Bool casa::ArrayBase::contiguous_p [protected] |
Are the data contiguous?
Definition at line 220 of file ArrayBase.h.
Referenced by casa::Cube< Complex >::at(), contiguousStorage(), casa::Matrix< uInt >::operator()(), casa::Vector< ArgType >::operator[](), and casa::Array< ArgType >::setEndIter().
IPosition casa::ArrayBase::inc_p [protected] |
Definition at line 223 of file ArrayBase.h.
Referenced by casa::Vector< ArgType >::operator()(), and casa::Vector< ArgType >::operator[]().
IPosition casa::ArrayBase::length_p [protected] |
Used to hold the shape, increment into the underlying storage and originalLength of the array.
Definition at line 223 of file ArrayBase.h.
Referenced by conform2(), casa::Cube< Complex >::ncolumn(), casa::Matrix< uInt >::ncolumn(), casa::Cube< Complex >::nplane(), casa::Cube< Complex >::nrow(), casa::Matrix< uInt >::nrow(), casa::Array< ArgType >::setEndIter(), shape(), casa::Cube< Complex >::shape(), casa::Vector< ArgType >::shape(), and casa::Matrix< uInt >::shape().
uInt casa::ArrayBase::ndimen_p [protected] |
size_t casa::ArrayBase::nels_p [protected] |
Number of elements in the array. Cached rather than computed.
Definition at line 216 of file ArrayBase.h.
Referenced by empty(), nelements(), casa::Array< ArgType >::setEndIter(), and size().
IPosition casa::ArrayBase::originalLength_p [protected] |
Definition at line 223 of file ArrayBase.h.
IPosition casa::ArrayBase::steps_p [protected] |
Used to hold the step to next element in each dimension.
Definition at line 225 of file ArrayBase.h.
Referenced by casa::Array< ArgType >::setEndIter(), and steps().