Skip to content

Commit a8d4571

Browse files
committed
row/col doc typo
1 parent 98c49f1 commit a8d4571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SliceMap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ MapCols{d}(f::Function, M::AbstractMatrix, args...) where {d} =
9999
_MapCols(map, f, M, Val(d), args...)
100100

101101
function _MapCols(map::Function, f::Function, M::Matrix{T}, ::Val{d}, args...) where {T,d}
102-
d == size(M,1) || error("expected M with $d columns")
102+
d == size(M,1) || error("expected M with $d rows")
103103
A = reinterpret(SArray{Tuple{d}, T, 1, d}, vec(M))
104104
B = map(col -> surevec(f(col, args...)), A)
105105
reduce(hcat, B)
@@ -112,7 +112,7 @@ _MapCols(map::Function, f::Function, M::TrackedMatrix, dval, args...) =
112112
∇MapCols(map, f, M, dval, args...)
113113

114114
function ∇MapCols(bigmap::Function, f::Function, M::AbstractMatrix{T}, dval::Val{d}, args...) where {T,d}
115-
d == size(M,1) || error("expected M with $d columns")
115+
d == size(M,1) || error("expected M with $d rows")
116116
k = size(M,2)
117117

118118
A = reinterpret(SArray{Tuple{d}, T, 1, d}, vec(data(M)))

0 commit comments

Comments
 (0)