65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
Initialise empty vector
|
|
Initialise vector of length 10
|
|
( 0 0 0 0 0 0 0 0 0 0 )
|
|
Test VECTOR() and igraph_vector_size
|
|
( 10 9 8 7 6 5 4 3 2 1 )
|
|
Test igraph_vector_reserve and igraph_vector_push_back
|
|
Test igraph_vector_empty and igraph_vector_clear
|
|
Test igraph_vector_get and igraph_vector_get_ptr
|
|
0 100 200 300 400
|
|
Test igraph_vector_set
|
|
( 0 20 40 60 80 )
|
|
Test igraph_vector_null
|
|
( 0 0 0 0 0 0 0 0 0 0 )
|
|
Test igraph_vector_tail, igraph_vector_pop_back
|
|
10 10 9 9 8 8 7 7 6 6 5 5 4 4 3 3 2 2 1 1
|
|
Test igraph_vector_resize, igraph_vector_sort
|
|
( 1 2 3 4 5 6 7 8 9 10 )
|
|
Test igraph_vector_{which}_{min, max}
|
|
100 99 98 97 96 95 94 93 92 91
|
|
Test NaN values
|
|
Test igraph_vector_init_array
|
|
( 100 99 98 97 96 95 94 93 92 91 )
|
|
Test igraph_vector_copy_to
|
|
11 12 13 14 15 16 17 18 19 20
|
|
Test igraph_vector_init_range, igraph_vector_sum, igraph_vector_prod
|
|
15 120
|
|
Test igraph_vector_remove_section
|
|
( 1 2 5 )
|
|
Test igraph_vector_remove_section with invalid limits
|
|
( 1 2 5 )
|
|
( 1 )
|
|
Test igraph_vector_remove
|
|
( 2 3 4 5 7 8 9 )
|
|
Test igraph_vector_remove_fast
|
|
( 9 2 3 4 8 6 7 )
|
|
Test igraph_vector_move_interval
|
|
( 5 6 7 8 9 5 6 7 8 9 )
|
|
Test igraph_vector_isininterval
|
|
Test igraph_vector_any_smaller
|
|
Test igraph_vector_all_e
|
|
Test igraph_vector_binsearch
|
|
Test Binsearch in empty vector
|
|
Test igraph_vector_init_real
|
|
( 1 2 3 4 5 6 7 8 9 10 )
|
|
Test igraph_vector_init_int
|
|
( 1 2 3 4 5 6 7 8 9 10 )
|
|
Test igraph_vector_init_real
|
|
( 1 2 3 4 5 6 7 8 9 10 )
|
|
Test igraph_vector_init_int
|
|
( 1 2 3 4 5 6 7 8 9 10 )
|
|
Test filter_smaller, quite special....
|
|
( 4 4 5 6 7 8 )
|
|
( 1 2 3 4 4 4 4 5 6 7 8 )
|
|
( 0 1 2 3 4 4 4 4 5 6 7 8 )
|
|
Test igraph_i_vector_int_rank and igraph_i_vector_int_order
|
|
( 0 1 2 6 5 2 1 0 )
|
|
( 1 3 5 7 6 4 2 0 )
|
|
( 7 0 6 1 5 2 4 3 )
|
|
Test pair order
|
|
( 0 1 2 3 )
|
|
Test fill
|
|
Test range
|
|
Test igraph_vector_int_init_range, igraph_i_vector_int_order
|
|
( 9 8 7 6 5 4 3 2 1 0 )
|