File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/abstractblocksparsearray Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,8 @@ function BlockArrays.viewblock(
271
271
return viewblock (a, to_tuple (block)... )
272
272
end
273
273
274
- _block (x) = error (" Not implemented." )
275
- _block (x:: BlockSlice ) = x. block
276
- _block (x:: BlockIndices ) = x. blocks
274
+ blockedslice_blocks (x:: BlockSlice ) = x. block
275
+ blockedslice_blocks (x:: BlockIndices ) = x. blocks
277
276
278
277
# TODO : Define `@interface BlockSparseArrayInterface() viewblock`.
279
278
function BlockArrays. viewblock (
@@ -285,7 +284,7 @@ function BlockArrays.viewblock(
285
284
# TODO : Ideally we would use this but it outputs a Vector,
286
285
# not a range:
287
286
# return parentindices(a)[dim].block[I[dim]]
288
- return blocks (_block (parentindices (a)[dim]))[Int (I[dim])]
287
+ return blocks (blockedslice_blocks (parentindices (a)[dim]))[Int (I[dim])]
289
288
end
290
289
return @view parent (a)[brs... ]
291
290
end
You can’t perform that action at this time.
0 commit comments