lis_matrix_scaling(3)

NAME
lis_matrix_scaling - scale the matrix

SYNOPSIS
#include "lis.h" LIS_INT lis_matrix_scaling(LIS_MATRIX A, LIS_VECTOR b, LIS_VECTOR d, LIS_INT action);

DESCRIPTION
Scale matrix A.

INPUT

i   The row number of the matrix

j   The column number of the matrix

value
    The scalar value to be assigned

A   The matrix

b   The vector

action

    LIS_SCALE_JACOBI
        Jacobi scaling D^-1 A x = D^-1 b, where D represents the diagonal of A=(a_ij)

    LIS_SCALE_SYMM_DIAG
        Diagonal scaling D^-1/2 A D^-1/2 x = D^-1/2 b, where D^-1/2 represents the diagonal matrix with (a_ii)^-1/2 as the diagonal

OUTPUT

d   The vector which stores the diagonal elements of D^-1 or D^-1/2

EXIT STATUS
The following exit values are returned:

0   The process is normally terminated

unspecified
    An error occurred

SEE ALSO
lis(3)

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