StructPack 1.1
Functions/Subroutines
csp_tpsymm.h File Reference

Header file for using the csp_tpsymm module from C source code. More...

Functions/Subroutines

void csp_tpsymm_solver (const int n, const double *t, double *x, double *b, const int nb, const int piv)
 Solves the linear system T x = b, where T is a symmetric Toeplitz matrix.
double csp_tpsymm_nrm1 (const int n, const double *t)
 Calculates the 1-norm of a symmetric Toeplitz matrix.
void csp_tpsymm_gemv (const int n, const double alpha, const double *t, const double *x, double *b)
 Computes the matrix-vector operation defined as b = b + alpha * T * x, where T is a symmetric Toeplitz matrix.

Detailed Description

Header file for using the csp_tpsymm module from C source code.

This file contains the suitable function prototypes for calling the csp_tpsymm module routines from C source code.

Author:
Pablo Martinez Naredo

Function Documentation

void csp_tpsymm_gemv ( const int  n,
const double  alpha,
const double *  t,
const double *  x,
double *  b 
)

Computes the matrix-vector operation defined as b = b + alpha * T * x, where T is a symmetric Toeplitz matrix.

Parameters:
nSize of matrix.
alphaScalar alpha.
tPointer to the first element of the first column (row) of the Toeplitz matrix.
xPointer to the first element of vector x.
bPointer to the first element of vector b. Changed on output.
double csp_tpsymm_nrm1 ( const int  n,
const double *  t 
)

Calculates the 1-norm of a symmetric Toeplitz matrix.

Parameters:
nSize of matrix.
tPointer to the first element of the first column (row) of the Toeplitz matrix.
Returns:
The 1-norm of the Toeplitz matrix.
void csp_tpsymm_solver ( const int  n,
const double *  t,
double *  x,
double *  b,
const int  nb,
const int  piv 
)

Solves the linear system T x = b, where T is a symmetric Toeplitz matrix.

Parameters:
nSize of matrix.
tPointer to the first element of the first column (row) of the Toeplitz matrix.
xPointer to the first element of solution vector.
bPointer to the first element of the right hand side vector. Changed on output.
nbBlock size.
pivUses local diagonal pivoting if nonzero.