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.
2 parents 03e3a77 + 15a462e commit 4b5283bCopy full SHA for 4b5283b
pylops_mpi/basicoperators/VStack.py
@@ -137,7 +137,7 @@ def _rmatvec(self, x: DistributedArray) -> DistributedArray:
137
y1 = []
138
for iop, oper in enumerate(self.ops):
139
y1.append(oper.rmatvec(x.local_array[self.nnops[iop]: self.nnops[iop + 1]]))
140
- y1 = ncp.sum(y1, axis=0)
+ y1 = ncp.sum(ncp.vstack(y1), axis=0)
141
y[:] = self.base_comm.allreduce(y1, op=MPI.SUM)
142
return y
143
0 commit comments