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:
-
n | Size of matrix. |
alpha | Scalar alpha. |
t | Pointer to the first element of the first column (row) of the Toeplitz matrix. |
x | Pointer to the first element of vector x. |
b | Pointer 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:
-
n | Size of matrix. |
t | Pointer 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:
-
n | Size of matrix. |
t | Pointer to the first element of the first column (row) of the Toeplitz matrix. |
x | Pointer to the first element of solution vector. |
b | Pointer to the first element of the right hand side vector. Changed on output. |
nb | Block size. |
piv | Uses local diagonal pivoting if nonzero. |