35 #define FUNCTIONSTEST_VERSION \ 36 "FUNCTIONSTEST V1.1 test function templates" 61 int main(
int iargc,
char* argv[])
64 CODE( Tarray A(3,4) );
66 CODE( Tarray::Tcoc AC=A );
81 CODE(
typedef Tmap::const_iterator Tmapit );
82 CODE(
for (Tmapit i=mymap.begin(); i!=mymap.end(); ++i) \
83 { cout << i->first <<
"\t" << i->second << endl; } );
85 CODE( avalmap[-4.]=1 );
86 CODE( avalmap[1.]=2 );
87 CODE( avalmap[2.]=3 );
88 CODE( avalmap[5.]=4 );
90 aff::func::valmap<aff::Array>(A, avalmap) );
evaluate sum of all samples (prototypes)
evaluate square of sum of all samples (prototypes)
Root namespace of library.
C::Tvalue avg(const C &c)
C::Tvalue sum(const C &c)
C::Tvalue min(const C &c)
int main(int iargc, char *argv[])
aff::util::Subarray< C > subarray(const C &c)
Wrapper function to select correct type.
C::Tvalue rms(const C &c)
external class to create subarrays (prototypes)
return minimum element value (prototypes)
full template array class headers (prototypes)
aff::func::util::Extracthisto< C >::Tmap histo(const C &c)
#define CODE(C)
Dump code and execute (works like echo)
void dump_array(const ConstArray< T > &array, const Tdim &i=(Strided::Mmax_dimen-1), std::ostream &os=std::cout)
Dump array values.
extract absolute maximum (prototypes)
map element values (prototypes)
return rms of element values (prototypes)
return maximum element value (prototypes)
C::Tvalue sqrsum(const C &c)
debug helpers (prototypes)
return average of element values (prototypes)
C::Tvalue absmax(const C &c)
Full multi-dimensional array functionality.This is the full array class template. It adds no addition...
C::Tvalue max(const C &c)
count elements of same value (prototypes)
std::map< double, int > Tvalmap
rectangular Fortran array layout (prototypes)