Skip to content

Commit 3eb080c

Browse files
committed
Comment out iterate(::Eye)
1 parent d29815b commit 3eb080c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ julia:
77
- 0.7
88
- 1.0
99
- 1.1
10+
- 1.2
1011
- nightly
1112
matrix:
1213
allow_failures:

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ environment:
22
matrix:
33
- julia_version: 0.7
44
- julia_version: 1
5+
- julia_version: 1.1
6+
- julia_version: 1.2
57
- julia_version: nightly
68

79
platform:

src/FillArrays.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ const Eye{T,Axes} = RectOrDiagonal{T,Ones{T,1,Tuple{Axes}}}
258258
Eye{T}(n::Integer) where T = Diagonal(Ones{T}(n))
259259
Eye(n::Integer) = Diagonal(Ones(n))
260260

261-
function iterate(iter::Eye, istate = (1, 1))
262-
(i::Int, j::Int) = istate
263-
m = size(iter, 1)
264-
return i > m ? nothing :
265-
((@inbounds getindex(iter, i, j)),
266-
j == m ? (i + 1, 1) : (i, j + 1))
267-
end
261+
# function iterate(iter::Eye, istate = (1, 1))
262+
# (i::Int, j::Int) = istate
263+
# m = size(iter, 1)
264+
# return i > m ? nothing :
265+
# ((@inbounds getindex(iter, i, j)),
266+
# j == m ? (i + 1, 1) : (i, j + 1))
267+
# end
268268

269269
isone(::SquareEye) = true
270270

0 commit comments

Comments
 (0)