Skip to content

Commit 33c66b4

Browse files
committed
gem.Sum with multiple arguments
1 parent 4e9f4ad commit 33c66b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

finat/physically_mapped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def matvec(self, table):
268268
ii = gem.indices(len(table.shape)-1)
269269
phi = [gem.Indexed(table, (j, *ii)) for j in range(self.M.shape[1])]
270270
# the sum approach is faster than calling numpy.dot or gem.IndexSum
271-
exprs = [gem.ComponentTensor(reduce(gem.Sum, (self.M.array[i, j] * phi[j] for j in js)), ii)
271+
exprs = [gem.ComponentTensor(gem.Sum(self.M.array[i, j] * phi[j] for j in js)), ii)
272272
for i, js in enumerate(self.csr)]
273273

274274
val = gem.ListTensor(exprs)

0 commit comments

Comments
 (0)