Skip to content

Commit

Permalink
fix missing ||
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Aug 1, 2017
1 parent cec0b33 commit 0700825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function get_colwise_dims(d::Int, r::AbstractArray, a::AbstractVector, b::Abstra
end

function get_colwise_dims(d::Int, r::AbstractArray, a::AbstractMatrix, b::AbstractVector)
size(a, 1) == length(b) == d
throw(DimensionMismatch("Incorrect vector dimensions."))
size(a, 1) == length(b) == d ||
throw(DimensionMismatch("Incorrect vector dimensions."))
length(r) == size(a, 2) || throw(DimensionMismatch("Incorrect size of r."))
return size(a)
end
Expand Down

0 comments on commit 0700825

Please sign in to comment.