2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00

Many bugfixes and improvements, especially related to sparse matrices.

Thanks namely to Kresimir Fresl and Michael Stevens this time.
This commit is contained in:
Jörg Walter
2002-11-10 10:38:54 +00:00
parent 36bd1471d6
commit d4535394ee
72 changed files with 5430 additions and 6236 deletions

View File

@@ -98,24 +98,33 @@ int main (int argc, char *argv []) {
_set_new_handler (std_new_handler);
#endif
#ifdef USE_FLOAT
header ("float");
peak<float> () (100000000);
#endif
#ifdef USE_DOUBLE
header ("double");
peak<double> () (100000000);
#endif
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
header ("std:complex<float>");
peak<std::complex<float> > () (100000000);
#endif
#ifdef USE_DOUBLE
header ("std:complex<double>");
peak<std::complex<double> > () (100000000);
#endif
#endif
int scale = 1;
if (argc > 1)
scale = atoi (argv [1]);
#ifdef USE_FLOAT
header ("float, 3");
bench_1<float, 3> () (1000000 * scale);
@@ -139,7 +148,9 @@ int main (int argc, char *argv []) {
bench_1<float, 100> () (30000 * scale);
bench_2<float, 100> () (300 * scale);
bench_3<float, 100> () (3 * scale);
#endif
#ifdef USE_DOUBLE
header ("double, 3");
bench_1<double, 3> () (1000000 * scale);
@@ -163,8 +174,10 @@ int main (int argc, char *argv []) {
bench_1<double, 100> () (30000 * scale);
bench_2<double, 100> () (300 * scale);
bench_3<double, 100> () (3 * scale);
#endif
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
header ("std::complex<float>, 3");
bench_1<std::complex<float>, 3> () (1000000 * scale);
@@ -188,7 +201,9 @@ int main (int argc, char *argv []) {
bench_1<std::complex<float>, 100> () (30000 * scale);
bench_2<std::complex<float>, 100> () (300 * scale);
bench_3<std::complex<float>, 100> () (3 * scale);
#endif
#ifdef USE_DOUBLE
header ("std::complex<double>, 3");
bench_1<std::complex<double>, 3> () (1000000 * scale);
@@ -212,6 +227,7 @@ int main (int argc, char *argv []) {
bench_1<std::complex<double>, 100> () (30000 * scale);
bench_2<std::complex<double>, 100> () (300 * scale);
bench_3<std::complex<double>, 100> () (3 * scale);
#endif
#endif
return 0;