From 9fc4c2695e4832ed932505b064cc3a6fce7c1915 Mon Sep 17 00:00:00 2001 From: Leonard Papenmeier Date: Wed, 5 Nov 2025 10:08:54 +0100 Subject: [PATCH] Adding _noop_index for the block dimension in block_linear_operator.py --- linear_operator/operators/block_linear_operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linear_operator/operators/block_linear_operator.py b/linear_operator/operators/block_linear_operator.py index 8ad44763..54862816 100644 --- a/linear_operator/operators/block_linear_operator.py +++ b/linear_operator/operators/block_linear_operator.py @@ -97,7 +97,7 @@ def _getitem(self, row_index: IndexType, col_index: IndexType, *batch_indices: I col_index = slice(col_start // num_blocks, col_end // num_blocks, None) # Now we can try the super call! - new_base_linear_op = self.base_linear_op._getitem(row_index, col_index, *batch_indices) + new_base_linear_op = self.base_linear_op._getitem(row_index, col_index, *batch_indices, _noop_index) # Now construct a kernel with those indices return self.__class__(new_base_linear_op, block_dim=-3)