mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Test List
Member mx::AO::analysis::aoAtmosphere< _realT >::loadConfig (app::appConfigurator &config)
Loading aoAtmosphere config settings [test doc]
Member mx::AO::analysis::aoAtmosphere< _realT >::setupConfig (app::appConfigurator &config)
Loading aoAtmosphere config settings [test doc]
Member mx::AO::analysis::vonKarmanSpectrum< realT >::loadConfig (app::appConfigurator &config)
Loading aoAtmosphere config settings [test doc]
Member mx::AO::analysis::vonKarmanSpectrum< realT >::setupConfig (app::appConfigurator &config)
Loading aoAtmosphere config settings [test doc]
Member mx::astro::parAngDeg (realT ha, realT dec, realT lat, bool newflag)
Scenario: calculating parallactic angles [test doc]
Member mx::astro::parAngRad (realT sinHA, realT cosHA, realT sinDec, realT cosDec, realT tanLat)
Scenario: calculating parallactic angles [test doc]
Member mx::astro::parAngRad (realT ha, realT dec, realT lat)
Scenario: calculating parallactic angles [test doc]
Member mx::cuda::cublasTaxpy (cublasHandle_t handle, int n, const floatT *alpha, const floatT *x, int incx, floatT *y, int incy)
Scenario: scaling and accumulating a vector with cublas [test doc]
Member mx::cuda::cublasTscal (cublasHandle_t handle, int n, const floatT *alpha, floatT *x, int incx)
Scenario: scaling a vector with cublas [test doc]
Member mx::cuda::cudaPtr< T >::download (hostPtrT *dest)

Scenario: scaling a vector with cublas [test doc]

Scenario: scaling and accumulating a vector with cublas [test doc]

Scenario: multiplying two vectors element by element [test doc]

Member mx::cuda::cudaPtr< T >::operator() ()

Scenario: scaling and accumulating a vector with cublas [test doc]

Scenario: multiplying two vectors element by element [test doc]

Member mx::cuda::cudaPtr< T >::operator() () const
Scenario: scaling a vector with cublas [test doc]
Member mx::cuda::cudaPtr< T >::resize (size_t sz)

Scenario: scaling a vector with cublas [test doc]

Scenario: scaling and accumulating a vector with cublas [test doc]

Scenario: multiplying two vectors element by element [test doc]

Member mx::cuda::cudaPtr< T >::upload (const hostPtrT *src)
Scenario: multiplying two vectors element by element [test doc]
Member mx::cuda::cudaPtr< T >::upload (const hostPtrT *src, size_t sz)

Scenario: scaling a vector with cublas [test doc]

Scenario: scaling and accumulating a vector with cublas [test doc]

Scenario: multiplying two vectors element by element [test doc]

