mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-22 15:52:18 +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:
@@ -163,45 +163,75 @@ void test_vector () {
|
||||
std::cout << "test_vector" << std::endl;
|
||||
|
||||
#ifdef USE_BOUNDED_ARRAY
|
||||
#ifdef USE_FLOAT
|
||||
std::cout << "float, bounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<float, ublas::bounded_array<float, 3> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_DOUBLE
|
||||
std::cout << "double, bounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<double, ublas::bounded_array<double, 3> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_STD_COMPLEX
|
||||
#ifdef USE_FLOAT
|
||||
std::cout << "std::complex<float>, bounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<std::complex<float>, ublas::bounded_array<std::complex<float>, 3> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_DOUBLE
|
||||
std::cout << "std::complex<double>, bounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<std::complex<double>, ublas::bounded_array<std::complex<double>, 3> >, 3 > () ();
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_UNBOUNDED_ARRAY
|
||||
#ifdef USE_FLOAT
|
||||
std::cout << "float, unbounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<float, ublas::unbounded_array<float> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_DOUBLE
|
||||
std::cout << "double, unbounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<double, ublas::unbounded_array<double> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_STD_COMPLEX
|
||||
#ifdef USE_FLOAT
|
||||
std::cout << "std::complex<float>, unbounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<std::complex<float>, ublas::unbounded_array<std::complex<float> > >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_DOUBLE
|
||||
std::cout << "std::complex<double>, unbounded_array" << std::endl;
|
||||
test_my_vector<ublas::vector<std::complex<double>, ublas::unbounded_array<std::complex<double> > >, 3 > () ();
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_STD_VECTOR
|
||||
#ifdef USE_FLOAT
|
||||
std::cout << "float, std::vector" << std::endl;
|
||||
test_my_vector<ublas::vector<float, std::vector<float> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_DOUBLE
|
||||
std::cout << "double, std::vector" << std::endl;
|
||||
test_my_vector<ublas::vector<double, std::vector<double> >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_STD_COMPLEX
|
||||
#ifdef USE_FLOAT
|
||||
std::cout << "std::complex<float>, std::vector" << std::endl;
|
||||
test_my_vector<ublas::vector<std::complex<float>, std::vector<std::complex<float> > >, 3 > () ();
|
||||
#endif
|
||||
|
||||
#ifdef USE_DOUBLE
|
||||
std::cout << "std::complex<double>, std::vector" << std::endl;
|
||||
test_my_vector<ublas::vector<std::complex<double>, std::vector<std::complex<double> > >, 3 > () ();
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user