lis_vector_set_values - assign the scalar values to the rows of the vector
#include "lis.h"
LIS_INT lis_vector_set_values(LIS_INT flag,
LIS_INT count, LIS_INT index[], LIS_SCALAR value[],
LIS_VECTOR v);
Assign scalar value[i] to the index[i]-th row of the
vector v, where [i]=0,1,...,[count]-1.
- flag
- LIS_INS_VALUE
- v[index[i]] = value[i]
- LIS_ADD_VALUE
- v[index[i]] = v[index[i]] +
value[i]
- i
- The location where the value is assigned
- value
- The scalar value to be assigned
- v
- The destination vector
- v
- The vector with the scalar value assigned to the i-th row
The following exit values are returned:
- 0
- The process is normally terminated
- unspecified
- An error occurred
For the multiprocessing environment, the i-th row of the global vector
must be specified instead of the i-th row of the partial vector.
lis(3)
http://www.ssisc.org/lis/