Skip to content

Commit

Permalink
add spacetimealgebra
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenovic committed Feb 6, 2017
1 parent 2a0e458 commit 246a19e
Show file tree
Hide file tree
Showing 5 changed files with 827 additions and 3 deletions.
11 changes: 9 additions & 2 deletions clifford/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,9 +1769,16 @@ class BladeMap(object):
(d13,p13)])
'''
def __init__(self, blades_map):

def __init__(self, blades_map, map_scalars=True):
self.blades_map = blades_map

if map_scalars:
# make scalars in each algebra map
s1 = self.b1[0]._newMV()+1
s2 = self.b2[0]._newMV()+1
self.blades_map = [(s1,s2)] + self.blades_map



@property
def b1(self):
Expand Down

0 comments on commit 246a19e

Please sign in to comment.