You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/src/man/blockarrays.md
+28-19
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,18 @@ end
11
11
An `AbstractArray` can be repacked into a `BlockArray` with `BlockArray(array, block_sizes...)`. The block sizes are each an `AbstractVector{Int}` which determines the size of the blocks in that dimension (so the sum of `block_sizes` in every dimension must match the size of `array` in that dimension).
3-element view(::BlockVector{Float64, Vector{Vector{Float64}}, Tuple{BlockedUnitRange{ArrayLayouts.RangeCumsum{Int64, UnitRange{Int64}}}}}, BlockSlice(BlockRange(1:2),1:1:3)) with eltype Float64 with indices 1:1:3:
155
-
1.0
156
-
3.0
157
-
4.0
165
+
3-element view(::BlockVector{Int64, Vector{Vector{Int64}}, Tuple{BlockedOneTo{ArrayLayouts.RangeCumsum{Int64, UnitRange{Int64}}}}}, BlockSlice(BlockRange(1:2),1:1:3)) with eltype Int64 with indices BlockedOneTo([1, 3]):
166
+
11
167
+
3
168
+
4
158
169
```
159
170
160
-
161
-
162
171
## Converting between `BlockArray` and normal arrays
163
172
164
173
An array can be repacked into a `BlockArray` with `BlockArray(array, block_sizes...)`:
@@ -167,7 +176,7 @@ An array can be repacked into a `BlockArray` with `BlockArray(array, block_sizes
0 commit comments