source: trunk/test/yat-hello/hello.cc @ 2438

Last change on this file since 2438 was 2438, checked in by Peter, 11 years ago

Move yathello test from maintainer-check to installcheck, which means
it is run also during distcheck. The check is split into two parts: 1)
Generate a tarball and as this step requires autotools it is typically
only done by the maintainer (or developers) and included in the
distribution. 2) At intallcheck time the tarball is extracted and the
yat-hello package is built using the installed yat. The name of this
toy package has changed from yathello to yat-hello to avoid file name
conflicts.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1// $Id: hello.cc 2438 2011-03-12 23:45:59Z peter $
2
3/*
4  Copyright (C) 2011 Peter Johansson
5
6  This file is part of the yat library, http://dev.thep.lu.se/yat
7
8  The yat library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 3 of the
11  License, or (at your option) any later version.
12
13  The yat library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with yat. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#include <yat/utility/Vector.h>
23#include <yat/utility/Matrix.h>
24#include <cstdlib>
25#include <iostream>
26#include <string>
27int main(void)
28{
29  theplu::yat::utility::Matrix m(10,3);
30  m(1,1)=1.0;
31  theplu::yat::utility::Vector v(m.row_const_view(1));
32  if (v(1)!=1.0)
33    return EXIT_FAILURE;
34  std::cout << "hello world\n";
35  return EXIT_SUCCESS;
36}
Note: See TracBrowser for help on using the repository browser.