infinite_norm_error(3P) Sun Performance Library infinite_norm_error(3P)NAME
infinite_norm_error: cinfinite_norm_error, dinfinite_norm_error, sinfi‐
nite_norm_error, zinfinite_norm_error - A utility function of the
SuperLU solver that computes the infinity-norm of an array of vectors
that are approximations to the exact solution vector.
SYNOPSIS
#include <sunperf.h>
void sinfinite_norm_error(int n, SuperMatrix *X, float *exact, float
*err);
void dinfinite_norm_error(int n, SuperMatrix *X, double *exact, double
*err);
void cinfinite_norm_error(int n, SuperMatrix *X, complex *exact, float
*err);
void zinfinite_norm_error(int n, SuperMatrix *X, doublecomplex *exact,
double *err);
void sinfinite_norm_error_64(long n, SuperMatrix *X, float *exact,
float *err);
void dinfinite_norm_error_64(long n, SuperMatrix *X, double *exact,
double *err);
void cinfinite_norm_error_64(long n, SuperMatrix *X, complex *exact,
float *err);
void zinfinite_norm_error_64(long n, SuperMatrix *X, doublecomplex
*exact, double *err);
PURPOSE
infinite_norm_error[_64] (dinfinite_norm_error[_64], cinfi‐
nite_norm_error[_64], zinfinite_norm_error[_64]) computes the infinity-
norms of n computed solution vectors. The computed solution vectors
are stored as an array of n vectors in a SuperMatrix while the true
solution vector exact is stored as a dense vector.
for i = 1, n
[computed(1:m,i) - exact(1:m)]_inf= err(i)
end
ARGUMENTS
int n (input)
Number of computed solution vectors
SuperMatrix *X (input)
X is the SuperMatrix in which the computed vectors are
stored. The length of each vector and the leading dimension
of the array of vectors are also stored in X.
float *exact (input)
exact is the exact solution vector.
float *err (input)
err is a vector of length n containing the infinity-norm of
each vector in X.
COPYRIGHT
Copyright (c) 2003, The Regents of the University of California,
through Lawrence Berkeley National Laboratory (subject to receipt of
any required approvals from U.S. Dept. of Energy)
SEE ALSO
SuperMatrix
http://crd.lbl.gov/~xiaoye/SuperLU/
James W. Demmel, Stanley C. Eisenstat, John R. Gilbert, Xiaoye S. Li
and Joseph W. H. Liu, "A supernodal approach to sparse partial pivot‐
ing", SIAM J. Matrix Analysis and Applications, Vol. 20, Num. 3, 1999,
pp. 720-755.
6 Mar 2009 infinite_norm_error(3P)