Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for new BlockBandedMatrices #84

Merged
merged 4 commits into from
Dec 28, 2019

Conversation

dlfivefifty
Copy link
Contributor

No description provided.

@ChrisRackauckas
Copy link
Member

@dlfivefifty
Copy link
Contributor Author

Yes: it was a complete redesign to incorporate the block structure in the axes

@ChrisRackauckas
Copy link
Member

It looks like the use of blocklengths is an issue?

@ChrisRackauckas
Copy link
Member

JuliaDiff/FiniteDiff.jl#84 and JuliaArrays/ArrayInterface.jl#34 are the latest movements

@ChrisRackauckas
Copy link
Member

It looks like the latest test found an issue: getindex from Cartesians is trying to call similar with 3 arguments and tuples, but that doesn't seem to exist.

  Got exception outside of a @test
  LoadError: MethodError: no method matching similar(::BlockBandedMatrices.BlockSkylineMatrix{Float64,Array{Float64,1},BlockBandedMatrices.BlockSkylineSizes{Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},BandedMatrices.BandedMatrix{Int64,Array{Int64,2},Base.OneTo{Int64}},Array{Int64,1}}}, 
::Type{Float64}, ::Tuple{Base.IdentityUnitRange{BlockArrays.BlockedUnitRange{Array{Int64,1}}},Base.OneTo{Int64}})
  Closest candidates are:
    similar(!Matched::BlockArrays.BlockArray, ::Type{T}, ::Tuple{Union{Colon, Integer, Base.IdentityUnitRange, Base.OneTo, UnitRange},Vararg{Union{Colon, Integer, Base.IdentityUnitRange, Base.OneTo, UnitRange},N} where N}) where T at C:\Users\accou\.julia\packages\BlockArrays\FxyhD\src\blockarray.jl:353
    similar(::BlockBandedMatrices.BlockSkylineMatrix, ::Type) at C:\Users\accou\.julia\packages\BlockBandedMatrices\ROxFN\src\BlockSkylineMatrix.jl:252
    similar(::BlockBandedMatrices.BlockSkylineMatrix, ::Type, !Matched::BlockBandedMatrices.BlockSkylineSizes) at C:\Users\accou\.julia\packages\BlockBandedMatrices\ROxFN\src\BlockSkylineMatrix.jl:252
    ...
  Stacktrace:
   [1] similar(::BlockBandedMatrices.BlockSkylineMatrix{Float64,Array{Float64,1},BlockBandedMatrices.BlockSkylineSizes{Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},BandedMatrices.BandedMatrix{Int64,Array{Int64,2},Base.OneTo{Int64}},Array{Int64,1}}}, ::Tuple{Base.IdentityUnitRange{BlockArrays.BlockedUnitRange{Array{Int64,1}}},Base.OneTo{Int64}}) at C:\Users\accou\.julia\packages\BlockArrays\FxyhD\src\abstractblockarray.jl:38
   [2] _unsafe_getindex(::IndexCartesian, ::BlockBandedMatrices.BlockSkylineMatrix{Float64,Array{Float64,1},BlockBandedMatrices.BlockSkylineSizes{Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},BandedMatrices.BandedMatrix{Int64,Array{Int64,2},Base.OneTo{Int64}},Array{Int64,1}}}, ::Base.Slice{BlockArrays.BlockedUnitRange{Array{Int64,1}}}, ::Array{Int64,1}) at .\multidimensional.jl:682
   [3] _getindex(::IndexCartesian, ::BlockBandedMatrices.BlockSkylineMatrix{Float64,Array{Float64,1},BlockBandedMatrices.BlockSkylineSizes{Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},BandedMatrices.BandedMatrix{Int64,Array{Int64,2},Base.OneTo{Int64}},Array{Int64,1}}}, ::Base.Slice{BlockArrays.BlockedUnitRange{Array{Int64,1}}}, ::Array{Int64,1}) at .\multidimensional.jl:670
   [4] getindex at .\abstractarray.jl:981 [inlined]
   [5] _testvalidity(::BlockBandedMatrices.BlockSkylineMatrix{Float64,Array{Float64,1},BlockBandedMatrices.BlockSkylineSizes{Tuple{BlockArrays.BlockedUnitRange{Array{Int64,1}},BlockArrays.BlockedUnitRange{Array{Int64,1}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},FillArrays.Fill{Int64,1,Tuple{Base.OneTo{Int64}}},BandedMatrices.BandedMatrix{Int64,Array{Int64,2},Base.OneTo{Int64}},Array{Int64,1}}}) at C:\Users\accou\.julia\dev\SparseDiffTools\test\test_specialmatrices.jl:45

@ChrisRackauckas ChrisRackauckas merged commit 8ac6dbc into JuliaDiff:master Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants