Skip to content

Commit

Permalink
Fix formatting errors in MVArray docs (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser authored Mar 30, 2020
1 parent c419bf3 commit 557d38f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions clifford/_mvarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def sum(self):
def gp(self):
'''
geometric product of all elements of this MVArray (like reduce)
like `self[0]*self[1]*....self[n]`
like ``self[0]*self[1]*....self[n]``
'''
out = self[0]
for k in self[1:]:
Expand All @@ -72,7 +72,7 @@ def gp(self):
def op(self):
'''
outer product of all elements of this MVArray (like reduce)
like `self[0]^self[1]^....self[n]`
like ``self[0]^self[1]^....self[n]``
'''
out = self[0]
for k in self[1:]:
Expand Down Expand Up @@ -100,7 +100,7 @@ def __call__(self, A):

def array(obj):
'''
an array method like numpy.array(), but returns a MVArray
an array method like :func:`numpy.array`, but returns a :class:`.MVArray`.
Parameters
-------------
Expand All @@ -109,10 +109,10 @@ def array(obj):
Examples
----------
>>>import clifford as cf
>>>from clifford import g3
>>>import numpy as np
>>>np.random.rand(10)*cf.array(g3.e12)
>>> import clifford as cf
>>> from clifford import g3
>>> import numpy as np
>>> np.random.rand(10)*cf.array(g3.e12)
'''
if isinstance(obj, MultiVector):
# they passed a single MV so make a list of it.
Expand Down

0 comments on commit 557d38f

Please sign in to comment.