Skip to content

Commit

Permalink
Hard-code constant values
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Jan 19, 2022
1 parent dc5e7b9 commit dd67276
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions test/test_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,23 @@ jyvp(x,y,v) = dfjacdy(x,y)*v
vJxp(x,y,v) = dfjacdx(x,y)'*v
vJyp(x,y,v) = dfjacdy(x,y)'*v

const xscalar = rand()
const yscalar = rand()

const xvec = rand(5)
const yvec = rand(5)
const xscalar = 0.32597672886359486
const yscalar = 0.5490511363155669

const xvec = [
0.21858665481883066
0.8942454282009883
0.35311164439921205
0.39425536741585077
0.9531246272848422
]
const yvec = [
0.7955469475347194
0.4942498668904206
0.7484150218874741
0.5782319465613976
0.7279350012266056
]

# to check if vectors get mutated
xvec2 = deepcopy(xvec)
Expand Down

0 comments on commit dd67276

Please sign in to comment.