| igraph Reference Manual |
|---|
void igraph_vector_copy_to(const igraph_vector_t *v, igraph_real_t *to);
The C array should have sufficient length.
Arguments:
v: |
The vector object. |
to: |
The C array. |
Time complexity: O(n), n is the size of the vector.
int igraph_vector_update(igraph_vector_t *to, const igraph_vector_t *from);
After this operation the contents of to will be exactly the same
from. to will be resized if it was originally shorter or
longer than from.
Arguments:
to: |
The vector to update. |
from: |
The vector to update from. |
Returns:
|
Error code. |
Time complexity: O(n), the number of elements in from.
int igraph_vector_append(igraph_vector_t *to, const igraph_vector_t *from);
The target vector will be resized (except from is empty).
Arguments:
to: |
The vector to append to. |
from: |
The vector to append, it is kept unchanged. |
Returns:
|
Error code. |
Time complexity: O(n), the number of elements in the new vector.
| << 2.5. Vector views | 2.7. Exchanging elements >> |