GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GVector.cpp File Reference

Vector class implementation. More...

#include "GVector.hpp"
#include "GTools.hpp"

Go to the source code of this file.

Macros

#define G_OP_ADD   "GVector::operator+=(GVector&)"
 
#define G_OP_SUB   "GVector::operator-=(GVector&)"
 
#define G_AT   "GVector::at(int&)"
 
#define G_CROSS   "cross(GVector&, GVector&)"
 
#define G_SCALAR   "operator*(GVector&, GVector&)"
 

Functions

GVector cross (const GVector &a, const GVector &b)
 Vector cross product. More...
 
double operator* (const GVector &a, const GVector &b)
 Vector scalar product. More...
 
double norm (const GVector &vector)
 Computes vector norm. More...
 
double min (const GVector &vector)
 Computes minimum vector element. More...
 
double max (const GVector &vector)
 Computes maximum vector element. More...
 
double sum (const GVector &vector)
 Computes vector sum. More...
 
GVector perm (const GVector &vector, const int *p)
 Computes vector permutation. More...
 
GVector iperm (const GVector &vector, const int *p)
 Computes vector inverse permutation. More...
 
GVector acos (const GVector &vector)
 Computes arccos of vector elements. More...
 
GVector acosh (const GVector &vector)
 Computes acosh of vector elements. More...
 
GVector asin (const GVector &vector)
 Computes arcsin of vector elements. More...
 
GVector asinh (const GVector &vector)
 Computes asinh of vector elements. More...
 
GVector atan (const GVector &vector)
 Computes arctan of vector elements. More...
 
GVector atanh (const GVector &vector)
 Computes atanh of vector elements. More...
 
GVector cos (const GVector &vector)
 Computes cosine of vector elements. More...
 
GVector cosh (const GVector &vector)
 Computes cosh of vector elements. More...
 
GVector exp (const GVector &vector)
 Computes exponential of vector elements. More...
 
GVector abs (const GVector &vector)
 Computes absolute of vector elements. More...
 
GVector log (const GVector &vector)
 Computes natural logarithm of vector elements. More...
 
GVector log10 (const GVector &vector)
 Computes base10 logarithm of vector elements. More...
 
GVector sin (const GVector &vector)
 Computes sine of vector elements. More...
 
GVector sinh (const GVector &vector)
 Computes sinh of vector elements. More...
 
GVector sqrt (const GVector &vector)
 Computes square root of vector elements. More...
 
GVector tan (const GVector &vector)
 Computes tangens of vector elements. More...
 
GVector tanh (const GVector &vector)
 Computes tanh of vector elements. More...
 
GVector pow (const GVector &vector, const double &power)
 Computes tanh of vector elements. More...
 

Detailed Description

Vector class implementation.

Author
Juergen Knoedlseder

Definition in file GVector.cpp.

Macro Definition Documentation

#define G_AT   "GVector::at(int&)"

Definition at line 38 of file GVector.cpp.

Referenced by GVector::at().

#define G_CROSS   "cross(GVector&, GVector&)"

Definition at line 39 of file GVector.cpp.

Referenced by cross().

#define G_OP_ADD   "GVector::operator+=(GVector&)"

Definition at line 36 of file GVector.cpp.

Referenced by GVector::operator+=().

#define G_OP_SUB   "GVector::operator-=(GVector&)"

Definition at line 37 of file GVector.cpp.

Referenced by GVector::operator-=().

#define G_SCALAR   "operator*(GVector&, GVector&)"

Definition at line 40 of file GVector.cpp.

Referenced by operator*().

Function Documentation

GVector abs ( const GVector vector)

Computes absolute of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the absolute of every element.

