Skip to content

Commit 0db8098

Browse files
Fix namespacing in ArrayInterfaceBlockBandedMatrices
1 parent 39834af commit 0db8098

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ArrayInterfaceBlockBandedMatrices/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ArrayInterfaceBlockBandedMatrices"
22
uuid = "5331f1e9-51c7-46b0-a9b0-df4434785e0a"
33
authors = ["Zachary P. Christensen <[email protected]>"]
4-
version = "0.1.1"
4+
version = "0.1.2"
55

66
[deps]
77
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"

lib/ArrayInterfaceBlockBandedMatrices/src/ArrayInterfaceBlockBandedMatrices.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function ArrayInterfaceCore.matrix_colors(A::BlockBandedMatrices.BlockBandedMatr
209209
blockwidth = l + u + 1
210210
nblock = BlockBandedMatrices.blocksize(A, 2)
211211
cols = BlockArrays.blocklengths(axes(A, 2))
212-
blockcolors = _cycle(1:blockwidth, nblock)
212+
blockcolors = ArrayInterfaceCore._cycle(1:blockwidth, nblock)
213213
# the reserved number of colors of a block is the maximum length of columns of blocks with the same block color
214214
ncolors = [maximum(cols[i:blockwidth:nblock]) for i = 1:blockwidth]
215215
endinds = cumsum(ncolors)
@@ -228,7 +228,7 @@ function ArrayInterfaceCore.matrix_colors(A::BlockBandedMatrices.BandedBlockBand
228228
subblockwidth = lambda + mu + 1
229229
nblock = BlockBandedMatrices.blocksize(A, 2)
230230
cols = BlockArrays.blocklengths(axes(A, 2))
231-
blockcolors = _cycle(1:blockwidth, nblock)
231+
blockcolors = ArrayInterfaceCore._cycle(1:blockwidth, nblock)
232232
# the reserved number of colors of a block is the min of subblockwidth and the largest length of columns of blocks with the same block color
233233
ncolors = [
234234
min(subblockwidth, maximum(cols[i:blockwidth:nblock]))
@@ -237,7 +237,7 @@ function ArrayInterfaceCore.matrix_colors(A::BlockBandedMatrices.BandedBlockBand
237237
endinds = cumsum(ncolors)
238238
startinds = [endinds[i] - ncolors[i] + 1 for i = 1:min(blockwidth, nblock)]
239239
colors = [
240-
_cycle(startinds[blockcolors[i]]:endinds[blockcolors[i]], cols[i])
240+
ArrayInterfaceCore._cycle(startinds[blockcolors[i]]:endinds[blockcolors[i]], cols[i])
241241
for i = 1:nblock
242242
]
243243
return reduce(vcat, colors)

0 commit comments

Comments
 (0)