Gather and precondition subproblem data from output-like field list.
(self, fields, out=None)
| 350 | return out |
| 351 | |
| 352 | def gather_outputs(self, fields, out=None): |
| 353 | """Gather and precondition subproblem data from output-like field list.""" |
| 354 | # Gather from fields |
| 355 | views = self._output_field_views(tuple(fields)) |
| 356 | for buffer_view, field_view in views: |
| 357 | np.copyto(buffer_view, field_view) |
| 358 | # Apply left preconditioner to compress outputs |
| 359 | if out is None: |
| 360 | out = self._compressed_buffer |
| 361 | apply_sparse(self.pre_left, self._output_buffer, axis=0, out=out) |
| 362 | return out |
| 363 | |
| 364 | def scatter_inputs(self, data, fields): |
| 365 | """Precondition and scatter subproblem data out to input-like field list.""" |
no test coverage detected