-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpeg08.cpp
50 lines (42 loc) · 2.15 KB
/
peg08.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/***************************************************************************
GluCat : Generic library of universal Clifford algebra templates
peg08.cpp : Driver for test 08
-------------------
begin : Sun 2001-12-09
copyright : (C) 2001-2007 by Paul C. Leopardi
***************************************************************************
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 3 of the License, or
(at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library. If not, see <http://www.gnu.org/licenses/>.
***************************************************************************
This library is based on a prototype written by Arvind Raja and was
licensed under the LGPL with permission of the author. See Arvind Raja,
"Object-oriented implementations of Clifford algebras in C++: a prototype",
in Ablamowicz, Lounesto and Parra (eds.)
"Clifford algebras with numeric and symbolic computations", Birkhauser, 1996.
***************************************************************************
See also Arvind Raja's original header comments in glucat.h
***************************************************************************/
#include "test/driver.h"
#include "test08/peg08.h"
int test08()
{
using namespace peg08;
cout << "Programming example 8 : Reading multivectors from input" << endl;
cout << endl;
cout << "framed_multi<double>" << endl;
do_test8< framed_multi<double> >();
cout << "matrix_multi<double>" << endl;
do_test8< matrix_multi<double> >();
return 0;
}
using namespace glucat;
int main(int argc, char ** argv)
{ return control_t::control(argc, argv).call(test08); }