Skip to content

Commit

Permalink
Merge pull request #290 from eric-wieser/document-dtype-arg
Browse files Browse the repository at this point in the history
Small cleanups to `MultiVector.__init__`
  • Loading branch information
eric-wieser committed Mar 24, 2020
2 parents 82dfa48 + 022cb05 commit 2157e59
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions clifford/_multivector.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ class MultiVector(object):
Parameters
-------------
layout: instance of :class:`clifford.Layout`
the layout of the algebra
The layout of the algebra
value : sequence of length ``layout.gaDims``
the coefficients of the base blades
The coefficients of the base blades
dtype : numpy.dtype
The datatype to use for the multivector, if no
value was passed.
.. versionadded:: 1.1.0
Notes
------
Expand All @@ -32,12 +38,12 @@ class MultiVector(object):
* ``M(N)`` : grade or subspace projection
* ``M[N]`` : blade projection
"""
__array_priority__ = 100

def __init__(self, layout, value=None, string=None, *, dtype: np.dtype = np.float64) -> None:
"""Constructor."""

self.layout = layout
self.__array_priority__ = 100

if value is None:
if string is None:
Expand Down

0 comments on commit 2157e59

Please sign in to comment.