There is one prototype of getri
available, please see below.
getri( MatrixA& a, const VectorIPIV& ipiv );
getri
(short for $FRIENDLY_NAME)
provides a C++ interface to LAPACK routines SGETRI, DGETRI, CGETRI, and
ZGETRI. getri
computes
the inverse of a matrix using the LU factorization computed by ZGETRF.
This method inverts U and then computes inv(A) by solving the system inv(A)*L = inv(U) for inv(A).
The selection of the LAPACK routine is done during compile-time, and
is determined by the type of values contained in type MatrixA
.
The type of values is obtained through the value_type
meta-function typename value_type<MatrixA>::type
. The dispatching table below illustrates
to which specific routine the code path will be generated.
Table 1.247. Dispatching of getri
Value type of MatrixA |
LAPACK routine |
---|---|
|
SGETRI |
|
DGETRI |
|
CGETRI |
|
ZGETRI |
Defined in header boost/numeric/bindings/lapack/computational/getri.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/computational/getri.hpp> using namespace boost::numeric::bindings; lapack::getri( x, y, z );
this will output
[5] 0 1 2 3 4 5