Definition at line 1163 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GMatrixSymmetric::abs(), GMatrix::abs(), GMatrixSparse::abs(), abs(), GIntegral::adaptive_simpson(), GIntegral::adaptive_simpson_aux(), GFitsTable::alloc_column(), GCTAOnOffObservation::arf_rad_max(), GWcs::cel_set(), GCOMDri::compute_dre(), GCTAPsf2D::containment_radius(), gammalib::cosd(), gammalib::erf(), gammalib::erfinv(), GOptimizerPar::error(), GCOMIaq::response_kernel::eval(), GIntegral::gauss_kronrod(), GObservations::likelihood::hessian(), GOptimizerLM::iteration(), GWcs::lin_matinv(), GFitsTableCol::load_column_variable(), GModelSpectralFunc::mc_update(), GModelSpectralNodes::mc_update(), GDerivative::minuit2(), GSkyDir::moon(), GCOMInstChars::multi_scatter(), GCOMD1Response::operator()(), GCTACubeBackground::operator()(), GSkyMap::operator()(), operator==(), GOptimizerLM::optimize(), gammalib::plaw_energy_flux(), gammalib::plaw_integral(), gammalib::plaw_photon_flux(), GIntegral::polint(), GOptimizerLM::print(), GWcsSIN::prj_s2x(), GWcsAZP::prj_s2x(), GWcsMOL::prj_s2x(), GWcsAZP::prj_set(), GWcsAZP::prj_x2s(), GWcsAIT::prj_x2s(), GWcsMOL::prj_x2s(), GCOMInstChars::read_selfveto(), GSkyMap::read_wcs(), GIntegral::rescale_error(), gammalib::resolution(), GDerivative::ridder(), GHealpix::ring_above(), GIntegral::romberg(), GFitsTableCol::save_column_variable(), GMatrixBase::scale_elements(), GCTACubePsf::set_delta_axis(), GNodeArray::setup(), gammalib::sincosd(), gammalib::sind(), GWcs::sph_s2x(), GWcs::sph_x2s(), gammalib::str(), gammalib::tand(), GTestSuite::test_value(), GFitsTableCol::tform_binary(), GFitsTable::update_header(), GModelSpectralBrokenPlaw::update_mc_cache(), GCOMD2Response::update_response_vector(), GDerivative::value(), and GPha::write().

GVector acos ( const GVector vector)

Computes arccos of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the arccos of every element.

Definition at line 974 of file GVector.cpp.

References gammalib::acos(), GVector::m_data, and GVector::m_num.

GVector acosh ( const GVector vector)

Computes acosh of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the acosh of every element.

Definition at line 995 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by acosh().

GVector asin ( const GVector vector)

Computes arcsin of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the arcsin of every element.

Definition at line 1016 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by gammalib::acos(), asin(), gammalib::asind(), GHorizDir::celvector(), GSkyDir::celvector(), GSkyDir::euler(), GCTAPointing::instdir(), GHealpix::loc2dir(), GSkyDir::moon(), GWcsMOL::prj_x2s(), GCOMOads::read(), and GSkyDir::sun().

GVector asinh ( const GVector vector)

Computes asinh of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the asinh of every element.

Definition at line 1037 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by asinh().

GVector atan ( const GVector vector)

Computes arctan of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the arctan of every element.

Definition at line 1058 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by atan(), gammalib::atand(), GCTABackground3D::solid_angle(), GWcs::solidangle(), GSkyMap::solidangle(), GModelSpatialRadialProfileDMZhao::theta_max(), GModelSpatialRadialProfileDMBurkert::theta_max(), and GModelSpatialRadialProfileDMEinasto::theta_max().

GVector atanh ( const GVector vector)

Computes atanh of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the atanh of every element.

Definition at line 1079 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by atanh().

GVector cos ( const GVector vector)

Computes cosine of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the cosine of every element.