Member mx::cuda::elementwiseXxY (dataT1 *x, dataT2 *y, int size)
Scenario: multiplying two vectors element by element [test doc]
Member mx::fits::fitsFile< dataT >::naxes (int dim)
Scenario: fitsFile calculating subimage sizes [test doc]
Member mx::fits::fitsFile< dataT >::naxis ()
Scenario: fitsFile calculating subimage sizes [test doc]
Member mx::fits::fitsFile< dataT >::pixarrs (long **fpix, long **lpix, long **inc)
Scenario: fitsFile calculating subimage sizes [test doc]
Member mx::fits::fitsFile< dataT >::setCubeReadSize (long z0, long zframes)
Scenario: fitsFile calculating subimage sizes [test doc]
Member mx::fits::fitsFile< dataT >::setReadSize (long x0, long y0, long xpix, long ypix)
Scenario: fitsFile calculating subimage sizes [test doc]
Class mx::improc::cubicConvolTransform< _arithT >
Scenario: Verify direction and accuracy of various image shifts [test doc]
Member mx::improc::imageShift (arrOutT &transim, const arrInT &im, floatT1 dx, floatT2 dy, transformT trans)
Scenario: Verify direction and accuracy of various image shifts [test doc]
Member mx::improc::imageShiftWP (outputArrT &out, inputArrT &in, int dx, int dy, bool wrap=true)
Scenario: Verify direction and accuracy of various image shifts [test doc]
Member mx::ioutils::getSequentialFilename (const std::string &basename, const std::string &extension="", const int startat=0, int ndigit=4)
Verify creation of sequential file names [test doc]
Member mx::math::angleDiff (typename angleT::realT q1, typename angleT::realT q2)
Verify compilation and calculations of math::angleDiff [test doc]
Class mx::math::degradT< degrees, _realT >
Verify compilation and calculations of math::angleDiff [test doc]
Class mx::math::degradT< radians, _realT >
Verify compilation and calculations of math::angleDiff [test doc]
Member mx::math::dtor (realT q)
Verify compilation and calculations of math::angleDiff [test doc]
Class mx::math::fit::fitGaussian2D< fitterT >
Scenario: Verify direction and accuracy of various image shifts [test doc]
Class mx::math::fit::gaussian2D_sym_fitter< _realT >
Scenario: Verify direction and accuracy of various image shifts [test doc]
Member mx::math::func::gaussian2D (const realT x, const realT y, const realT G0, const realT G, const realT x0, const realT y0, const realT sigma)
Scenario: Verify direction and accuracy of various image shifts [test doc]
Member mx::math::func::moffat (const realT x, const realT I0, const realT Ipk, const realT x0, const realT alpha, const realT beta)
Scenario: compiling 1D Moffat function [test doc]
Member mx::math::func::moffat2D (const realT x, const realT y, const realT I0, const realT Ipk, const realT x0, const realT y0, const realT alpha, const realT beta)
Scenario: compiling 2D Moffat function [test doc]
Member mx::math::func::moffatFWHM (realT alpha, realT beta)
Scenario: compiling Moffat FWHM [test doc]
Class mx::math::laplace_distribution< _RealType >
Verify compilation and basic operation of randomT with the Laplace distribution [test doc]
Class mx::math::randomT< typeT, _ranengT, _randistT >

Verify compilation and basic operation of randomT with std::distributions [test doc]

Verify compilation and basic operation of randomT with the Laplace distribution [test doc]

