Skip to content

Commit 105e5e8

Browse files
committed
define eachcol for Julia 1.0
1 parent 988878a commit 105e5e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Generic ##
22

3+
if VERSION < v"1.1"
4+
eachcol(A::AbstractVecOrMat) = (view(A, :, i) for i in axes(A, 2))
5+
end
6+
37
Base.one(::Irrational) = true
48

59
function vcatmapreduce(f, args...)

0 commit comments

Comments
 (0)