lis_array_matvect - Man Page

calculate the matrix vector product

Synopsis

#include "lis.h"

LIS_INT lis_array_matvect(LIS_INT n, LIS_SCALAR a[], LIS_SCALAR x[], LIS_SCALAR y[], LIS_INT op);

Description

Calculate the matrix-vector product A^Tx.

Input

n

The size of the matrix and vectors

a

The array that stores matrix A of size n * n

x

The array that stores vector x of size n

y

The array that stores vector y of size n

op
LIS_INS_VALUE

y = A^Tx

LIS_SUB_VALUE

y = y - A^Tx

Output

y

y

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

3 Dec 2014 Man Page Lis Library Functions