OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Classes | Functions
ReductionLoc.h File Reference
#include "PETE/IpplExpressions.h"
#include "Field/ReductionLoc.hpp"
Include dependency graph for ReductionLoc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NDIndex< Dim >
 
class  BareFieldIterator< T, D >
 
class  IndexedBareFieldIterator< T, D >
 
struct  FindLocation< D >
 

Functions

template<class T , class CompOp , class AccOp , unsigned D>
T::PETE_Return_t Reduction (const PETE_Expr< T > &const_expr, CompOp comp_op, AccOp acc_op, NDIndex< D > &loc)
 
template<class T , class C , unsigned int D>
int for_each (const IndexedBareFieldIterator< T, D > &expr, FindLocation< D > &find_loc, C)
 
template<class T , class C , unsigned int D>
int for_each (const BareFieldIterator< T, D > &expr, FindLocation< D > &find_loc, C)
 
template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t min (const PETE_Expr< T > &expr, NDIndex< D > &loc)
 
template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t max (const PETE_Expr< T > &expr, NDIndex< D > &loc)
 

Function Documentation

template<class T , class C , unsigned int D>
int for_each ( const IndexedBareFieldIterator< T, D > &  expr,
FindLocation< D > &  find_loc,
 
)
inline

Definition at line 47 of file ReductionLoc.h.

References BareFieldIterator< T, D >::GetCurrentLocation(), and FindLocation< D >::Loc.

Here is the call graph for this function:

template<class T , class C , unsigned int D>
int for_each ( const BareFieldIterator< T, D > &  expr,
FindLocation< D > &  find_loc,
 
)
inline

Definition at line 58 of file ReductionLoc.h.

References BareFieldIterator< T, D >::GetCurrentLocation(), and FindLocation< D >::Loc.

Here is the call graph for this function:

template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t max ( const PETE_Expr< T > &  expr,
NDIndex< D > &  loc 
)
inline

Definition at line 123 of file ReductionLoc.h.

References PETE_Expr< WrappedExpr >::PETE_unwrap(), and Reduction().

Referenced by Expressions::AbsMax(), FromFile::allocate(), ParticleBConds< double, Dim >::apply(), PatchBC< T, D, M, C >::apply(), Tracker::applyDrift(), Tracker::applyThinMultipole(), PartBunchBase< T, Dim >::boundp(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), PartBunchBase< T, Dim >::calcBeamParameters(), PartBunchBase< T, Dim >::calcBeamParametersInitial(), MultiBunchHandler::calcBunchBeamParameters(), calcEurekaDomain(), PartBins::calcGlobalExtrema(), CalcParallelInterpolationDomain(), CalcParallelPeriodicDomain(), DragtFinnMap< N >::catenateZero(), centeredInitialize(), Individual::checkBounds(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), OrbitThreader::computeMaximalImplicitDrift(), ParallelTTracker::computeParticleMatterInteraction(), AmrBoxLib::computeSelfFields_cycl(), LossDataSink::computeSetStatistics(), Distribution::createDistributionFromFile(), SimulatedBinaryCrossover< T >::crossover(), BlendCrossover< T >::crossover(), Migrad::derivatives(), FTps< T, N >::divide(), ParallelTTracker::doBinaryRepartition(), AmrParticleBase< PLayout >::domainMapping(), Septum::doPreCheck(), Stripper::doPreCheck(), Probe::doPreCheck(), CCollimator::doPreCheck(), CCollimator::doSetGeom(), Distribution::emitParticles(), SampleCmd::execute(), TrackCmd::execute(), Dynamic::execute(), Static::execute(), Option::execute(), Simplex::execute(), Migrad::execute(), LMDif::execute(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), FTps< T, N >::filter(), ClosedOrbitFinder< Value_type, Size_type, Stepper >::findOrbit(), FM3DMagnetoStaticExtended::FM3DMagnetoStaticExtended(), HashPairBuilder< PBase >::for_each(), HashPairBuilderPeriodic< PBase >::for_each(), HashPairBuilderPeriodicParallel< PBase >::for_each(), Migrad::forcePositiveDefinite(), FunctionFaceBCApply(), Distribution::generateBinomial(), Rotation3D::getAxis(), MSplit::getBETXMAX(), Aperture::getBETXMAX(), MSplit::getBETYMAX(), Aperture::getBETYMAX(), Cyclotron::getdiffs(), PartBunch::getEExtrema(), AmrBoxLib::getEExtrema(), Util::getLengthString(), AmrParticleBase< PLayout >::getLocalBounds_m(), OrbitThreader::getMaxDesignEnergy(), FVps< T, N >::getMaxOrder(), Bend2D::getOutline(), TrueCondition< T, Dim >::getRange(), IndexMap::getRange(), FVps< T, N >::getTopOrder(), Vps< T >::getTopOrder(), TBeamline< T >::getTransform(), Migrad::hessenberg(), FDoubleEigen< N >::hqr2(), DoubleEigen::hqr2(), BoundaryGeometry::initialize(), InterpolationFaceBCApply(), LinearExtrapolateFaceBCApply(), Migrad::lineSearch(), CorrectionBase::listCorrectors(), CorrectionBase::listMonitors(), LMDif::lmpar(), Expressions::Max(), Expressions::Maxa(), PartBunchBase< T, Dim >::maximumAmplitudes(), BoxLibLayout< T, Dim >::MaxRefRatio(), ParallelCyclotronTracker::MtsTracker(), Individual::new_gene(), LaserProfile::normalizeProfileData(), MaxNormRadialPeak::operator()(), operator+(), Tps< T >::operator+=(), operator-(), Tps< T >::operator-=(), FTps< T, N >::operator==(), OrbitThreader::OrbitThreader(), PartBins::PartBins(), PeriodicFaceBCApply(), PoissonBracket(), IndexMap::print(), Object::printHelp(), Twiss::put(), Quaternion::Quaternion(), FM1DProfile2::readMap(), rkActivateBuffer(), EnvelopeBunch::runStats(), SampleCmd::SampleCmd(), OpalBeamline::save3DLattice(), FTps< T, N >::scaleMonomials(), FlexibleCollimator::setDescription(), PluginElement::setDimensions(), ParallelTTracker::setOptionalVariables(), FieldLayout< Dim >::setup(), Micado::solve(), LossDataSink::splitSets(), UniformCartesian< D, T >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), FVps< T, N >::substitute(), FTps< T, N >::substitute(), Migrad::symmetricEigen(), Util::toStringWithThousandSep(), OpalMonitor::update(), ThickMapper::visitRBend(), ThickMapper::visitSBend(), Voxel::Voxel(), AmrYtWriter::writeBunch(), H5PartWrapperForPT::writeStepData(), H5PartWrapperForPC::writeStepData(), and EnvelopeBunch::zHead().

