-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpeg08.h
61 lines (52 loc) · 2.15 KB
/
peg08.h
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
51
52
53
54
55
56
57
58
59
60
61
#ifndef GLUCAT_TEST_PEG08_H
#define GLUCAT_TEST_PEG08_H
/***************************************************************************
GluCat : Generic library of universal Clifford algebra templates
peg08.cpp : programming example 8 : Reading multivectors from input
-------------------
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 <iomanip>
namespace peg08
{
using namespace glucat;
using namespace std;
template< class Multivector_T >
static
void
do_test8()
{
typedef Multivector_T number;
string str;
ifstream fin("eg8.txt");
while (getline(fin,str))
{
istringstream ss(str);
number n;
ss >> n;
n.write("Read:");
}
}
}
int test08();
#endif