Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#484 - Fix membership test of ExponentialMap #485

Merged
merged 3 commits into from
Aug 6, 2018
Merged

Conversation

schillic
Copy link
Member

@schillic schillic commented Aug 6, 2018

Closes #484.

  • fix code
  • add unit test
  • fix doctest

@schillic schillic requested a review from mforets August 6, 2018 11:46
Copy link
Member

@mforets mforets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
thanks for fixing.

@@ -253,15 +253,15 @@ This follows from ``\\exp(-M)⋅\\exp(M) = I`` for any ``M``.
julia> em = ExponentialMap(SparseMatrixExp(SparseMatrixCSC([2.0 0.0; 0.0 1.0])),
BallInf([1., 1.], 1.));

julia> ∈([5.0, 1.0], em)
julia> ∈([-1.0, 1.0], em)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually we need a space before each julia> for the test to work. does it mean that we are not doctesting

(x::AbstractVector{N}, em::ExponentialMap{<:LazySet{N}})::Bool where {N<:Real}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the lines below each command must be equal to the output in the REPL. If the command ends with a ;, the REPL just prints an empy line. Hence you need an empty line after each julia> that ends in ;. The doctests worked here.

@schillic schillic merged commit e603a8f into master Aug 6, 2018
@schillic schillic deleted the schillic/484 branch August 6, 2018 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Membership test of ExponentialMap is incorrect
2 participants