Skip to content

Commit

Permalink
Fix MethodError
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Nov 6, 2017
1 parent 67815fa commit f5a07b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/alspgrad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ k = 3

# Matrices
for T in (Float64, Float32)
Wg = max.(rand(T, p, k) .- 0.3, 0)
Hg = max.(rand(T, k, n) .- 0.3, 0)
Wg = max.(rand(T, p, k) .- T(0.3), zero(T))
Hg = max.(rand(T, k, n) .- T(0.3), zero(T))
X = Wg * Hg

# test update of H
Expand Down

0 comments on commit f5a07b8

Please sign in to comment.