Skip to content

Commit ac99a68

Browse files
juhyun-kim-uclaHua-Zhou
authored andcommitted
create extra constructors
1 parent eedad36 commit ac99a68

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/VarianceComponentModels.jl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@ function TwoVarCompModelRotate(
9494
TwoVarCompModelRotate{eltype(Brot), typeof(Brot)}(Brot, eigval, eigvec, logdetΣ2)
9595
end
9696

97+
"""
98+
TwoVarCompModelRotate(twovarcomp)
99+
100+
Constructor of [`TwoVarCompModelRotate`](@ref) instance from a
101+
[`TwoVarCompModelRotate`](@ref) instance itself.
102+
"""
103+
function TwoVarCompModelRotate(
104+
twovarcomp::TwoVarCompModelRotate{T}) where T <: AbstractFloat
105+
106+
## JK ###
107+
twovarcomp
108+
end
109+
97110
"""
98111
TwoVarCompModelRotate(vcmodel)
99112
@@ -197,6 +210,19 @@ function TwoVarCompVariateRotate(
197210
eigval, eigvec, logdetV2)
198211
end
199212

213+
"""
214+
TwoVarCompVariateRotate(twovarcomp)
215+
216+
Constructor of a [`TwoVarCompVariateRotate`](@ref) instance from a
217+
[`TwoVarCompVariateRotate`](@ref) instance itself.
218+
"""
219+
function TwoVarCompVariateRotate(
220+
twovarcomp::TwoVarCompVariateRotate{T}) where T <: AbstractFloat
221+
222+
## JK ###
223+
twovarcomp
224+
end
225+
200226
"""
201227
TwoVarCompVariateRotate(vcobs)
202228

0 commit comments

Comments
 (0)