Definition at line 1100 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GHorizDir::celvector(), GSkyDir::celvector(), gammalib::com_energy2(), GCOMDri::compute_drx(), GCOMDri::compute_geometry(), GSkyRegionCircle::compute_solid_angle(), cos(), GSkyDir::cos_dist(), gammalib::cosd(), GHealpix::dir2pix(), GHorizDir::dist(), GSkyDir::euler(), GMatrix::eulerx(), GMatrix::eulery(), GMatrix::eulerz(), GModelSpatialEllipticalDisk::eval(), GModelSpatialEllipticalGauss::eval(), GModelSpatialRadialProfileDMBurkert::halo_kernel_los::eval(), GModelSpatialRadialProfileDMEinasto::halo_kernel_los::eval(), GModelSpatialRadialProfileDMZhao::halo_kernel_los::eval(), GCTAModelIrfBackground::npred_roi_kern_phi::eval(), GCTAModelAeffBackground::npred_roi_kern_phi::eval(), GCTAModelSpatial::npred_roi_kern_phi::eval(), cta_irf_radial_kern_rho::eval(), cta_irf_radial_kern_omega::eval(), cta_nroi_radial_kern_rho::eval(), cta_nroi_radial_kern_omega::eval(), cta_irf_elliptical_kern_rho::eval(), cta_irf_elliptical_kern_omega::eval(), cta_nroi_elliptical_kern_rho::eval(), cta_nroi_elliptical_kern_omega::eval(), cta_irf_diffuse_kern_theta::eval(), cta_irf_diffuse_kern_phi::eval(), cta_nroi_diffuse_kern_phi::eval(), cta_psf_radial_kern_rho::eval(), cta_psf_radial_kern_omega::eval(), cta_psf_radial_kern_delta::eval(), cta_psf_radial_kern_phi::eval(), cta_psf_elliptical_kern_rho::eval(), cta_psf_elliptical_kern_omega::eval(), cta_psf_diffuse_kern_delta::eval(), cta_psf_diffuse_kern_phi::eval(), GModelSpatialRadialShell::f1(), GModelSpatialRadialShell::f2(), GFft::factor7(), GModelSpatial::flux(), GTime::gast(), GCTAPointing::instdir(), GHealpix::interpolator(), GCTAResponseIrf::irf_radial(), GCOMIaq::klein_nishina_bin(), GCTABackgroundPerfTable::load(), GHealpix::loc2dir(), GCOMIaq::location_spread(), GCTABackgroundPerfTable::mc(), GModelSpatialRadialDisk::mc(), GModelSpatialEllipticalDisk::mc(), GCTAModelAeffBackground::mc(), GCTAModelRadialGauss::mc(), GCTAModelRadialPolynom::mc(), GCTAPsfTable::mc(), GCTAModelRadialProfile::mc(), GModelSpatialDiffuseConst::mc_norm(), GSkyDir::moon(), GCOMInstChars::multi_scatter(), GSkyDir::posang(), GSkyDir::precess(), GWcsMOL::prj_s2x(), GWcsSFL::prj_x2s(), GCOMInstChars::prob_D2inter(), gammalib::roi_arclength(), GHorizDir::rotate_deg(), GSkyDir::rotate_deg(), GModelSpatialDiffuseMap::set_mc_cone(), GModelSpatialDiffuseCube::set_mc_cone(), GFftWavetable::set_members(), GHealpix::set_z_phi(), gammalib::sincosd(), GCTAPointing::skydir(), GWcs::solidangle(), GSkyDir::sun(), GCOMInstChars::trans_D2(), GCOMInstChars::trans_V23(), GModelSpatialRadialDisk::update(), GModelSpatialEllipticalDisk::update(), and GModelSpatialEllipticalGauss::update().

GVector cosh ( const GVector vector)

Computes cosh of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the cosh of every element.

Definition at line 1121 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by cosh().

GVector cross ( const GVector a,
const GVector b 
)

Vector cross product.

Parameters
[in]aVector.
[in]bVector.
Returns
Vector cross product.
Exceptions
GException::vector_mismatchMismatch between vector size.

Computes the cross product between two 3-element vectors (note that the cross product is only defined for 3-element vectors).

Definition at line 762 of file GVector.cpp.

References G_CROSS, GVector::m_data, and GVector::m_num.

Referenced by GHealpix::max_pixrad(), and GWcs::solidangle().

GVector exp ( const GVector vector)

Computes exponential of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the exponential of every element.

