Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
  • Loading branch information
yiyuezhuo and devmotion committed Aug 21, 2020
1 parent 01250ce commit de86456
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bijectors/corr.jl
Expand Up @@ -46,8 +46,7 @@ end


function _inv_link_chol_lkj(y)
@assert size(y, 1) == size(y, 2)
K = size(y, 1)
K = LinearAlgebra.checksquare(y)

z = tanh.(y)
w = similar(z)
Expand Down Expand Up @@ -76,8 +75,7 @@ function _inv_link_chol_lkj(y)
end

function _link_chol_lkj(w)
@assert size(w, 1) == size(w, 2)
K = size(w, 1)
K = LinearAlgebra.checksquare(w)

z = zero(w)

Expand Down

0 comments on commit de86456

Please sign in to comment.