35 #define OPERATORTEST_VERSION \ 36 "OPERATORTEST V1.1 test operator functions" 54 void section(
const char* s,
const char l=
'-')
56 cout << endl << s << endl;
58 while (*p) { cout << l; ++p; }
80 int main(
int iargc,
char* argv[])
84 section(
"Test array operators",
'=');
85 section(
"Normal array with unary operator");
92 section(
"Access through subarray");
102 section(
"test implicit type conversion");
112 section(
"test advanced type conversion");
114 CODE(C=std::complex<double>(14.,2.);)
119 section(
"test binary operator with constant input");
124 section(
"mixed implicit operations");
127 section(
"Test series operators",
'=');
128 section(
"test scalar operators");
135 section(
"test vector operators");
145 DUMP((H *= G + 0.2) + 0.2);
#define DUMP(A)
Dump any object through its dump function.
aff::util::Subarray< C > subarray(const C &c)
Wrapper function to select correct type.
void section(const char *s, const char l='-')
print headline
external class to create subarrays (prototypes)
full template array class headers (prototypes)
linear series class (prototypes)
#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.
#define OPERATORTEST_VERSION
provide operators for series classes (prototypes)
debug helpers (prototypes)
Full multi-dimensional array functionality.This is the full array class template. It adds no addition...
provide operators for array classes (prototypes)
A base class for time series and spectra.
Array base classThis is a multidimensional (array) container that uses a strided memory layout (Fortr...
int main(int iargc, char *argv[])