Definition at line 1142 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GCOMDri::compute_drx(), GCTAPsf2D::containment_radius(), GModelSpatialDiffuseCube::cube_intensity(), gammalib::erf(), gammalib::erfinv(), GCTAModelSpatialGaussSpectrum::eval(), GModelSpatialRadialGauss::eval(), GModelSpatialEllipticalGauss::eval(), GModelSpectralExponential::eval(), GCTAModelRadialGauss::eval(), GModelSpectralGauss::eval(), GCTABackgroundPerfTable::integrand::eval(), GCTAModelRadialGauss::integrand::eval(), GCOMD2Response::kn_gauss_kernel::eval(), GModelSpectralExponential::flux_kern::eval(), GModelSpatialRadialProfileDMEinasto::halo_kernel_los::eval(), GModelSpectralGauss::eflux_kernel::eval(), GCOMD2Response::bkg_gauss_kernel::eval(), GModelSpectralExpPlaw::flux_kernel::eval(), GModelSpectralExpInvPlaw::flux_kernel::eval(), GModelSpectralSuperExpPlaw::flux_kernel::eval(), GCOMIaq::smearing_kernel::eval(), GModelSpectralExpPlaw::eflux_kernel::eval(), GModelSpectralExpInvPlaw::eflux_kernel::eval(), GModelSpectralSuperExpPlaw::eflux_kernel::eval(), GObservation::npred_spec_kern::eval(), exp(), GCTAEdisp2D::gaussian_array(), GCTABackgroundPerfTable::mc(), GCTAModelRadialGauss::mc(), GModelSpatialDiffuseCube::mc(), GModelSpectralFunc::mc(), GModelSpectralPlaw::mc(), GModelSpectralExpPlaw::mc(), GModelSpectralLogParabola::mc(), GModelSpectralBrokenPlaw::mc(), GModelSpectralExpInvPlaw::mc(), GModelSpectralSuperExpPlaw::mc(), GModelSpectralPlawPhotonFlux::mc(), GModelSpectralPlawEnergyFlux::mc(), GModelSpectralNodes::mc(), GCOMInstChars::multi_scatter(), GCTABackgroundPerfTable::operator()(), GCTAAeffPerfTable::operator()(), GCOMD1Response::operator()(), GCOMD2Response::operator()(), GCTAPsfPerfTable::operator()(), GCTAPsfVector::operator()(), GCTAAeffArf::operator()(), GCTABackground3D::operator()(), GCTAPsf2D::operator()(), GCTACubeBackground::operator()(), GCTAEdispPerfTable::operator()(), GArf::operator()(), GRan::poisson(), GCOMInstChars::print(), GWcsMER::prj_x2s(), GCOMInstChars::prob_D1inter(), GCOMInstChars::prob_D2inter(), GCOMInstChars::prob_no_multihit(), GModelSpatialRadialProfileGauss::profile_value(), GCTABackgroundPerfTable::rate(), GCTABackgroundPerfTable::rate_ebin(), GLATMeanPsf::set_offsets(), GSkyMap::smooth_kernel(), GCOMInstChars::trans_D1(), GCOMInstChars::trans_D2(), GCOMInstChars::trans_V1(), GCOMInstChars::trans_V23(), GModelSpectralExpPlaw::update_eval_cache(), GModelSpectralExpInvPlaw::update_eval_cache(), GModelSpectralSuperExpPlaw::update_eval_cache(), and GCOMD2Response::update_response_vector().

GVector iperm ( const GVector vector,
const int *  p 
)

Computes vector inverse permutation.

Parameters
[in]vectorVector.
[in]pPermutation array.
Returns
Inversely permuted vector.

Definition at line 948 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GMatrixSparse::cholesky_solver().

GVector log ( const GVector vector)

Computes natural logarithm of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the natural logarithm of every element.

