diff --git a/sumpy/expansion/__init__.py b/sumpy/expansion/__init__.py index 00849b56d1746e02e1f9aa84dd0753223dd4e933..f680347c3e7656f90c5325ab4a00ceea4977f798 100644 --- a/sumpy/expansion/__init__.py +++ b/sumpy/expansion/__init__.py @@ -285,7 +285,8 @@ class LinearRecurrenceBasedExpansionTermsWrangler(ExpansionTermsWrangler): that representation of the PDE is :math:`\text{coeff} / {\text{deriv\_multiplier}^{|\nu|}}`. """ - super(LinearRecurrenceBasedExpansionTermsWrangler, self).__init__(order, dim, max_mi) + super(LinearRecurrenceBasedExpansionTermsWrangler, self).__init__(order, dim, + max_mi) self.deriv_multiplier = deriv_multiplier def get_coefficient_identifiers(self): @@ -493,7 +494,8 @@ class HelmholtzExpansionTermsWrangler(LinearRecurrenceBasedExpansionTermsWrangle self.helmholtz_k_name = helmholtz_k_name multiplier = sym.Symbol(helmholtz_k_name) - super(HelmholtzExpansionTermsWrangler, self).__init__(order, dim, multiplier, max_mi) + super(HelmholtzExpansionTermsWrangler, self).__init__(order, dim, multiplier, + max_mi) def get_pde_dict(self, **kwargs): pde_dict = {} diff --git a/sumpy/tools.py b/sumpy/tools.py index 8916e33c358702628d97cb03889ecb0f7aa861ec..dd98325bef11bc122c34cf9a34114e5ff19673f0 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -435,6 +435,7 @@ def rref(mat): col += 1 return mat, pivot_cols + def nullspace(m): m2 = [[sym.sympify(col) for col in row] for row in m] mat, pivot_cols = rref(m2)