Skip to content

Commit

Permalink
Fix typo in dct
Browse files Browse the repository at this point in the history
  • Loading branch information
magistere committed Dec 16, 2013
1 parent 12b8a32 commit 23c4cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/dsp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ for (f, fr2r, Y, Tx) in ((:dct, :r2r, :Y, :Number),
end

# DCT of scalar is just the identity:
dct(x::Number, dims) = length(dims) == 0 || dims[1] == 1 ? x : throw(BoundsError())x
dct(x::Number, dims) = length(dims) == 0 || dims[1] == 1 ? x : throw(BoundsError())
idct(x::Number, dims) = dct(x, dims)
dct(x::Number) = x
idct(x::Number) = x
Expand Down

0 comments on commit 23c4cd9

Please sign in to comment.