CXML
SOLR3 (3sciport)
Solves a second order linear recurrence for three terms
SYNOPSIS
CALL SOLR3( n, x, incx, y, incy, z, incz )
ARGUMENTS
n Integer.
The length of the linear recurrence. If n <= 0, SOLR3
returns without any computation.
x Real vector.
An input vector of length n.
incx Integer.
The increment between elements of vector x.
y Real vector.
An input vector of length n.
incy Integer.
The increment between elements of vector y.
z Real vector.
A result vector of length n.
incz Integer.
The increment between elements of vector z.
DESCRIPTION
SOLR3 computes a second order linear recurrence of three terms as in:
DO I = 3,N
Z(I) = Z(I+2) + X(I-2)*Z(I-1) + Y(I-2)Z(I-2)
ENDDO
All values of z are input to the routine, and elements z(3) through z(n)
are output.
For equations and other information, see Volume 3: UNICOS Math and
Scientific Library Reference Manual SR-2081 7.0, Cray Research, Inc.
CXML Home Page Index of CXML Routines