2438 |
12 Mar 11 |
peter |
// $Id$ |
2438 |
12 Mar 11 |
peter |
2 |
|
2438 |
12 Mar 11 |
peter |
3 |
/* |
3170 |
31 Jan 14 |
peter |
Copyright (C) 2011, 2014 Peter Johansson |
2438 |
12 Mar 11 |
peter |
5 |
|
2438 |
12 Mar 11 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
2438 |
12 Mar 11 |
peter |
7 |
|
2438 |
12 Mar 11 |
peter |
The yat library is free software; you can redistribute it and/or |
2438 |
12 Mar 11 |
peter |
modify it under the terms of the GNU General Public License as |
2438 |
12 Mar 11 |
peter |
published by the Free Software Foundation; either version 3 of the |
2438 |
12 Mar 11 |
peter |
License, or (at your option) any later version. |
2438 |
12 Mar 11 |
peter |
12 |
|
2438 |
12 Mar 11 |
peter |
The yat library is distributed in the hope that it will be useful, |
2438 |
12 Mar 11 |
peter |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2438 |
12 Mar 11 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2438 |
12 Mar 11 |
peter |
General Public License for more details. |
2438 |
12 Mar 11 |
peter |
17 |
|
2438 |
12 Mar 11 |
peter |
You should have received a copy of the GNU General Public License |
2438 |
12 Mar 11 |
peter |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
2438 |
12 Mar 11 |
peter |
20 |
*/ |
2438 |
12 Mar 11 |
peter |
21 |
|
3313 |
25 Aug 14 |
peter |
22 |
#include <config.h> |
3313 |
25 Aug 14 |
peter |
23 |
|
2438 |
12 Mar 11 |
peter |
24 |
#include <yat/utility/Vector.h> |
3170 |
31 Jan 14 |
peter |
25 |
#include <yat/utility/version.h> |
2438 |
12 Mar 11 |
peter |
26 |
#include <yat/utility/Matrix.h> |
2438 |
12 Mar 11 |
peter |
27 |
#include <cstdlib> |
2438 |
12 Mar 11 |
peter |
28 |
#include <iostream> |
2438 |
12 Mar 11 |
peter |
29 |
#include <string> |
3313 |
25 Aug 14 |
peter |
30 |
|
2438 |
12 Mar 11 |
peter |
31 |
int main(void) |
2438 |
12 Mar 11 |
peter |
32 |
{ |
2438 |
12 Mar 11 |
peter |
33 |
theplu::yat::utility::Matrix m(10,3); |
2438 |
12 Mar 11 |
peter |
34 |
m(1,1)=1.0; |
2438 |
12 Mar 11 |
peter |
35 |
theplu::yat::utility::Vector v(m.row_const_view(1)); |
2438 |
12 Mar 11 |
peter |
36 |
if (v(1)!=1.0) |
2438 |
12 Mar 11 |
peter |
37 |
return EXIT_FAILURE; |
3170 |
31 Jan 14 |
peter |
38 |
if (theplu::yat::utility::version() != YAT_VERSION) { |
3170 |
31 Jan 14 |
peter |
39 |
std::cerr << "error:\ncompiled against: " |
3170 |
31 Jan 14 |
peter |
40 |
<< YAT_VERSION << "\nlinked against: " |
3170 |
31 Jan 14 |
peter |
41 |
<< theplu::yat::utility::version() << "\n"; |
3170 |
31 Jan 14 |
peter |
42 |
return EXIT_FAILURE; |
3170 |
31 Jan 14 |
peter |
43 |
} |
3170 |
31 Jan 14 |
peter |
44 |
std::cout << theplu::yat::utility::version() << "\n"; |
2438 |
12 Mar 11 |
peter |
45 |
return EXIT_SUCCESS; |
2438 |
12 Mar 11 |
peter |
46 |
} |