@@ -891,7 +891,7 @@ function typed_vcat{T}(::Type{T}, V::AbstractVector...)
891
891
for Vk in V
892
892
n += length (Vk)
893
893
end
894
- a = similar (full ( V[1 ]) , T, n)
894
+ a = similar (V[1 ], T, n)
895
895
pos = 1
896
896
for k= 1 : length (V)
897
897
Vk = V[k]
@@ -919,7 +919,7 @@ function typed_hcat{T}(::Type{T}, A::AbstractVecOrMat...)
919
919
nd = ndims (Aj)
920
920
ncols += (nd== 2 ? size (Aj,2 ) : 1 )
921
921
end
922
- B = similar (full ( A[1 ]) , T, nrows, ncols)
922
+ B = similar (A[1 ], T, nrows, ncols)
923
923
pos = 1
924
924
if dense
925
925
for k= 1 : nargs
@@ -951,7 +951,7 @@ function typed_vcat{T}(::Type{T}, A::AbstractMatrix...)
951
951
throw (ArgumentError (" number of columns of each array must match (got $(map (x-> size (x,2 ), A)) )" ))
952
952
end
953
953
end
954
- B = similar (full ( A[1 ]) , T, nrows, ncols)
954
+ B = similar (A[1 ], T, nrows, ncols)
955
955
pos = 1
956
956
for k= 1 : nargs
957
957
Ak = A[k]
@@ -998,7 +998,7 @@ function cat_t(catdims, typeC::Type, X...)
998
998
end
999
999
end
1000
1000
1001
- C = similar (isa (X[1 ],AbstractArray) ? full ( X[1 ]) : [X[1 ]], typeC, tuple (dimsC... ))
1001
+ C = similar (isa (X[1 ],AbstractArray) ? X[1 ] : [X[1 ]], typeC, tuple (dimsC... ))
1002
1002
if length (catdims)> 1
1003
1003
fill! (C,0 )
1004
1004
end
@@ -1070,7 +1070,7 @@ function typed_hvcat{T}(::Type{T}, rows::Tuple{Vararg{Int}}, as::AbstractMatrix.
1070
1070
a += rows[i]
1071
1071
end
1072
1072
1073
- out = similar (full ( as[1 ]) , T, nr, nc)
1073
+ out = similar (as[1 ], T, nr, nc)
1074
1074
1075
1075
a = 1
1076
1076
r = 1
0 commit comments