Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/SOneTo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ Base.length(s::SOneTo{n}) where {n} = n
# The axes of a Slice'd SOneTo use the SOneTo itself
Base.axes(S::Base.Slice{<:SOneTo}) = (S.indices,)
Base.unsafe_indices(S::Base.Slice{<:SOneTo}) = (S.indices,)
Base.axes1(S::Base.Slice{<:SOneTo}) = S.indices

@propagate_inbounds function Base.getindex(s::SOneTo, i::Int)
@boundscheck checkbounds(s, i)
return i
end
@propagate_inbounds function Base.getindex(s::SOneTo, s2::SOneTo)
@boundscheck checkbounds(s, s2)
return s2
Expand Down
4 changes: 2 additions & 2 deletions test/matrix_multiply_add.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ function test_multiply_add(N1,N2,ArrayType=MArray)
if !(ArrayType <: SizedArray)
@test_noalloc mul!(c,A,b)
else
mul!(c,A,b)
@test_broken(@allocated(mul!(c,A,b)) == 0)
mul!(c,A,b) # Precompilation?
@test_noalloc mul!(c,A,b)
end
expected_transpose_allocs = 0
bmark = @benchmark mul!($c,$A,$b,$α,$β) samples=10 evals=10
Expand Down
Loading