示例#1
0
// Set the Vector's value at index i to value (float)
// (unclear what happens if index is out of range)
func (v *Vector) SetFloat(value float64, index int) {
	C.igraph_vector_set(v.vec, C.long(index), C.igraph_real_t(value))
}
示例#2
0
// Set the Vector's value at index i to value (int)
// (unclear what happens if index is out of range)
func (v *Vector) SetInt(value int, index int) {
	C.igraph_vector_set(v.vec, C.long(index), C.igraph_real_t(value))
}