OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include "Algebra/Array1D.h"
#include "Utilities/SizeError.h"
#include <algorithm>
#include <numeric>
#include <cmath>
#include <functional>
Go to the source code of this file.
Classes | |
class | Vector< T > |
Vector. More... | |
Functions | |
template<class T > | |
Vector< T > | operator+ (const Vector< T > &, const Vector< T > &) |
Vector addition. More... | |
template<class T > | |
Vector< T > | operator- (const Vector< T > &, const Vector< T > &) |
Vector subtraction. More... | |
template<class T > | |
T | operator* (const Vector< T > &, const Vector< T > &) |
Vector dot product. More... | |
template<class T > | |
Vector< T > | operator* (const Vector< T > &, const T &) |
Vector multiplied by scalar. More... | |
template<class T > | |
Vector< T > | operator/ (const Vector< T > &, const T &) |
Vector divided by scalar. More... | |
template<class T > | |
Vector< T > | operator* (const T &, const Vector< T > &) |
Scalar multiplied by vector. More... | |
template<class T > | |
T | euclidean_norm (const Vector< T > &) |
Euclidean norm. More... | |
template<class T > | |
T | scaled_norm (const Array1D< T > D, const Vector< T > &V) |
Euclidean norm of diagonal matrix D times vector V. More... | |
Euclidean norm.
Definition at line 243 of file Vector.h.
References Array1D< T >::begin(), Array1D< T >::end(), sqrt(), and T.
Referenced by CollimatorPhysics::applyRandomRotation(), Degrader::applyToReferenceParticle(), Monitor::applyToReferenceParticle(), Bend2D::calculateBendAngle(), PluginElement::changeWidth(), BeamStripping::checkBeamStripping(), OpalBeamline::compute3DLattice(), CollimatorPhysics::computeCoulombScattering(), CollimatorPhysics::computeEnergyLoss(), OrbitThreader::computeMaximalImplicitDrift(), Probe::doCheck(), CCollimator::doFinaliseCheck(), DragtFinnMap< N >::dynamicFixedPoint(), mslang::euclidean_norm2D(), Simplex::execute(), Migrad::execute(), LMDif::execute(), ParallelSliceTracker::execute(), ParallelTTracker::execute(), ThickTracker::execute(), ParallelSliceTracker::findStartPosition(), ParallelTTracker::findStartPosition(), CavityAutophaser::getPhaseAtMaxEnergy(), Bend2D::getSurfaceMesh(), Util::getTaitBryantAngles(), Bend2D::inMagnetCentralRegion(), OrbitThreader::integrate(), OrbitThreader::registerElement(), DragtFinnMap< N >::staticFixedPoint(), ParallelTTracker::updateRefToLabCSTrafo(), and ParallelTTracker::writePhaseSpace().
Vector dot product.
Definition at line 214 of file Vector.h.
References Array1D< T >::begin(), Array1D< T >::end(), and T.
Scalar multiplied by vector.
Definition at line 235 of file Vector.h.
References Array1D< T >::begin(), and Array1D< T >::end().
Vector addition.
Definition at line 194 of file Vector.h.
References Array1D< T >::begin(), Array1D< T >::end(), and Array1D< T >::size().
Vector subtraction.
Definition at line 203 of file Vector.h.
References Array1D< T >::begin(), Array1D< T >::end(), and Array1D< T >::size().
Euclidean norm of diagonal matrix D times vector V.
Definition at line 248 of file Vector.h.
References Array1D< T >::size(), sqrt(), sum(), and T.
Referenced by LMDif::execute(), and LMDif::lmpar().