Definition at line 1184 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GRan::chisq2(), GCTAPsfPerfTable::containment_radius(), GCTAPsfVector::containment_radius(), GLog::copy_members(), GModelSpatialDiffuseCube::cube_intensity(), GModelSpectralPlawEnergyFlux::eflux(), GModelSpectralPlawPhotonFlux::eflux(), gammalib::erfinv(), GModelSpectralExpPlaw::eval(), GModelSpectralExpInvPlaw::eval(), GModelSpectralSuperExpPlaw::eval(), GCOMD2Response::kn_gauss_kernel::eval(), GModelSpectralSmoothBrokenPlaw::eval(), GModelSpectralLogParabola::flux_kern::eval(), GRan::exp(), GModelSpatialRadialShell::f2(), GModelSpectralPlawEnergyFlux::flux(), GModelSpectralPlawPhotonFlux::flux(), gammalib::gammln(), GOptimizerLM::GOptimizerLM(), gammalib::iter_phi(), gammalib::iter_rho(), GCOMIaq::klein_nishina_integral(), GCOMInstChars::kn_cross_section(), GCTAOnOffObservation::likelihood_cstat(), GObservation::likelihood_poisson_binned(), GObservation::likelihood_poisson_unbinned(), GCTABackgroundPerfTable::load(), log(), GOptimizerLM::logger(), GModelSpatialDiffuseCube::mc(), GModelSpectralFunc::mc(), GModelSpectralPlaw::mc(), GModelSpectralExpPlaw::mc(), GModelSpectralLogParabola::mc(), GModelSpectralBrokenPlaw::mc(), GModelSpectralExpInvPlaw::mc(), GModelSpectralSuperExpPlaw::mc(), GModelSpectralPlawEnergyFlux::mc(), GModelSpectralPlawPhotonFlux::mc(), GModelSpectralNodes::mc(), GModelSpectralFunc::mc_update(), GModelSpectralNodes::mc_update(), GRan::normal(), GObservation::npred_spec(), GCTABackground3D::operator()(), GCTACubeBackground::operator()(), GArf::operator()(), operator<<(), gammalib::plaw_energy_flux(), gammalib::plaw_integral(), gammalib::plaw_photon_flux(), GRan::poisson(), GWcsMER::prj_s2x(), GCOMInstChars::prob_D1inter(), GCOMInstChars::prob_D2inter(), GCOMInstChars::prob_no_multihit(), GCOMInstChars::read_coeffs(), GModelSpectralFunc::set_cache(), GModelSpectralNodes::set_flux_cache(), GLATMeanPsf::set_offsets(), GCOMInstChars::trans_D1(), GCOMInstChars::trans_D2(), GCOMInstChars::trans_V1(), GCOMInstChars::trans_V23(), GModelSpectralPlawEnergyFlux::update(), GModelSpectralPlawPhotonFlux::update(), GModelSpectralPlaw::update_eval_cache(), GModelSpectralLogParabola::update_eval_cache(), GModelSpectralBrokenPlaw::update_eval_cache(), GModelSpectralSmoothBrokenPlaw::update_eval_cache(), GModelSpectralPlaw::update_mc_cache(), GModelSpectralExpPlaw::update_mc_cache(), GModelSpectralLogParabola::update_mc_cache(), GModelSpectralBrokenPlaw::update_mc_cache(), GModelSpectralExpInvPlaw::update_mc_cache(), GModelSpectralSuperExpPlaw::update_mc_cache(), and GCTAOnOffObservation::wstat_value().

GVector log10 ( const GVector vector)
double norm ( const GVector vector)

Computes vector norm.

Parameters
[in]vectorVector.
Returns
Vector norm.

Definition at line 821 of file GVector.cpp.

References GVector::m_data, GVector::m_num, and sqrt().

Referenced by GFft::backward(), GModelSpatialRadialProfile::cache_index(), GCOMDri::compute_drg(), GCOMDri::compute_drm_ptsrc(), GModelSpectralPlawEnergyFlux::eflux(), GModelSpectralPlawPhotonFlux::eflux(), GModelSpatialDiffuseConst::eval(), GCTACubeEdisp::fill(), GCTACubePsf::fill(), GModelSpectralPlawEnergyFlux::flux(), gammalib::gauss_integral(), GCTAOnOffObservation::GCTAOnOffObservation(), GHealpix::max_pixrad(), GCTAModelIrfBackground::mc(), GCTAModelAeffBackground::mc(), GModelSky::mc(), GModelSpatialDiffuseConst::mc_norm(), GModelSpatialPointSource::mc_norm(), GModelSpatialDiffuseMap::mc_norm(), GModelSpatialRadial::mc_norm(), GModelSpatialElliptical::mc_norm(), GModelSpectralNodes::mc_update(), GCTAOnOffObservation::N_bgd(), GCOMInstChars::ne213a_mfpath(), GLATPsfV3::normalize_psf(), GLATPsfV1::psf(), GModelSpectralConst::read(), GModelSpectralPlaw::read(), GModelSpectralExpPlaw::read(), GModelSpectralLogParabola::read(), GModelSpectralExpInvPlaw::read(), GModelSpectralSuperExpPlaw::read(), GCTAOnOffObservation::rmf_stacked(), GSkyMap::smooth_kernel(), GCTAPsfKing::update(), GModelSpectralBrokenPlaw::update_mc_cache(), GCOMD2Response::update_response_vector(), GModelSpectralPlaw::write(), GModelSpectralExpPlaw::write(), GModelSpectralLogParabola::write(), GModelSpectralBrokenPlaw::write(), GModelSpectralExpInvPlaw::write(), GModelSpectralSuperExpPlaw::write(), and GModelSpectralSmoothBrokenPlaw::write().

