There is one prototype of gtsv
available, please see below.
gtsv( const int_t n, VectorDL& dl, VectorD& d, VectorDU& du, MatrixB& b );
gtsv (short for $FRIENDLY_NAME)
provides a C++ interface to LAPACK routines SGTSV, DGTSV, CGTSV, and
ZGTSV. gtsv solves the
equation
A*X = B,
where A is an N-by-N tridiagonal matrix, by Gaussian elimination with partial pivoting.
Note that the equation A'*X = B may be solved by interchanging the order of the arguments DU and DL.
The selection of the LAPACK routine is done during compile-time, and
is determined by the type of values contained in type VectorDL.
The type of values is obtained through the value_type
meta-function typename value_type<VectorDL>::type. The dispatching table below illustrates
to which specific routine the code path will be generated.
Table 1.131. Dispatching of gtsv
|
Value type of VectorDL |
LAPACK routine |
|---|---|
|
|
SGTSV |
|
|
DGTSV |
|
|
CGTSV |
|
|
ZGTSV |
Defined in header boost/numeric/bindings/lapack/driver/gtsv.hpp.
Parameters
The definition of term 1
The definition of term 2
The definition of term 3.
Definitions may contain paragraphs.
#include <boost/numeric/bindings/lapack/driver/gtsv.hpp> using namespace boost::numeric::bindings; lapack::gtsv( x, y, z );
this will output
[5] 0 1 2 3 4 5