Here is the call graph for this function:

template<class T , unsigned D>
T::PETE_Expr_t::PETE_Return_t min ( const PETE_Expr< T > &  expr,
NDIndex< D > &  loc 
)
inline

Definition at line 95 of file ReductionLoc.h.

References PETE_Expr< WrappedExpr >::PETE_unwrap(), and Reduction().

Referenced by AddGuardCells(), IndexMap::almostEqual(), ParticleBConds< double, Dim >::apply(), PatchBC< T, D, M, C >::apply(), FTpsData< N >::build(), calcEurekaDomain(), CalcParallelInterpolationDomain(), CalcParallelPeriodicDomain(), SpecializedGreensFunction< 3 >::calculate(), Individual::checkBounds(), ComponentFunctionFaceBCApply(), ComponentLinearExtrapolateFaceBCApply(), OrbitThreader::computeMaximalImplicitDrift(), Mesher::computeMinimumAngle(), ParallelTTracker::computeParticleMatterInteraction(), cos(), cosh(), SimulatedBinaryCrossover< T >::crossover(), BlendCrossover< T >::crossover(), FTps< T, N >::divide(), Probe::doPreCheck(), CCollimator::doPreCheck(), erf(), ParallelTTracker::evenlyDistributeParticles(), SampleCmd::execute(), Migrad::execute(), LMDif::execute(), exp(), ExpMap(), ExtrapolateAndZeroFaceBCApply(), ExtrapolateFaceBCApply(), Tps< T >::filter(), FTps< T, N >::filter(), FunctionFaceBCApply(), PartBunchBase< T, Dim >::get_bounds(), Aperture::getAPERTMIN(), Cyclotron::getdiffs(), PartBunch::getEExtrema(), AmrBoxLib::getEExtrema(), AmrParticleBase< PLayout >::getGlobalBounds_m(), FVps< T, N >::getMinOrder(), IndexMap::getRange(), FTps< T, N >::getSubstOrders(), TBeamline< T >::getTransform(), FVps< T, N >::getTruncOrder(), Vps< T >::getTruncOrder(), Tps< T >::getTruncOrder(), FTps< T, N >::grow(), Tps< T >::integral(), FTps< T, N >::integral(), FFTBoxPoissonSolver::integratedGreensFunction(), InterpolationFaceBCApply(), FVps< T, N >::inverse(), Tps< T >::inverse(), FTps< T, N >::inverse(), LinearExtrapolateFaceBCApply(), Migrad::lineSearch(), log(), Matrix< T >::Matrix(), Expressions::Min(), Tps< T >::multiply(), FTps< T, N >::multiply(), Tps< T >::multiplyVariable(), FTps< T, N >::multiplyVariable(), FVps< T, N >::myInverse(), Individual::new_gene(), FVps< T, N >::operator*(), operator+(), Matrix< T >::operator+=(), Tps< T >::operator+=(), operator-(), Matrix< T >::operator-=(), Tps< T >::operator-=(), Tps< T >::operator==(), FTps< T, N >::operator==(), OptimizeCmd::OptimizeCmd(), OrbitThreader::OrbitThreader(), PeriodicFaceBCApply(), PoissonBracket(), Timing::print(), QRSolver::QRSolver(), IndexMap::query(), AmrBoxLib::regrid(), OpalSimulation::run(), run_opal(), EnvelopeBunch::runStats(), SampleCmd::SampleCmd(), Tps< T >::scaleMonomials(), FTps< T, N >::scaleMonomials(), FlexibleCollimator::setDescription(), PluginElement::setDimensions(), Bend2D::setupFringeWidths(), FFTBoxPoissonSolver::shiftedIntGreensFunction(), sin(), sinh(), sqrt(), UniformCartesian< D, T >::storeSpacingFields(), Cartesian< Dim, MFLOAT >::storeSpacingFields(), VpsMap< T >::substitute(), FVps< T, N >::substitute(), FTps< T, N >::substitute(), OpalBeamline::switchElements(), OrbitThreader::trackBack(), TransportMap< T, N >::TransportMap(), ParallelSliceTracker::updateReferenceParticle(), ParallelTTracker::updateReferenceParticle(), Voxel::Voxel(), AmrYtWriter::writeBunch(), H5PartWrapperForPT::writeStepData(), H5PartWrapperForPC::writeStepData(), and EnvelopeBunch::zTail().

Here is the call graph for this function:

template<class T , class CompOp , class AccOp , unsigned D>
T::PETE_Return_t Reduction ( const PETE_Expr< T > &  const_expr,
CompOp  comp_op,
AccOp  acc_op,
NDIndex< D > &  loc 
)