document that igraph_vector_init() constructs a vector of zeros

Bug #782250 reported by Minh Van Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Fix Released
Undecided
Unassigned

Bug Description

The default behaviour of igraph_vector_init() is to construct a vector of a given size and then initializes each entry to zero. Document this and point out that one could just use igraph_vector_init() to create a vector of zeros, rather than first construct a vector and then use igraph_vector_null().

Revision history for this message
Minh Van Nguyen (mvngu) wrote :
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Thanks! Added in revision #2464 (0.6-main).

Changed in igraph:
status: New → Fix Released
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/436

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.