Skip to content

Commit e4da4e9

Browse files
juhyun-kim-uclaHua-Zhou
authored andcommitted
fix deprecation warning
1 parent f225ca5 commit e4da4e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/VarianceComponentModels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function TwoVarCompVariateRotate(vcobs::VarianceComponentVariate{T, 2}) where T
234234
end
235235
# rotate responses
236236
Yrot = transpose(U) * vcobs.Y
237-
Xrot = isempty(vcobs.X) ? Array{T}(size(Yrot, 1), 0) : transpose(U) * vcobs.X
237+
Xrot = isempty(vcobs.X) ? Array{T}(undef, size(Yrot, 1), 0) : transpose(U) * vcobs.X
238238
# output
239239
TwoVarCompVariateRotate(Yrot, Xrot, deval, U, logdetV2)
240240
end

0 commit comments

Comments
 (0)