PrevUpHomeNext
tpsv
Prototype

There is one prototype of tpsv available, please see below.

tpsv( const MatrixAP& ap, VectorX& x );

Description

tpsv (short for triangular, packed, solve system of equations) provides a C++ interface to BLAS routines STPSV, DTPSV, CTPSV, and ZTPSV. tpsv solves one of the systems of equations

A*x = b, or A'*x = b, or conjg( A' )*x = b,

where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular matrix, supplied in packed form.

No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine.

The selection of the BLAS routine is done during compile-time, and is determined by the type of values contained in type MatrixAP. The type of values is obtained through the value_type meta-function typename value_type<MatrixAP>::type. Table X below illustrates to which specific routine this dispatching will take place.

Table 1.76. Dispatching of tpsv.

Value type of MatrixAP

BLAS routine

CBLAS routine

CUBLAS routine

float

STPSV

cblas_stpsv

cublasStpsv

double

DTPSV

cblas_dtpsv

Unavailable

complex<float>

CTPSV

cblas_ctpsv

cublasCtpsv

complex<double>

ZTPSV

cblas_ztpsv

Unavailable


The original routines STPSV, DTPSV, CTPSV, and ZTPSV have seven arguments, whereas tpsv requires two arguments.

Table 1.77. Deduction of arguments of tpsv.


Definition

Defined in header boost/numeric/bindings/blas/level2/tpsv.hpp.

Parameters or Requirements on Types

Parameters

MatrixA

The definition of term 1

MatrixB

The definition of term 2

MatrixC

The definition of term 3.

Definitions may contain paragraphs.

Complexity
Example

#include <boost/numeric/bindings/blas/level2/tpsv.hpp>
using namespace boost::numeric::bindings;

blas::tpsv( x, y, z );

this will output

[5] 0 1 2 3 4 5

Notes
See Also

PrevUpHomeNext