lsst.afw  14.0-69-ge506bfb5f
Public Member Functions | List of all members
lsst::afw::math::GaussianProcessTimer Class Reference

This is a structure for keeping track of how long the interpolation methods spend on different parts of the interpolation. More...

#include <GaussianProcess.h>

Public Member Functions

 GaussianProcessTimer ()
 
 GaussianProcessTimer (GaussianProcessTimer const &)=default
 
 GaussianProcessTimer (GaussianProcessTimer &&)=default
 
GaussianProcessTimer & operator= (GaussianProcessTimer const &)=default
 
GaussianProcessTimer & operator= (GaussianProcessTimer &&)=default
 
 ~GaussianProcessTimer ()=default
 
void reset ()
 Resets all of the data members of GaussianProcessTimer to zero. More...
 
void start ()
 Starts the timer for an individual call to an interpolation routine. More...
 
void addToEigen ()
 Adds time to _eigenTime. More...
 
void addToVariance ()
 Adds time to _varianceTime. More...
 
void addToSearch ()
 Adds time to _searchTime. More...
 
void addToIteration ()
 Adds time to _iterationTime. More...
 
void addToTotal (int i)
 Adds time to _totalTime and adds counts to _interpolationCount. More...
 
void display ()
 Displays the current values of all times and _interpolationCount. More...
 

Detailed Description

This is a structure for keeping track of how long the interpolation methods spend on different parts of the interpolation.

_eigenTime keeps track of how much time is spent using Eigen's linear algebra packages

_iterationTime keeps track of how much time is spent iterating over matrix indices (this is also a catch-all for time that does not obviously fit in the other categories)

_searchTime keeps track of how much time is spent on nearest neighbor searches (when applicable)

_varianceTime keeps track of how much time is spent calculating the variance of our interpolated function value (note: time spent using Eigen packages for this purpose is tallied here, not in _eigenTime)

_totalTime keeps track of how much time total is spent on interpolations

_interpolationCount keeps track of how many points have been interpolated

Definition at line 63 of file GaussianProcess.h.

Constructor & Destructor Documentation

◆ GaussianProcessTimer() [1/3]

lsst::afw::math::GaussianProcessTimer::GaussianProcessTimer ( )

◆ GaussianProcessTimer() [2/3]

lsst::afw::math::GaussianProcessTimer::GaussianProcessTimer ( GaussianProcessTimer const &  )
default

◆ GaussianProcessTimer() [3/3]

lsst::afw::math::GaussianProcessTimer::GaussianProcessTimer ( GaussianProcessTimer &&  )
default

◆ ~GaussianProcessTimer()

lsst::afw::math::GaussianProcessTimer::~GaussianProcessTimer ( )
default

Member Function Documentation

◆ addToEigen()

void lsst::afw::math::GaussianProcessTimer::addToEigen ( )

Adds time to _eigenTime.

◆ addToIteration()

void lsst::afw::math::GaussianProcessTimer::addToIteration ( )

Adds time to _iterationTime.

◆ addToSearch()

void lsst::afw::math::GaussianProcessTimer::addToSearch ( )

Adds time to _searchTime.

◆ addToTotal()

void lsst::afw::math::GaussianProcessTimer::addToTotal ( int  i)

Adds time to _totalTime and adds counts to _interpolationCount.

Parameters
[in]ithe number of counts to add to _interpolationCount

◆ addToVariance()

void lsst::afw::math::GaussianProcessTimer::addToVariance ( )

Adds time to _varianceTime.

◆ display()

void lsst::afw::math::GaussianProcessTimer::display ( )

Displays the current values of all times and _interpolationCount.

◆ operator=() [1/2]

GaussianProcessTimer& lsst::afw::math::GaussianProcessTimer::operator= ( GaussianProcessTimer const &  )
default

◆ operator=() [2/2]

GaussianProcessTimer& lsst::afw::math::GaussianProcessTimer::operator= ( GaussianProcessTimer &&  )
default

◆ reset()

void lsst::afw::math::GaussianProcessTimer::reset ( )

Resets all of the data members of GaussianProcessTimer to zero.

◆ start()

void lsst::afw::math::GaussianProcessTimer::start ( )

Starts the timer for an individual call to an interpolation routine.


The documentation for this class was generated from the following file: