@@ -1014,7 +1014,7 @@ function typed_vcat{T}(::Type{T}, V::AbstractVector...)
1014
1014
for Vk in V
1015
1015
n += length (Vk)
1016
1016
end
1017
- a = similar (full ( V[1 ]) , T, n)
1017
+ a = similar (V[1 ], T, n)
1018
1018
pos = 1
1019
1019
for k= 1 : length (V)
1020
1020
Vk = V[k]
@@ -1042,7 +1042,7 @@ function typed_hcat{T}(::Type{T}, A::AbstractVecOrMat...)
1042
1042
nd = ndims (Aj)
1043
1043
ncols += (nd== 2 ? size (Aj,2 ) : 1 )
1044
1044
end
1045
- B = similar (full ( A[1 ]) , T, nrows, ncols)
1045
+ B = similar (A[1 ], T, nrows, ncols)
1046
1046
pos = 1
1047
1047
if dense
1048
1048
for k= 1 : nargs
@@ -1074,7 +1074,7 @@ function typed_vcat{T}(::Type{T}, A::AbstractMatrix...)
1074
1074
throw (ArgumentError (" number of columns of each array must match (got $(map (x-> size (x,2 ), A)) )" ))
1075
1075
end
1076
1076
end
1077
- B = similar (full ( A[1 ]) , T, nrows, ncols)
1077
+ B = similar (A[1 ], T, nrows, ncols)
1078
1078
pos = 1
1079
1079
for k= 1 : nargs
1080
1080
Ak = A[k]
@@ -1303,7 +1303,7 @@ function typed_hvcat{T}(::Type{T}, rows::Tuple{Vararg{Int}}, as::AbstractMatrix.
1303
1303
a += rows[i]
1304
1304
end
1305
1305
1306
- out = similar (full ( as[1 ]) , T, nr, nc)
1306
+ out = similar (as[1 ], T, nr, nc)
1307
1307
1308
1308
a = 1
1309
1309
r = 1
0 commit comments