-
Notifications
You must be signed in to change notification settings - Fork 22
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
Added conversion for two-dimensional arrays #228
Added conversion for two-dimensional arrays #228
Conversation
06a741f
to
0eafe08
Compare
Codecov Report
@@ Coverage Diff @@
## master #228 +/- ##
=======================================
Coverage 75.21% 75.21%
=======================================
Files 5 5
Lines 456 456
=======================================
Hits 343 343
Misses 113 113 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two typos must be fixed.
Besides that, eventually the documentation will have to describe the effects of recursive conversions;
as far as I see, equal subobjects on the source side are turned into identical objects on the target side.
new_array = Array{T,2}( undef, len_list_outer, len_list_inner ) | ||
recursion_dict[obj] = new_array | ||
for i in 1:len_list_outer | ||
for j in 1:len_list_outer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1:len_list_inner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for spotting this, fixed now
new_array = Array{Union{Nothing,T},2}( undef, len_list_outer, len_list_inner ) | ||
recursion_dict[obj] = new_array | ||
for i in 1:len_list_outer | ||
for j in 1:len_list_outer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1:len_list_inner
What makes you say that? This would be a bug in general. Do you have some specific examples for this? |
0eafe08
to
18e0348
Compare
I think this is a misunderstanding. Identical objects on the source side are turned into identical objects (on purpose). This is done by using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
Thanks for the explanation. |
No description provided.