double operator* ( const GVector a,
const GVector b 
)

Vector scalar product.

Parameters
[in]aVector.
[in]bVector.
Returns
Product between vector a and b.
Exceptions
GException::vector_mismatchMismatch between vector size.

Returns the scalar product between vector a and b.

Definition at line 797 of file GVector.cpp.

References G_SCALAR, GVector::m_data, and GVector::m_num.

GVector perm ( const GVector vector,
const int *  p 
)

Computes vector permutation.

Parameters
[in]vectorVector.
[in]pPermutation array.
Returns
Permuted vector.

Definition at line 921 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GMatrixSparse::cholesky_solver().

GVector pow ( const GVector vector,
const double &  power 
)

Computes tanh of vector elements.

Parameters
[in]vectorVector.
[in]powerPower.
Returns
Vector containing the power of every element.

Definition at line 1332 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GLATPsfV1::base_fct(), GLATPsfV3::base_fct(), GLATPsfV1::base_int(), GLATPsfV3::base_int(), GCTAPsfKing::containment_radius(), GModelSpectralPlawEnergyFlux::eflux(), GModelSpectralPlawPhotonFlux::eflux(), gammalib::elogmean(), GCTAModelRadialProfile::eval(), GModelSpectralFunc::eval(), GModelSpectralNodes::eval(), GCOMD2Response::kn_gauss_kernel::eval(), GModelSpatialRadialProfileDMEinasto::halo_kernel_los::eval(), GModelSpectralSmoothBrokenPlaw::eval(), GModelSpatialRadialProfileDMZhao::halo_kernel_los::eval(), GCOMIaq::response_kernel::eval(), GModelSpectralExpPlaw::flux_kernel::eval(), GModelSpectralLogParabola::flux_kern::eval(), GModelSpectralExpInvPlaw::flux_kernel::eval(), GModelSpectralSuperExpPlaw::flux_kernel::eval(), GModelSpectralExpPlaw::eflux_kernel::eval(), GModelSpectralExpInvPlaw::eflux_kernel::eval(), GModelSpectralSmoothBrokenPlaw::flux_kern::eval(), GModelSpectralSuperExpPlaw::eflux_kernel::eval(), GModelSpectralPlawEnergyFlux::flux(), GModelSpectralPlawPhotonFlux::flux(), GCTABackgroundPerfTable::load(), GEnergy::log10MeV(), GCTAPsfKing::mc(), GModelSpectralLogParabola::mc(), GModelSpectralSuperExpPlaw::mc(), GModelSpectralPlawEnergyFlux::mc(), GModelSpectralPlawPhotonFlux::mc(), GModelSpectralFunc::mc_update(), GModelSpectralNodes::mc_update(), GCTAPsfKing::operator()(), gammalib::plaw_energy_flux(), gammalib::plaw_integral(), gammalib::plaw_photon_flux(), pow(), GModelSpatialDiffuseCube::print(), GCTAPsfVector::print(), GCTAPsfPerfTable::print(), GCTAEdispPerfTable::print(), GCOMInstChars::psd_correction(), GLATPsfV1::psf(), GCTAPsfKing::r_max(), GLATResponseTable::read(), GIntegral::rescale_error(), GLATPsfBase::scale_factor(), GModelSpectralFunc::set_cache(), GModelSpectralNodes::set_flux_cache(), GEnergies::set_log(), GEbounds::set_log(), GCTAPsfKing::update(), GModelSpectralPlawEnergyFlux::update(), GModelSpectralPlawPhotonFlux::update(), GModelSpectralPlaw::update_eval_cache(), GModelSpectralExpPlaw::update_eval_cache(), GModelSpectralLogParabola::update_eval_cache(), GModelSpectralBrokenPlaw::update_eval_cache(), GModelSpectralExpInvPlaw::update_eval_cache(), GModelSpectralSuperExpPlaw::update_eval_cache(), GModelSpectralSmoothBrokenPlaw::update_eval_cache(), GModelSpectralPlaw::update_mc_cache(), GModelSpectralExpPlaw::update_mc_cache(), GModelSpectralLogParabola::update_mc_cache(), GModelSpectralBrokenPlaw::update_mc_cache(), GModelSpectralExpInvPlaw::update_mc_cache(), GModelSpectralSuperExpPlaw::update_mc_cache(), GModelSpectralSmoothBrokenPlaw::update_mc_cache(), and GModelSpatialDiffuseCube::write().

