lis_matrix_set_value(3f)

NAME
lis_matrix_set_value - assign the scalar value to the element of the matrix

SYNOPSIS
subroutine lis_matrix_set_value(LIS_INTEGER flag, LIS_INTEGER i, LIS_INTEGER j, LIS_SCALAR value, LIS_MATRIX A, LIS_INTEGER ierr);

DESCRIPTION
Assign the scalar value to the (i, j)-th row of matrix A.

INPUT

flag

    LIS_INS_VALUE
        A[i, j] = value

    LIS_ADD_VALUE
        A[i, j] = A[i, j] + value

    i   The row number of the matrix

    j   The column number of the matrix

    value
        The scalar value to be assigned

    A   The matrix

OUTPUT

A   The matrix

NOTE
For the multiprocessing environment, the i-th row and the j-th column of the global matrix must be specified. The function lis_matrix_set_value stores the assigned value in a temporary internal format. Therefore, after lis_matrix_set_value is called, the function lis_matrix_assemble must be called.

SEE ALSO
lis(3)

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