Member mx::sigproc::augment1SidedPSD (vectorTout &psdTwoSided, vectorTin &psdOneSided, bool addZeroFreq=false, typename vectorTin::value_type scale=0.5)
Verify scaling and normalization of augment1SidedPSD [test doc]
Member mx::sigproc::augment1SidedPSDFreq (std::vector< T > &freqTwoSided, std::vector< T > &freqOneSided)
Verify scaling and normalization of augment1SidedPSD [test doc]
Member mx::sigproc::frequencyGrid (std::vector< realT > &vec, realParamT dt, bool fftOrder=true)
Verify creation of a 1D frequency grid [test doc]
Member mx::sigproc::noll_nm (int &n, int &m, int j)
Scenario: testing noll_nm [test doc]
Member mx::sigproc::normPSD (Eigen::Array< floatT, Eigen::Dynamic, Eigen::Dynamic > &psd, Eigen::Array< floatT, Eigen::Dynamic, Eigen::Dynamic > &k, floatParamT normT, floatT kmin=std::numeric_limits< floatT >::min(), floatT kmax=std::numeric_limits< floatT >::max())
Verify scaling and normalization of augment1SidedPSD [test doc]
Member mx::sigproc::normPSD (std::vector< floatT > &psd, std::vector< floatT > &f, floatParamT normT, floatT fmin=std::numeric_limits< floatT >::min(), floatT fmax=std::numeric_limits< floatT >::max())
Verify scaling and normalization of augment1SidedPSD [test doc]
Class mx::sigproc::psdFilter< _realT, _rank, 0 >
Scenario: compiling psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::clear ()
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::cols ()
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::filter (realArrayT &noise, realArrayT *noiseIm=nullptr, typename std::enable_if< crank==1 >::type *=0) const
Verify filtering and noise normalization. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::filter (realArrayT &noise, realArrayT *noiseIm=nullptr, typename std::enable_if< crank==2 >::type *=0) const
Verify filtering and noise normalization. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::filter (realArrayT &noise, realArrayT *noiseIm=nullptr, typename std::enable_if< crank==3 >::type *=0) const
Verify filtering and noise normalization. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::operator() (realArrayT &noise) const
Verify filtering and noise normalization. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::operator() (realArrayMapT noise) const
Verify filtering and noise normalization. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::operator() (realArrayT &noise, realArrayT &noiseIm) const
Verify filtering and noise normalization. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::planes ()
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psd (const realArrayT &npsd, const realT df, typename std::enable_if< crank==1 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psd (const realArrayT &npsd, const realT dk1, const realT dk2, typename std::enable_if< crank==2 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psd (const realArrayT &npsd, const realT dk1, const realT dk2, const realT df, typename std::enable_if< crank==3 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdFilter ()
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (realArrayT *npsdSqrt, realT dk1, realT dk2, realT df, typename std::enable_if< crank==3 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (realArrayT *npsdSqrt, realT df, typename std::enable_if< crank==1 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (const realArrayT &npsdSqrt)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (realArrayT *npsdSqrt)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (const realArrayT &npsdSqrt, realT dk1, realT dk2, realT df, typename std::enable_if< crank==3 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (const realArrayT &npsdSqrt, realT dk1, realT dk2, typename std::enable_if< crank==2 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (const realArrayT &npsdSqrt, realT df, typename std::enable_if< crank==1 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::psdSqrt (realArrayT *npsdSqrt, realT dk1, realT dk2, typename std::enable_if< crank==2 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::rows ()
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::setSize (typename std::enable_if< crank==2 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::setSize (typename std::enable_if< crank==1 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdFilter< _realT, _rank, 0 >::setSize (typename std::enable_if< crank==3 >::type *=0)
Verify compilation and initialization of the 3 ranks for psdFilter. [test doc]
Member mx::sigproc::psdVar (const std::vector< realT > &f, const std::vector< realT > &PSD, realT half=0.5)
Scenario: calculating variance from a 1D PSD. [test doc]
Member mx::sigproc::psdVar1sided (realT df, const realT *PSD, size_t sz, realT half=0.5)
Scenario: calculating variance from a 1D PSD [test doc]
Member mx::sigproc::psdVar2sided (realT df, const realT *PSD, size_t sz, realT half=0.5)
Scenario: calculating variance from a 1D PSD. [test doc]
Member mx::sigproc::zernikeQNorm (realT k, realT phi, int n, int m)
Scenario: testing zernikeQNorm [test doc]
Member mx::sigproc::zernikeQNorm (arrayT &arr, arrayT &k, arrayT &phi, int j)
Scenario: testing zernikeQNorm [test doc]
Member mx::sys::Cal2mjd (int yr, int mon, int day, int hr, int min, double sec)
Verify calculation of MJD. [test doc]
Member mx::sys::get_curr_time (timespec &tsp)
Verify operation of get_curr_time. [test doc]
Member mx::sys::get_curr_time ()
Verify operation of get_curr_time. [test doc]
Member mx::sys::ISO8601date2mjd (const std::string &fdate)
Verify conversion of an ISO 8601 time string to MJD. [test doc]
Member mx::sys::ISO8601dateBreakdown (int &yr, int &mon, int &day, int &hr, int &min, double &sec, const std::string &fdate)
Verify parsing of an ISO 8601 time string [test doc]
Member mx::sys::microSleep (unsigned usec)
Verify operation of thread sleep functions. [test doc]
Member mx::sys::milliSleep (unsigned msec)
Verify operation of thread sleep functions. [test doc]
Member mx::sys::nanoSleep (unsigned nsec)
Verify operation of thread sleep functions. [test doc]
Member mx::sys::parse_hms (floatT &h, floatT &m, floatT &s, const std::string &hmsstr)
Verify parsing of a formatted time string. [test doc]
Member mx::sys::sleep (unsigned sec)
Verify operation of thread sleep functions. [test doc]
Member mx::sys::timespecAddNsec (timespec &ts, unsigned nsec)
Verify operation of timespecAddNsec. [test doc]