Skip to content

Commit 624022a

Browse files
authored
Use axes for Eye (#52)
* Use axes for Eye * Update bases.jl
1 parent 780df87 commit 624022a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ContinuumArrays"
22
uuid = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
3-
version = "0.2.3"
3+
version = "0.2.4"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/ContinuumArrays.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ function checkindex(::Type{Bool}, inds::Inclusion{<:Any,<:AbstractInterval}, r::
6161
end
6262

6363

64-
BroadcastStyle(::Type{<:Inclusion{<:Any,<:AbstractInterval}}) = LazyQuasiArrayStyle{1}()
65-
BroadcastStyle(::Type{<:QuasiAdjoint{<:Any,<:Inclusion{<:Any,<:AbstractInterval}}}) = LazyQuasiArrayStyle{2}()
66-
BroadcastStyle(::Type{<:QuasiTranspose{<:Any,<:Inclusion{<:Any,<:AbstractInterval}}}) = LazyQuasiArrayStyle{2}()
64+
BroadcastStyle(::Type{<:Inclusion}) = LazyQuasiArrayStyle{1}()
65+
BroadcastStyle(::Type{<:QuasiAdjoint{<:Any,<:Inclusion}}) = LazyQuasiArrayStyle{2}()
66+
BroadcastStyle(::Type{<:QuasiTranspose{<:Any,<:Inclusion}}) = LazyQuasiArrayStyle{2}()
6767

6868

6969
###

src/bases/bases.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ end
5757
function copy(P::Ldiv{BasisLayout,BasisLayout})
5858
A, B = P.A, P.B
5959
A == B || throw(ArgumentError("Override copy for $(typeof(A)) \\ $(typeof(B))"))
60-
SquareEye{eltype(P)}(size(A,2))
60+
SquareEye{eltype(P)}((axes(A,2),))
6161
end
6262
function copy(P::Ldiv{SubBasisLayout,SubBasisLayout})
6363
A, B = P.A, P.B
64-
(parent(A) == parent(B) && parentindices(A) == parentindices(B)) ||
64+
parent(A) == parent(B) ||
6565
throw(ArgumentError("Override copy for $(typeof(A)) \\ $(typeof(B))"))
66-
SquareEye{eltype(P)}(size(A,2))
66+
Eye{eltype(P)}((axes(A,2),axes(B,2)))
6767
end
6868

6969
@inline function copy(P::Ldiv{MappedBasisLayout,MappedBasisLayout})

0 commit comments

Comments
 (0)