#ifndef TEST_UBLAS_H #define TEST_UBLAS_H /*************************************************************************** test_ublas.h : Test uBLAS ------------------- begin : Sun 2005-03-14 copyright : (C) 2005 by Paul C. Leopardi email : leopardi@bigpond.net.au *************************************************************************** * This library is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as * * published by the Free Software Foundation; either version 2.1 of the * * License, or (at your option) any later version. * * See http://www.fsf.org/copyleft/lesser.html for details * ***************************************************************************/ // Declarations #define HAVE_STD_ABS #include #include #include // Include to define pair<> #include #include #include #include #include // Add real equivalents to complex functions #include #include #include #include #include #include #include #include #include #ifdef _GLUCAT_HAVE_UBLAS_LU_H #include #include #endif #include #include namespace ublas_test { using namespace boost::numeric::ublas; using namespace std; typedef double Scalar_T; typedef row_major orientation_t; typedef compressed_matrix matrix_t; typedef matrix_t::size_type matrix_index_t; const double MS_PER_S = 1000.0; inline double elapsed( clock_t cpu_time ) { return ((clock() - cpu_time)*MS_PER_S) / CLOCKS_PER_SEC; } } #endif // TEST_UBLAS_H