PrevUpHomeNext
getri
Prototype

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

getri( MatrixA& a, const VectorIPIV& ipiv );

Description

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

float

SGETRI

double

DGETRI

complex<float>

CGETRI

complex<double>

ZGETRI


Definition

Defined in header boost/numeric/bindings/lapack/computational/getri.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/lapack/computational/getri.hpp>
using namespace boost::numeric::bindings;

lapack::getri( x, y, z );

this will output

[5] 0 1 2 3 4 5

Notes
See Also

PrevUpHomeNext