We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
to_gap
The following code creates a plist of capacity length(v) but size 0 (!), then fills it, but never sets the length.
length(v)
function to_gap(v :: Array{T, 1} where T) :: MPtr l = NewPlist(length(v)) for i in 1:length(v) l[i] = v[i] end return l end
The text was updated successfully, but these errors were encountered:
We need to set it in the NewPlistconstructor in libgap. See gap-system/gap#2963
NewPlist
Sorry, something went wrong.
Okay, when investigating this, the list seems to be all right. [] uses ASS_LIST, so it should set the length correctly:
[]
ASS_LIST
julia> xx=[1] 1-element Array{Int64,1}: 1 julia> GAP.to_gap(xx) GAP: [ 1 ] julia> x = GAP.to_gap(xx) GAP: [ 1 ] julia> GAP.GAPFuncs.Length(x) 1
Indeed, I was totally wrong. Sorry!
sebasguts
No branches or pull requests
The following code creates a plist of capacity
length(v)
but size 0 (!), then fills it, but never sets the length.The text was updated successfully, but these errors were encountered: