2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-27 17:32:09 +00:00

testing project range slice

This commit is contained in:
Michael Stevens
2004-09-21 22:48:54 +00:00
parent 080b823112
commit 3512ecd93c
6 changed files with 108 additions and 68 deletions

View File

@@ -153,26 +153,26 @@ void test_matrix_vector () {
#ifdef USE_SPARSE_VECTOR_OF_SPARSE_VECTOR
#ifdef USE_MAP_ARRAY
#ifdef USE_FLOAT
std::cout << "float, map_array" << std::endl;
std::cout << "float, sparse_vector_of_sparse_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<float, ublas::map_array<std::size_t, float> >,
ublas::sparse_vector_of_sparse_vector<float, ublas::row_major, ublas::map_array<std::size_t, ublas::map_array<std::size_t, float> > >, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "double, map_array" << std::endl;
std::cout << "double, sparse_vector_of_sparse_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<double, ublas::map_array<std::size_t, double> >,
ublas::sparse_vector_of_sparse_vector<double, ublas::row_major, ublas::map_array<std::size_t, ublas::map_array<std::size_t, double> > >, 3 > () ();
#endif
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
std::cout << "std::complex<float>, map_array" << std::endl;
std::cout << "std::complex<float>, sparse_vector_of_sparse_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<float>, ublas::map_array<std::size_t, std::complex<float> > >,
ublas::sparse_vector_of_sparse_vector<std::complex<float>, ublas::row_major, ublas::map_array<std::size_t, ublas::map_array<std::size_t, std::complex<float> > > >, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "std::complex<double>, map_array" << std::endl;
std::cout << "std::complex<double>,sparse_vector_of_sparse_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<double>, ublas::map_array<std::size_t, std::complex<double> > >,
ublas::sparse_vector_of_sparse_vector<std::complex<double>, ublas::row_major, ublas::map_array<std::size_t, ublas::map_array<std::size_t, std::complex<double> > > >, 3 > () ();
#endif
@@ -181,26 +181,26 @@ void test_matrix_vector () {
#ifdef USE_STD_MAP
#ifdef USE_FLOAT
std::cout << "float, std::map" << std::endl;
std::cout << "float, sparse_vector_of_sparse_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<float, std::map<std::size_t, float> >,
ublas::sparse_vector_of_sparse_vector<float, ublas::row_major, std::map<std::size_t, std::map<std::size_t, float> > >, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "double, std::map" << std::endl;
std::cout << "double, sparse_vector_of_sparse_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<double, std::map<std::size_t, double> >,
ublas::sparse_vector_of_sparse_vector<double, ublas::row_major, std::map<std::size_t, std::map<std::size_t, double> > >, 3 > () ();
#endif
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
std::cout << "std::complex<float>, std::map" << std::endl;
std::cout << "std::complex<float>, sparse_vector_of_sparse_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<float>, std::map<std::size_t, std::complex<float> > >,
ublas::sparse_vector_of_sparse_vector<std::complex<float>, ublas::row_major, std::map<std::size_t, std::map<std::size_t, std::complex<float> > > >, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "std::complex<double>, std::map" << std::endl;
std::cout << "std::complex<double>, sparse_vector_of_sparse_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<double>, std::map<std::size_t, std::complex<double> > >,
ublas::sparse_vector_of_sparse_vector<std::complex<double>, ublas::row_major, std::map<std::size_t, std::map<std::size_t, std::complex<double> > > >, 3 > () ();
#endif
@@ -211,7 +211,7 @@ void test_matrix_vector () {
#ifdef USE_GENERALIZED_VECTOR_OF_VECTOR
#ifdef USE_MAP_ARRAY
#ifdef USE_FLOAT
std::cout << "float, map_array" << std::endl;
std::cout << "float, generalized_vector_of_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<float, ublas::map_array<std::size_t, float> >,
ublas::generalized_vector_of_vector<float, ublas::row_major, ublas::vector<ublas::sparse_vector<float, ublas::map_array<std::size_t, float> > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<float, ublas::map_array<std::size_t, float> >,
@@ -219,7 +219,7 @@ void test_matrix_vector () {
#endif
#ifdef USE_DOUBLE
std::cout << "double, map_array" << std::endl;
std::cout << "double, generalized_vector_of_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<double, ublas::map_array<std::size_t, double> >,
ublas::generalized_vector_of_vector<double, ublas::row_major, ublas::vector<ublas::sparse_vector<double, ublas::map_array<std::size_t, double> > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<double, ublas::map_array<std::size_t, double> >,
@@ -228,7 +228,7 @@ void test_matrix_vector () {
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
std::cout << "std::complex<float>, map_array" << std::endl;
std::cout << "std::complex<float>, generalized_vector_of_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<float>, ublas::map_array<std::size_t, std::complex<float> > >,
ublas::generalized_vector_of_vector<std::complex<float>, ublas::row_major, ublas::vector<ublas::sparse_vector<std::complex<float>, ublas::map_array<std::size_t, std::complex<float> > > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<std::complex<float>, ublas::map_array<std::size_t, std::complex<float> > >,
@@ -236,7 +236,7 @@ void test_matrix_vector () {
#endif
#ifdef USE_DOUBLE
std::cout << "std::complex<double>, map_array" << std::endl;
std::cout << "std::complex<double>, generalized_vector_of_vector map_array" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<double>, ublas::map_array<std::size_t, std::complex<double> > >,
ublas::generalized_vector_of_vector<std::complex<double>, ublas::row_major, ublas::vector<ublas::sparse_vector<std::complex<double>, ublas::map_array<std::size_t, std::complex<double> > > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<std::complex<double>, ublas::map_array<std::size_t, std::complex<double> > >,
@@ -247,7 +247,7 @@ void test_matrix_vector () {
#ifdef USE_STD_MAP
#ifdef USE_FLOAT
std::cout << "float, std::map" << std::endl;
std::cout << "float, generalized_vector_of_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<float, std::map<std::size_t, float> >,
ublas::generalized_vector_of_vector<float, ublas::row_major, ublas::vector<ublas::sparse_vector<float, std::map<std::size_t, float> > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<float, std::map<std::size_t, float> >,
@@ -255,7 +255,7 @@ void test_matrix_vector () {
#endif
#ifdef USE_DOUBLE
std::cout << "double, std::map" << std::endl;
std::cout << "double, generalized_vector_of_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<double, std::map<std::size_t, double> >,
ublas::generalized_vector_of_vector<double, ublas::row_major, ublas::vector<ublas::sparse_vector<double, std::map<std::size_t, double> > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<double, std::map<std::size_t, double> >,
@@ -264,7 +264,7 @@ void test_matrix_vector () {
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
std::cout << "std::complex<float>, std::map" << std::endl;
std::cout << "std::complex<float>, generalized_vector_of_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<float>, std::map<std::size_t, std::complex<float> > >,
ublas::generalized_vector_of_vector<std::complex<float>, ublas::row_major, ublas::vector<ublas::sparse_vector<std::complex<float>, std::map<std::size_t, std::complex<float> > > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<std::complex<float>, std::map<std::size_t, std::complex<float> > >,
@@ -272,7 +272,7 @@ void test_matrix_vector () {
#endif
#ifdef USE_DOUBLE
std::cout << "std::complex<double>, std::map" << std::endl;
std::cout << "std::complex<double>, generalized_vector_of_vector std::map" << std::endl;
test_my_matrix_vector<ublas::sparse_vector<std::complex<double>, std::map<std::size_t, std::complex<double> > >,
ublas::generalized_vector_of_vector<std::complex<double>, ublas::row_major, ublas::vector<ublas::sparse_vector<std::complex<double>, std::map<std::size_t, std::complex<double> > > > >, 3 > () ();
test_my_matrix_vector<ublas::sparse_vector<std::complex<double>, std::map<std::size_t, std::complex<double> > >,
@@ -284,26 +284,26 @@ void test_matrix_vector () {
#ifdef USE_COMPRESSED_MATRIX
#ifdef USE_FLOAT
std::cout << "float" << std::endl;
std::cout << "float compressed" << std::endl;
test_my_matrix_vector<ublas::compressed_vector<float>,
ublas::compressed_matrix<float>, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "double" << std::endl;
std::cout << "double compressed" << std::endl;
test_my_matrix_vector<ublas::compressed_vector<double>,
ublas::compressed_matrix<double>, 3 > () ();
#endif
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
std::cout << "std::complex<float>" << std::endl;
std::cout << "std::complex<float> compressed" << std::endl;
test_my_matrix_vector<ublas::compressed_vector<std::complex<float> >,
ublas::compressed_matrix<std::complex<float> >, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "std::complex<double>" << std::endl;
std::cout << "std::complex<double> compressed" << std::endl;
test_my_matrix_vector<ublas::compressed_vector<std::complex<double> >,
ublas::compressed_matrix<std::complex<double> >, 3 > () ();
#endif
@@ -312,26 +312,26 @@ void test_matrix_vector () {
#ifdef USE_COORDINATE_MATRIX
#ifdef USE_FLOAT
std::cout << "float" << std::endl;
std::cout << "float coordinate" << std::endl;
test_my_matrix_vector<ublas::coordinate_vector<float>,
ublas::coordinate_matrix<float>, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "double" << std::endl;
std::cout << "double coordinate" << std::endl;
test_my_matrix_vector<ublas::coordinate_vector<double>,
ublas::coordinate_matrix<double>, 3 > () ();
#endif
#ifdef USE_STD_COMPLEX
#ifdef USE_FLOAT
std::cout << "std::complex<float>" << std::endl;
std::cout << "std::complex<float> coordinate" << std::endl;
test_my_matrix_vector<ublas::coordinate_vector<std::complex<float> >,
ublas::coordinate_matrix<std::complex<float> >, 3 > () ();
#endif
#ifdef USE_DOUBLE
std::cout << "std::complex<double>" << std::endl;
std::cout << "std::complex<double> coordinate" << std::endl;
test_my_matrix_vector<ublas::coordinate_vector<std::complex<double> >,
ublas::coordinate_matrix<std::complex<double> >, 3 > () ();
#endif