GVector sin ( const GVector vector)

Computes sine of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the sine of every element.

Definition at line 1226 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GModelSpatialRadialProfile::cache_index(), GHorizDir::celvector(), GSkyDir::celvector(), GCOMDri::compute_geometry(), GCTAPsfTable::containment_radius(), GSkyDir::cos_dist(), GHorizDir::dist(), GSkyDir::euler(), GMatrix::eulerx(), GMatrix::eulery(), GMatrix::eulerz(), GModelSpatialEllipticalDisk::eval(), GModelSpatialEllipticalGauss::eval(), GModelSpatialRadialShell::eval(), GLATPsfV1::base_integrand::eval(), GLATPsfV3::base_integrand::eval(), GCTABackgroundPerfTable::integrand::eval(), cta_npsf_kern_rad_azsym::eval(), GCTAModelRadialGauss::integrand::eval(), GCTAModelRadialPolynom::integrand::eval(), GCTAModelIrfBackground::npred_roi_kern_theta::eval(), GCTAModelRadialProfile::integrand::eval(), GCTAModelAeffBackground::npred_roi_kern_theta::eval(), GCTAModelRadialAcceptance::roi_kern::eval(), GCTAModelSpatial::npred_roi_kern_theta::eval(), GCTAModelIrfBackground::npred_roi_kern_phi::eval(), GCTAModelAeffBackground::npred_roi_kern_phi::eval(), GCTAModelSpatial::npred_roi_kern_phi::eval(), GModelSpatial::circle_int_kern_rho::eval(), cta_irf_radial_kern_rho::eval(), cta_nroi_radial_kern_rho::eval(), cta_nroi_radial_kern_omega::eval(), cta_irf_elliptical_kern_rho::eval(), cta_irf_elliptical_kern_omega::eval(), cta_nroi_elliptical_kern_rho::eval(), cta_nroi_elliptical_kern_omega::eval(), cta_irf_diffuse_kern_theta::eval(), cta_irf_diffuse_kern_phi::eval(), cta_nroi_diffuse_kern_theta::eval(), cta_nroi_diffuse_kern_phi::eval(), cta_psf_radial_kern_rho::eval(), cta_psf_radial_kern_delta::eval(), cta_psf_elliptical_kern_rho::eval(), cta_psf_elliptical_kern_omega::eval(), cta_psf_diffuse_kern_delta::eval(), cta_psf_diffuse_kern_phi::eval(), GFft::factor5(), GFft::factor7(), GModelSpatial::flux(), GTime::gast(), GCTAPointing::instdir(), GLATMeanPsf::integral(), GCTAResponseIrf::irf_radial(), GHealpix::loc2dir(), GCOMIaq::location_spread(), GCTABackgroundPerfTable::mc(), GCTAModelRadialGauss::mc(), GCTAModelRadialPolynom::mc(), GCTAModelRadialProfile::mc(), GModelSpatialRadialShell::mc(), GCTAModelRadialPolynom::mc_max_value(), GCTAModelRadialProfile::mc_max_value(), GSkyDir::moon(), GCOMInstChars::multi_scatter(), GSkyDir::posang(), GSkyDir::precess(), GCTAPsfTable::precompute(), GWcsMOL::prj_s2x(), GCOMResponse::read(), gammalib::roi_arclength(), GHorizDir::rotate_deg(), GSkyDir::rotate_deg(), GFftWavetable::set_members(), GHealpix::set_z_phi(), sin(), gammalib::sincosd(), gammalib::sind(), GCTAPointing::skydir(), GWcs::solidangle(), GSkyDir::sun(), GModelSpatialEllipticalGauss::update(), GModelSpatialRadialShell::update(), and GCOMResponse::write().

GVector sinh ( const GVector vector)

Computes sinh of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the sinh of every element.

Definition at line 1247 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by sinh().

GVector sqrt ( const GVector vector)

Computes square root of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the square root of every element.

