8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207edcf commit 8ce11f2Copy full SHA for 8ce11f2
lib/matplotlib/tri/triinterpolate.py
@@ -1265,12 +1265,9 @@ def dot(self, V):
1265
*V* dense vector of shape (self.m,)
1266
"""
1267
assert V.shape == (self.m,)
1268
- # For a more generic implementation we could use below kw argument
1269
- # minlength=self.m of bincount ; however:
1270
- # - it is new in numpy 1.6
1271
- # - it is unecessary when each row have at least 1 entry in global
1272
- # matrix, which is the case here.
1273
- return np.bincount(self.rows, weights=self.vals*V[self.cols])
+ return np.bincount(self.rows,
+ weights=self.vals*V[self.cols],
+ minlength=self.m)
1274
1275
def compress_csc(self):
1276
0 commit comments