lis_vector_set_value - Man Page

assign the scalar value to the row of the vector

Synopsis

#include "lis.h"

LIS_INT lis_vector_set_value(LIS_INT flag, LIS_INT i, LIS_SCALAR value, LIS_VECTOR v);

Description

Assign the scalar value to the i-th row of vector v.

Input

flag
LIS_INS_VALUE

v[i] = value

LIS_ADD_VALUE

v[i] = v[i] + value

i

The location where the value is assigned

value

The scalar value to be assigned

v

The destination vector

Output

v

The vector with the scalar value assigned to the i-th row

Exit Status

The following exit values are returned:

0

The process is normally terminated

unspecified

An error occurred

Note

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.

See Also

lis(3)

http://www.ssisc.org/lis/

Info

6 Sep 2012 Man Page Lis Library Functions