xref: /aosp_15_r20/external/eigen/bench/btl/libs/ublas/main.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin Li //=====================================================
2*bf2c3715SXin Li // File   :  main.cpp
3*bf2c3715SXin Li // Author :  L. Plagne <[email protected])>
4*bf2c3715SXin Li // Copyright (C) EDF R&D,  lun sep 30 14:23:27 CEST 2002
5*bf2c3715SXin Li //=====================================================
6*bf2c3715SXin Li //
7*bf2c3715SXin Li // This program is free software; you can redistribute it and/or
8*bf2c3715SXin Li // modify it under the terms of the GNU General Public License
9*bf2c3715SXin Li // as published by the Free Software Foundation; either version 2
10*bf2c3715SXin Li // of the License, or (at your option) any later version.
11*bf2c3715SXin Li //
12*bf2c3715SXin Li // This program is distributed in the hope that it will be useful,
13*bf2c3715SXin Li // but WITHOUT ANY WARRANTY; without even the implied warranty of
14*bf2c3715SXin Li // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*bf2c3715SXin Li // GNU General Public License for more details.
16*bf2c3715SXin Li // You should have received a copy of the GNU General Public License
17*bf2c3715SXin Li // along with this program; if not, write to the Free Software
18*bf2c3715SXin Li // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19*bf2c3715SXin Li //
20*bf2c3715SXin Li #include "utilities.h"
21*bf2c3715SXin Li #include "ublas_interface.hh"
22*bf2c3715SXin Li #include "bench.hh"
23*bf2c3715SXin Li #include "basic_actions.hh"
24*bf2c3715SXin Li 
25*bf2c3715SXin Li BTL_MAIN;
26*bf2c3715SXin Li 
main()27*bf2c3715SXin Li int main()
28*bf2c3715SXin Li {
29*bf2c3715SXin Li   bench<Action_axpy<ublas_interface<REAL_TYPE> > >(MIN_AXPY,MAX_AXPY,NB_POINT);
30*bf2c3715SXin Li   bench<Action_axpby<ublas_interface<REAL_TYPE> > >(MIN_AXPY,MAX_AXPY,NB_POINT);
31*bf2c3715SXin Li 
32*bf2c3715SXin Li   bench<Action_matrix_vector_product<ublas_interface<REAL_TYPE> > >(MIN_MV,MAX_MV,NB_POINT);
33*bf2c3715SXin Li   bench<Action_atv_product<ublas_interface<REAL_TYPE> > >(MIN_MV,MAX_MV,NB_POINT);
34*bf2c3715SXin Li 
35*bf2c3715SXin Li   bench<Action_matrix_matrix_product<ublas_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
36*bf2c3715SXin Li //   bench<Action_ata_product<ublas_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
37*bf2c3715SXin Li //   bench<Action_aat_product<ublas_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
38*bf2c3715SXin Li 
39*bf2c3715SXin Li   bench<Action_trisolve<ublas_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
40*bf2c3715SXin Li 
41*bf2c3715SXin Li   return 0;
42*bf2c3715SXin Li }
43*bf2c3715SXin Li 
44*bf2c3715SXin Li 
45