Relacs  0.9.8
Classes | Namespaces | Macros | Typedefs | Functions
sampledata.h File Reference
#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <relacs/array.h>
#include <relacs/linearrange.h>
#include <relacs/containerfuncs.h>
#include <relacs/spectrum.h>
#include <relacs/eventdata.h>
#include <relacs/detector.h>
Include dependency graph for sampledata.h:
This graph shows which files directly or indirectly include this file:

Classes

class  SampleData< T >
 
class  Map< T >
 
class  SampleData< T >
 

Namespaces

 relacs
 

Macros

#define SAMPLEDARRAYOPS1SCALARDEC(COP)
 
#define SAMPLEDARRAYOPS2SCALARDEC(COP)
 
#define SAMPLEDARRAYOPS1SINGLESCALARDEF(COPNAME, COP, SCALAR)
 
#define SAMPLEDARRAYOPS1SCALARDEF(COPNAME, COP)
 
#define SAMPLEDARRAYOPS1DEF(COPNAME, COP)
 
#define SAMPLEDARRAYOPS2SINGLESCALARDEF(COPNAME, COP, SCALAR)
 
#define SAMPLEDARRAYOPS2SCALARDEF(COPNAME, COP)
 
#define SAMPLEDARRAYOPS2DEF(COPNAME, COP)
 

Typedefs

typedef SampleData< float > SampleDataF
 

Functions

template<typename TT , typename RR >
SampleData< TT > convolve (const SampleData< TT > &x, const RR &y, int offs=0)
 
SampleData sin (const LinearRange &r, double f, double p)
 
SampleData sin (int n, double offset, double stepsize, double f, double p)
 
SampleData sin (double l, double r, double stepsize, double f, double p)
 
SampleData cos (const LinearRange &r, double f, double p)
 
SampleData cos (int n, double offset, double stepsize, double f, double p)
 
SampleData cos (double l, double r, double stepsize, double f, double p)
 
SampleData sweep (const LinearRange &r, double startfreq, double endfreq)
 
SampleData sweep (int n, double offset, double stepsize, double startfreq, double endfreq)
 
SampleData sweep (double l, double r, double stepsize, double startfreq, double endfreq)
 
SampleData gauss (const LinearRange &r)
 
SampleData gauss (int n, double offset, double stepsize)
 
SampleData gauss (double l, double r, double stepsize)
 
SampleData gauss (const LinearRange &r, double s, double m)
 
SampleData gauss (int n, double offset, double stepsize, double s, double m)
 
SampleData gauss (double l, double r, double stepsize, double s, double m)
 
SampleData alpha (const LinearRange &r, double tau, double offs)
 
SampleData alpha (int n, double offset, double stepsize, double tau, double offs)
 
SampleData alpha (double l, double r, double stepsize, double tau, double offs)
 
SampleData line (const LinearRange &r, double abscissa, double slope)
 
SampleData line (int n, double offset, double stepsize, double abscissa, double slope)
 
SampleData line (double l, double r, double stepsize, double abscissa, double slope)
 
SampleData rectangle (const LinearRange &r, double period, double width, double ramp)
 
SampleData rectangle (int n, double offset, double stepsize, double period, double width, double ramp)
 
SampleData rectangle (double l, double r, double stepsize, double period, double width, double ramp=0.0)
 
SampleData sawUp (const LinearRange &r, double period, double ramp)
 
SampleData sawUp (int n, double offset, double stepsize, double period, double ramp)
 
SampleData sawUp (double l, double r, double stepsize, double period, double ramp)
 
SampleData sawDown (const LinearRange &r, double period, double ramp)
 
SampleData sawDown (int n, double offset, double stepsize, double period, double ramp)
 
SampleData sawDown (double l, double r, double stepsize, double period, double ramp)
 
SampleData triangle (const LinearRange &r, double period)
 
SampleData triangle (int n, double offset, double stepsize, double period)
 
SampleData triangle (double l, double r, double stepsize, double period)
 
template<typename TT , typename SS >
void hcPower (const SampleData< TT > &hc, SampleData< SS > &p)
 
template<typename TT , typename SS >
void hcMagnitude (const SampleData< TT > &hc, SampleData< SS > &m)
 
template<typename TT , typename SS >
void hcPhase (const SampleData< TT > &hc, SampleData< SS > &p)
 
template<typename TT , typename SS >
void hcReal (const SampleData< TT > &hc, SampleData< SS > &r)
 
template<typename TT , typename SS >
void hcImaginary (const SampleData< TT > &hc, SampleData< SS > &i)
 
template<typename TT >
int rFFT (SampleData< TT > &x)
 
