lis_matrix_scale - Man Page

scale the matrix

Synopsis

#include "lis.h"

LIS_INT lis_matrix_scale(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/

Info

28 Aug 2014 Man Page Lis Library Functions