Definition at line 1268 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GHealpix::ang2pix_z_phi_nest(), GHealpix::ang2pix_z_phi_ring(), GCTAResponseTable::axis_log10(), GWcs::cel_set(), GRan::chisq2(), GMatrixSymmetric::cholesky_decompose(), GSparseNumeric::cholesky_numeric_analysis(), GCOMDri::compute_geometry(), GCTAPsfPerfTable::containment_radius(), GCTAPsfVector::containment_radius(), GCTAPsfKing::containment_radius(), GSparseSymbolic::cs_amd(), GEbounds::elogmean(), gammalib::erfinv(), GLATEventBin::error(), GCOMEventBin::error(), GCTAEventBin::error(), GEventBin::error(), GOptimizerLM::errors(), GObservations::errors_hessian(), GCTAEdisp2D::etrue(), GModelSpatialEllipticalDisk::eval(), GModelSpatialEllipticalGauss::eval(), GModelSpatialRadialShell::eval(), GModelSpatialRadialProfileDMBurkert::halo_kernel_los::eval(), GModelSpatialRadialProfileDMEinasto::halo_kernel_los::eval(), GModelSpatialRadialProfileDMZhao::halo_kernel_los::eval(), GCOMIaq::response_kernel::eval(), cta_irf_elliptical_kern_rho::eval(), cta_irf_elliptical_kern_omega::eval(), cta_nroi_elliptical_kern_rho::eval(), cta_nroi_elliptical_kern_omega::eval(), cta_psf_elliptical_kern_rho::eval(), cta_psf_elliptical_kern_omega::eval(), GModelSpatialRadialShell::f1(), GFft::factor3(), GFft::factor5(), GFft::factor6(), GCTACubePsf::GCTACubePsf(), GCTAEdisp2D::get_mean_rms(), GHealpix::get_ring_info(), GObservations::likelihood::hessian(), GHealpix::isqrt(), GHealpix::loc2dir(), GCOMIaq::location_spread(), GModelSpatialRadialProfileDMBurkert::mass_density(), GModelSpatialRadialProfileDMEinasto::mass_density(), GModelSpatialRadialProfileDMZhao::mass_density(), GCTABackgroundPerfTable::mc(), GModelSpatialEllipticalGauss::mc(), GCTAModelRadialGauss::mc(), GCTAPsfKing::mc(), GModelTemporalLightCurve::mc(), GDerivative::minuit2(), GCOMInstChars::multi_scatter(), norm(), GRan::normal(), GCTAModelRadialGauss::omega(), GCTABackgroundPerfTable::operator()(), GRan::poisson(), GWcsAZP::prj_s2x(), GWcsAIT::prj_s2x(), GWcsSIN::prj_x2s(), GWcsTAN::prj_x2s(), GWcsARC::prj_x2s(), GWcsSTG::prj_x2s(), GWcsMOL::prj_x2s(), GWcsAIT::prj_x2s(), GWcsAZP::prj_x2s(), GCTAPsfKing::r_max(), GCOMOads::read(), GHealpix::ring_above(), GLATPsfBase::scale_factor(), GModelSpectralFunc::set_cache(), GCTACubePsf::set_delta_axis(), GModelSpectralNodes::set_flux_cache(), GCTABackground3D::set_members(), GHealpix::set_z_phi(), GCTAPointing::skydir(), GSkyMap::smooth_kernel(), GCTABackground3D::solid_angle(), GWcs::solidangle(), GCTABackgroundPerfTable::solidangle(), GSkyMap::solidangle(), GWcs::sph_s2x(), GWcs::sph_x2s(), sqrt(), GCTAInstDir::theta(), GModelSpatialEllipticalDisk::update(), GCTACubePsf::update(), GPha::write(), and GCTAOnOffObservation::wstat_value().

GVector tan ( const GVector vector)

Computes tangens of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the tangens of every element.

Definition at line 1289 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by GCOMDri::compute_geometry(), GSkyDir::moon(), GRan::poisson(), GSkyDir::posang(), GCTABackground3D::solid_angle(), GWcs::solidangle(), GSkyMap::solidangle(), tan(), and gammalib::tand().

GVector tanh ( const GVector vector)

Computes tanh of vector elements.

Parameters
[in]vectorVector.
Returns
Vector containing the tanh of every element.

Definition at line 1310 of file GVector.cpp.

References GVector::m_data, and GVector::m_num.

Referenced by tanh().