template<typename TT , typename SS >
int rPSD (const SampleData< TT > &x, SampleData< SS > &p, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int transfer (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &h, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int transfer (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &h, SampleData< RR > &c, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int gain (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &g, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int coherence (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &c, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename RR >
double coherenceInfo (const SampleData< RR > &c, double f0=0.0, double f1=-1.0)
 
template<typename TT , typename SS , typename RR >
int rCSD (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &c, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int spectra (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &g, SampleData< RR > &c, SampleData< RR > &ys, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int spectra (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &g, SampleData< RR > &c, SampleData< RR > &cs, SampleData< RR > &xs, SampleData< RR > &ys, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT , typename SS , typename RR >
int crossSpectra (const SampleData< TT > &x, const SampleData< SS > &y, SampleData< RR > &cs, SampleData< RR > &xps, SampleData< RR > &yps, bool overlap=true, double(*window)(int j, int n)=bartlett)
 
template<typename TT >
void coherence (const SampleData< TT > &cp, const SampleData< TT > &xp, const SampleData< TT > &yp, SampleData< TT > &c)
 
template<typename TT >
bool operator== (const SampleData< TT > &a, const SampleData< TT > &b)
 
template<typename TT >
bool operator< (const SampleData< TT > &a, const SampleData< TT > &b)
 
template<typename TT , typename COT >
SampleData< TT > operator+ (const SampleData< TT > &x, const COT &y)
 
template<typename TT >
SampleData< TT > operator+ (float x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, float y)
 
template<typename TT >
SampleData< TT > operator+ (double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, double y)
 
template<typename TT >
SampleData< TT > operator+ (long double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, long double y)
 
template<typename TT >
SampleData< TT > operator+ (signed char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, signed char y)
 
template<typename TT >
SampleData< TT > operator+ (unsigned char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, unsigned char y)
 
template<typename TT >
SampleData< TT > operator+ (signed int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, signed int y)
 
template<typename TT >
SampleData< TT > operator+ (unsigned int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, unsigned int y)
 
template<typename TT >
SampleData< TT > operator+ (signed long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, signed long y)
 
template<typename TT >
SampleData< TT > operator+ (unsigned long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator+ (const SampleData< TT > &x, unsigned long y)
 
template<typename TT , typename COT >
SampleData< TT > operator- (const SampleData< TT > &x, const COT &y)
 
template<typename TT >
SampleData< TT > operator- (float x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, float y)
 
template<typename TT >
SampleData< TT > operator- (double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, double y)
 
template<typename TT >
SampleData< TT > operator- (long double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, long double y)
 
template<typename TT >
SampleData< TT > operator- (signed char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, signed char y)
 
template<typename TT >
SampleData< TT > operator- (unsigned char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, unsigned char y)
 
template<typename TT >
SampleData< TT > operator- (signed int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, signed int y)
 
template<typename TT >
SampleData< TT > operator- (unsigned int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, unsigned int y)
 
template<typename TT >
SampleData< TT > operator- (signed long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, signed long y)
 
template<typename TT >
SampleData< TT > operator- (unsigned long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator- (const SampleData< TT > &x, unsigned long y)
 
template<typename TT , typename COT >
SampleData< TT > operator* (const SampleData< TT > &x, const COT &y)
 
template<typename TT >
SampleData< TT > operator* (float x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, float y)
 
template<typename TT >
SampleData< TT > operator* (double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, double y)
 
template<typename TT >
SampleData< TT > operator* (long double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, long double y)
 
template<typename TT >
SampleData< TT > operator* (signed char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, signed char y)
 
template<typename TT >
SampleData< TT > operator* (unsigned char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, unsigned char y)
 
template<typename TT >
SampleData< TT > operator* (signed int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, signed int y)
 
template<typename TT >
SampleData< TT > operator* (unsigned int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, unsigned int y)
 
template<typename TT >
SampleData< TT > operator* (signed long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, signed long y)
 
template<typename TT >
SampleData< TT > operator* (unsigned long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator* (const SampleData< TT > &x, unsigned long y)
 
template<typename TT , typename COT >
SampleData< TT > operator/ (const SampleData< TT > &x, const COT &y)
 
template<typename TT >
SampleData< TT > operator/ (float x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, float y)
 
template<typename TT >
SampleData< TT > operator/ (double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, double y)
 
template<typename TT >
SampleData< TT > operator/ (long double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, long double y)
 
template<typename TT >
SampleData< TT > operator/ (signed char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, signed char y)
 
template<typename TT >
SampleData< TT > operator/ (unsigned char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, unsigned char y)
 
template<typename TT >
SampleData< TT > operator/ (signed int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, signed int y)
 
template<typename TT >
SampleData< TT > operator/ (unsigned int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, unsigned int y)
 
template<typename TT >
SampleData< TT > operator/ (signed long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, signed long y)
 
template<typename TT >
SampleData< TT > operator/ (unsigned long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator/ (const SampleData< TT > &x, unsigned long y)
 
template<typename TT , typename COT >
SampleData< TT > operator% (const SampleData< TT > &x, const COT &y)
 
template<typename TT >
SampleData< TT > operator% (float x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, float y)
 
template<typename TT >
SampleData< TT > operator% (double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, double y)
 
template<typename TT >
SampleData< TT > operator% (long double x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, long double y)
 
template<typename TT >
SampleData< TT > operator% (signed char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, signed char y)
 
template<typename TT >
SampleData< TT > operator% (unsigned char x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, unsigned char y)
 
template<typename TT >
SampleData< TT > operator% (signed int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, signed int y)
 
template<typename TT >
SampleData< TT > operator% (unsigned int x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, unsigned int y)
 
template<typename TT >
SampleData< TT > operator% (signed long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, signed long y)
 
template<typename TT >
SampleData< TT > operator% (unsigned long x, const SampleData< TT > &y)
 
template<typename TT >
SampleData< TT > operator% (const SampleData< TT > &x, unsigned long y)
 
template<typename TT >
SampleData< TT > convolve (const SampleData< TT > &x, const SampleData< TT > &y)
 
template<typename TT >
void average (SampleData< TT > &meantrace, const vector< SampleData< TT > > &traces)
 
template<typename TT >
void average (SampleData< TT > &meantrace, SampleData< TT > &stdev, const vector< SampleData< TT > > &traces)
 
template<typename TT >
void peaksTroughs (const SampleData< TT > &x, EventData &peaks, EventData &troughs, double threshold)
 
template<typename TT , class Check >
void peaksTroughs (const SampleData< TT > &x, EventData &peaks, EventData &troughs, double &threshold, Check &check)
 
template<typename TT >
void peaks (const SampleData< TT > &x, EventData &events, double threshold)
 
template<typename TT , class Check >
void peaks (const SampleData< TT > &x, EventData &events, double &threshold, Check &check)
 
template<typename TT >
void troughs (const SampleData< TT > &x, EventData &events, double threshold)
 
template<typename TT , class Check >
void troughs (const SampleData< TT > &x, EventData &events, double &threshold, Check &check)
 
template<typename TT >
void rising (const SampleData< TT > &x, EventData &events, double threshold)
 
template<typename TT , class Check >
void rising (const SampleData< TT > &x, EventData &events, double &threshold, Check &check)
 
template<typename TT >
void falling (const SampleData< TT > &x, EventData &events, double threshold)
 
template<typename TT , class Check >
void falling (const SampleData< TT > &x, EventData &events, double &threshold, Check &check)
 
template<typename T >
ostream & operator<< (ostream &str, const SampleData< T > &a)
 
template<typename T >
istream & operator>> (istream &str, SampleData< T > &a)
 

Macro Definition Documentation

#define SAMPLEDARRAYOPS1SCALARDEC (   COP)
Value:
const SampleData< T > &COP( float x ); \
const SampleData< T > &COP( double x ); \
const SampleData< T > &COP( long double x ); \
const SampleData< T > &COP( signed char x ); \
const SampleData< T > &COP( unsigned char x );\
const SampleData< T > &COP( signed int x ); \
const SampleData< T > &COP( unsigned int x ); \
const SampleData< T > &COP( signed long x ); \
const SampleData< T > &COP( unsigned long x );
#define SAMPLEDARRAYOPS2SCALARDEC (   COP)
Value:
template < typename TT > friend SampleData<TT> COP( float x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, float y ); \
template < typename TT > friend SampleData<TT> COP( double x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, double y ); \
template < typename TT > friend SampleData<TT> COP( long double x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, long double y ); \
template < typename TT > friend SampleData<TT> COP( signed char x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, signed char y ); \
template < typename TT > friend SampleData<TT> COP( unsigned char x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, unsigned char y ); \
template < typename TT > friend SampleData<TT> COP( signed int x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, signed int y ); \
template < typename TT > friend SampleData<TT> COP( unsigned int x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, unsigned int y ); \
template < typename TT > friend SampleData<TT> COP( signed long x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, signed long y ); \
template < typename TT > friend SampleData<TT> COP( unsigned long x, const SampleData<TT> &y ); \
template < typename TT > friend SampleData<TT> COP( const SampleData<TT> &x, unsigned long y );
#define SAMPLEDARRAYOPS1SINGLESCALARDEF (   COPNAME,
  COP,
  SCALAR 
)
Value:
template < typename T > \
const SampleData< T > &SampleData< T >::COPNAME( SCALAR x ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
while ( iter1 != end1 ) { \
(*iter1) COP static_cast< value_type >( x ); \
++iter1; \
}; \
return *this; \
} \
#define SAMPLEDARRAYOPS1SCALARDEF (   COPNAME,
  COP 
)
Value:
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, float ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, double ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, long double ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, signed char ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, unsigned char ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, signed int ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, unsigned int ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, signed long ) \
SAMPLEDARRAYOPS1SINGLESCALARDEF( COPNAME, COP, unsigned long ) \
#define SAMPLEDARRAYOPS1SINGLESCALARDEF(COPNAME, COP, SCALAR)
Definition: sampledata.h:2586
#define SAMPLEDARRAYOPS1DEF (   COPNAME,
  COP 
)
Value:
template < typename T > template < class COT > \
const SampleData< T > &SampleData< T >::COPNAME ( const COT &x ) \
{ \
iterator iter1 = begin(); \
iterator end1 = end(); \
typename COT::const_iterator iter2 = x.begin(); \
typename COT::const_iterator end2 = x.end(); \
while ( iter1 != end1 && iter2 != end2 ) { \
(*iter1) COP static_cast< value_type >(*iter2); \
++iter1; \
++iter2; \
}; \
return *this; \
} \
template < typename T > template < class COT > \
const SampleData< T > &SampleData< T >::COPNAME ( const SampleData<COT> &x ) \
{ \
resize( x.range(), 0 ); \
iterator iter1 = begin(); \
iterator end1 = end(); \
typename SampleData<COT>::const_iterator iter2 = x.begin(); \
typename SampleData<COT>::const_iterator end2 = x.end(); \
while ( iter1 != end1 && iter2 != end2 ) { \
(*iter1) COP static_cast< value_type >(*iter2); \
++iter1; \
++iter2; \
}; \
return *this; \
} \
SAMPLEDARRAYOPS1SCALARDEF( COPNAME, COP ) \
#define SAMPLEDARRAYOPS1SCALARDEF(COPNAME, COP)
Definition: sampledata.h:2604
#define SAMPLEDARRAYOPS2SINGLESCALARDEF (   COPNAME,
  COP,
  SCALAR 
)
Value:
template < typename TT > \
SampleData<TT> COPNAME( SCALAR x, const SampleData<TT> &y ) \
{ \
SampleData<TT> z( y ); \
typename SampleData<TT>::iterator iter1 = z.begin(); \
typename SampleData<TT>::iterator end1 = z.end(); \
while ( iter1 != end1 ) { \
(*iter1) = static_cast< typename SampleData<TT>::value_type >( x COP (*iter1) ); \
++iter1; \
}; \
return z; \
} \
\
template < typename TT > \
SampleData<TT> COPNAME( const SampleData<TT> &x, SCALAR y ) \
{ \
SampleData<TT> z( x ); \
typename SampleData<TT>::iterator iter1 = z.begin(); \
typename SampleData<TT>::iterator end1 = z.end(); \
while ( iter1 != end1 ) { \
(*iter1) = static_cast< typename SampleData<TT>::value_type >( (*iter1) COP y ); \
++iter1; \
}; \
return z; \
} \
#define SAMPLEDARRAYOPS2SCALARDEF (   COPNAME,
  COP 
)
Value:
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, float ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, double ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, long double ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, signed char ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, unsigned char ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, signed int ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, unsigned int ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, signed long ) \
SAMPLEDARRAYOPS2SINGLESCALARDEF( COPNAME, COP, unsigned long ) \
#define SAMPLEDARRAYOPS2SINGLESCALARDEF(COPNAME, COP, SCALAR)
Definition: sampledata.h:2671
#define SAMPLEDARRAYOPS2DEF (   COPNAME,
  COP 
)
Value:
template < typename TT, typename COT > \
SampleData<TT> COPNAME( const SampleData<TT> &x, const COT &y ) \
{ \
SampleData<TT> z( x ); \
typename SampleData<TT>::iterator iter1 = z.begin(); \
typename SampleData<TT>::iterator end1 = z.end(); \
typename COT::const_iterator iter2 = y.begin(); \
typename COT::const_iterator end2 = y.end(); \
while ( iter1 != end1 && iter2 != end2 ) { \
(*iter1) = (*iter1) COP (*iter2); \
++iter1; \
++iter2; \
}; \
return z; \
} \
SAMPLEDARRAYOPS2SCALARDEF( COPNAME, COP ) \
#define SAMPLEDARRAYOPS2SCALARDEF(COPNAME, COP)
Definition: sampledata.h:2703