Skip to content

Commit 1be47cc

Browse files
authored
Merge pull request #104 from JuliaArrays/sd/fixtypo
fix #103
2 parents 7f610e0 + ff6b12f commit 1be47cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/SMatrix.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ end
116116
## SMatrix methods ##
117117
#####################
118118

119-
similar_type{T,N,M,L,S}(::Type{SMatrix{N,M,T,L}}, ::Type{S}) = SMatrix{M,N,S,L}
119+
similar_type{T,N,M,L,S}(::Type{SMatrix{N,M,T,L}}, ::Type{S}) = SMatrix{N, M, S, L}
120120
similar_type{T,N,M,L,S}(::Type{SMatrix{N,M,T,L}}, ::Type{S}, Size::Tuple{Int}) = SVector{Size[1],S}
121121

122122
@pure size{S1,S2}(::Type{SMatrix{S1,S2}}) = (S1, S2)

test/mapreduce.jl

+2
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@
7272

7373
broadcast!(+, mm, v1, M)
7474
@test mm == @MMatrix [3 4; 7 8; 11 12; 15 16]
75+
# issue #103
76+
@test map(+, M, M) == [2 4; 6 8; 10 12; 14 16]
7577
end
7678
end

0 commit comments

Comments
 (0)