glucat  0.8.2
PyClical.pxd
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 #
3 # PyClical: Python interface to GluCat:
4 # Generic library of universal Clifford algebra templates
5 #
6 # PyClical.pxd: Basic Cython definitions for PyClical
7 # corresponding to C++ definitions from PyClical.h.
8 #
9 # copyright : (C) 2008-2012 by Paul C. Leopardi
10 #
11 # This library is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License as published
13 # by the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
15 #
16 # This library is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU Lesser General Public License for more details.
20 #
21 # You should have received a copy of the GNU Lesser General Public License
22 # along with this library. If not, see <http://www.gnu.org/licenses/>.
23 
24 cimport glucat
25 from glucat cimport IndexSet, String, Clifford, scalar_t, vector
26 
27 cdef extern from "PyClical.h":
28  inline IndexSet operator&(IndexSet Lhs, IndexSet Rhs)
29  inline IndexSet operator|(IndexSet Lhs, IndexSet Rhs)
30  inline IndexSet operator^(IndexSet Lhs, IndexSet Rhs)
31 
32  inline String index_set_to_repr(IndexSet& Ist)
33  inline String index_set_to_str(IndexSet& Ist)
34 
35  inline Clifford operator+(Clifford Lhs, Clifford Rhs)
36  inline Clifford operator-(Clifford Lhs, Clifford Rhs)
37  inline Clifford operator*(Clifford Lhs, Clifford Rhs)
38  inline Clifford operator&(Clifford Lhs, Clifford Rhs)
39  inline Clifford operator%(Clifford Lhs, Clifford Rhs)
40  inline Clifford operator^(Clifford Lhs, Clifford Rhs)
41  inline Clifford operator/(Clifford Lhs, Clifford Rhs)
42  inline Clifford operator|(Clifford Lhs, Clifford Rhs)
43 
44  inline String clifford_to_repr(Clifford& Clf)
45  inline String clifford_to_str(Clifford& Clf)
String clifford_to_str(const Multivector_T &mv)
The "informal" string representation of Multivector_T mv.
Definition: PyClical.h:98
String index_set_to_repr(const Index_Set_T &ist)
The “official” string representation of Index_Set_T ist.
Definition: PyClical.h:69
String clifford_to_repr(const Multivector_T &mv)
The “official” string representation of Multivector_T mv.
Definition: PyClical.h:87
String index_set_to_str(const Index_Set_T &ist)
The "informal" string representation of Index_Set_T ist.
Definition: PyClical.h:78