Skip to content

Commit

Permalink
CompatHelper: bump compat for "ArrayLayouts" to "0.8" (#124)
Browse files Browse the repository at this point in the history
* CompatHelper: bump compat for "ArrayLayouts" to "0.8"

* update FillArrays

* update tests

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sheehan Olver <[email protected]>
  • Loading branch information
github-actions[bot] and dlfivefifty authored Mar 22, 2022
1 parent 1af0411 commit 86c3b02
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
matrix:
version:
- '1.6'
- '^1.7.0-0'
- '1'
- '^1.8.0-0'
os:
- ubuntu-latest
- macOS-latest
Expand Down
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "BlockBandedMatrices"
uuid = "ffab5731-97b5-5995-9138-79e8c1846df0"
version = "0.11.1"
version = "0.11.2"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand All @@ -13,10 +13,10 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
ArrayLayouts = "0.7"
ArrayLayouts = "0.8.2"
BandedMatrices = "0.16.8"
BlockArrays = "0.16.6"
FillArrays = "0.11, 0.12"
FillArrays = "0.13"
MatrixFactorizations = "0.8.5"
julia = "1.6"

Expand Down
9 changes: 5 additions & 4 deletions test/test_broadcasting.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BandedMatrices, BlockBandedMatrices, BlockArrays, LinearAlgebra, ArrayLayouts, Test
import Base: oneto

@testset "broadcasting" begin
@testset "general" begin
Expand All @@ -24,9 +25,9 @@ using BandedMatrices, BlockBandedMatrices, BlockArrays, LinearAlgebra, ArrayLayo

@testset "lmul!/rmul!" begin
N = 10
A = BlockBandedMatrix{Float64}(undef, 1:N,1:N, (1,1))
A = BlockBandedMatrix{Float64}(undef, oneto(N),oneto(N), (1,1))
A.data .= randn.()
B = BlockBandedMatrix{Float64}(undef, 1:N,1:N, (2,2))
B = BlockBandedMatrix{Float64}(undef, oneto(N),oneto(N), (2,2))
B .= (-).(A)
@test similar(A) isa typeof(A)
@test similar(A,Float64) isa typeof(A)
Expand Down Expand Up @@ -71,9 +72,9 @@ using BandedMatrices, BlockBandedMatrices, BlockArrays, LinearAlgebra, ArrayLayo
@test 2.0 .\ A isa typeof(A)
@test blockbandwidths(2\A) == blockbandwidths(2.0 .\ A) == blockbandwidths(A)

A = BandedBlockBandedMatrix{Float64}(undef, 1:N,1:N, (1,1),(1,1))
A = BandedBlockBandedMatrix{Float64}(undef, oneto(N),oneto(N), (1,1),(1,1))
A.data .= randn.()
B = BandedBlockBandedMatrix{Float64}(undef, 1:N,1:N, (2,2),(2,2))
B = BandedBlockBandedMatrix{Float64}(undef, oneto(N),oneto(N), (2,2),(2,2))
B .= (-).(A)
@test similar(A) isa typeof(A)
@test similar(A,Float64) isa typeof(A)
Expand Down

2 comments on commit 86c3b02

@dlfivefifty
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/57061

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.2 -m "<description of version>" 86c3b02d1d0fd2597de85e7591dc6c583ef178b6
git push origin v0.11.2

Please sign in to comment.