Skip to content

Commit 86ff820

Browse files
fixing warning on travis build about length1 vector array arithmetic
1 parent 8e7e0d4 commit 86ff820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selectiveInference/R/funs.sampler.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ log_concave_sampler = function(negative_log_density,
5454

5555
update_velocity = function(){
5656
Z=rnorm(dim)
57-
return(Z/sqrt(t(Z)%*%Z))
57+
return(Z/sqrt(sum(Z^2)))
5858
}
5959

6060
compute_next = function(state){

0 commit comments

Comments
 (0)