Skip to content

Commit 622b518

Browse files
authored
Remove templated variables (#86)
1 parent 9342543 commit 622b518

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "QuasiArrays"
22
uuid = "c4ea9172-b204-11e9-377d-29865faadc5c"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.9.3"
4+
version = "0.9.4"
55

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

src/abstractquasiarray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ _getindex(_, ::IndexStyle, A::AbstractQuasiArray, I) = layout_getindex(A, I...)
382382

383383

384384
## IndexCartesian Scalar indexing: Canonical method is full dimensionality of indices
385-
function _getindex(::Type{IND}, ::IndexCartesian, A::AbstractQuasiArray, I::IND) where {M,IND}
385+
function _getindex(::Type{IND}, ::IndexCartesian, A::AbstractQuasiArray, I::IND) where IND
386386
@_inline_meta
387387
@boundscheck checkbounds(A, I...) # generally _to_subscript_indices requires bounds checking
388388
@inbounds r = getindex(A, _to_subscript_indices(A, I...)...)

src/quasiarray.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ QuasiArray{T,N}(::UndefInitializer, axes::NTuple{N,AbstractVector}) where {T,N}
1919
QuasiArray(Array{T}(undef, map(length,axes)), axes)
2020
QuasiArray{T,N}(::UndefInitializer, axes::Vararg{AbstractVector,N}) where {T,N} =
2121
QuasiArray{T,N}(undef, axes)
22-
QuasiVector(::UndefInitializer, axes::AbstractVector) where T =
22+
QuasiVector(::UndefInitializer, axes::AbstractVector) =
2323
QuasiArray(Vector(undef,length(axes)), (axes,))
24-
QuasiMatrix(::UndefInitializer, ax1::AbstractVector, ax2::AbstractVector) where T =
24+
QuasiMatrix(::UndefInitializer, ax1::AbstractVector, ax2::AbstractVector) =
2525
QuasiArray(Matrix(undef,length(ax1),length(ax2)), (ax1,ax2))
2626

2727
QuasiArray(par::AbstractArray{T,N}, axes::NTuple{N,AbstractVector}) where {T,N} =

src/quasifill.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ ones(::Type{T}, x::Inclusion, y::Union{OneTo,IdentityUnitRange,Inclusion}...) wh
516516
ones(x::Inclusion, y::Union{OneTo,IdentityUnitRange,Inclusion}...) = ones(Float64, x, y...)
517517
ones(::Type{T}, x::Union{OneTo,IdentityUnitRange}, y::Inclusion, z::Union{OneTo,IdentityUnitRange,Inclusion}...) where T = QuasiOnes{T}((x, y, z...))
518518
ones(x::Union{OneTo,IdentityUnitRange}, y::Inclusion, z::Union{OneTo,IdentityUnitRange,Inclusion}...) = ones(Float64, x, y, z...)
519-
fill(c, x::Inclusion, y::Union{OneTo,IdentityUnitRange,Inclusion}...) where T = QuasiFill(c, (x, y...))
520-
fill(c, x::Union{OneTo,IdentityUnitRange}, y::Inclusion, z::Union{OneTo,IdentityUnitRange,Inclusion}...) where T = QuasiFill(c, (x, y, z...))
519+
fill(c, x::Inclusion, y::Union{OneTo,IdentityUnitRange,Inclusion}...) = QuasiFill(c, (x, y...))
520+
fill(c, x::Union{OneTo,IdentityUnitRange}, y::Inclusion, z::Union{OneTo,IdentityUnitRange,Inclusion}...) = QuasiFill(c, (x, y, z...))
521521

522522
iszero(x::AbstractQuasiFill) = iszero(getindex_value(x))
523523
isone(x::AbstractQuasiFill) = isone(getindex_value(x))

0 commit comments

Comments
 (0)