LTL  2.0.x
Classes
lapack.h File Reference

Classes

struct  lapack_syev_dispatch< T >
 
struct  lapack_syev_dispatch< double >
 
struct  lapack_syev_dispatch< float >
 
struct  lapack_sbev_dispatch< T >
 
struct  lapack_sbev_dispatch< double >
 
struct  lapack_sbev_dispatch< float >
 

Functions

template<typename T >
bool lapack_gesv (MArray< T, 2 > &A, MArray< T, 1 > &b)
 
template<typename T >
bool lapack_gesv (MArray< T, 2 > &A, MArray< T, 2 > &B)
 
template<typename T >
bool lapack_syev (const MArray< T, 2 > &A, MArray< T, 1 > &val, MArray< T, 2 > &vec)
 
template<typename T >
bool lapack_sbev (const MArray< T, 2 > &AB, MArray< T, 1 > &val, MArray< T, 2 > &vec)
 

Function Documentation

template<typename T >
bool lapack_gesv ( MArray< T, 2 > &  A,
MArray< T, 1 > &  b 
)

GESV computes the solution to a system of linear equations A * x = b, where A is an N-by-N matrix and x and b are N-vectors.

LU decomposition with partial pivoting and row interchanges is used to factor A as A = P * L * U, where P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form of A is then used to solve the system of equations A * x = b.

The matrix A is replaced by L and U. The vector b is unchanged. The vector b is overwritten with the solution of Ax=b.

template<typename T >
bool lapack_gesv ( MArray< T, 2 > &  A,
MArray< T, 2 > &  B 
)

GESV computes the solution to Nrhs systems of linear equations A * X = B, where A is an N-by-N matrix and X and B are N x Nrhs-matrices.

LU decomposition with partial pivoting and row interchanges is used to factor A as A = P * L * U, where P is a permutation matrix, L is unit lower triangular, and U is upper triangular. The factored form of A is then used to solve the system of equations A * x = b.

The matrix A is replaced by L and U. The Matrix B is overwritten with the solutions of A x_i = b_i, where x_i and b_i are the column vectors of X and B

template<typename T >
bool lapack_syev ( const MArray< T, 2 > &  A,
MArray< T, 1 > &  val,
MArray< T, 2 > &  vec 
)

Purpose

SYEV computes all eigenvalues and, optionally, eigenvectors of a real symmetric matrix A.

References lapack_syev_dispatch< T >::call().

template<typename T >
bool lapack_sbev ( const MArray< T, 2 > &  AB,
MArray< T, 1 > &  val,
MArray< T, 2 > &  vec 
)

Purpose

SYEV computes all eigenvalues and, optionally, eigenvectors of a real symmetric matrix A in banded storage (assuming superdiagonals are stored.

References lapack_sbev_dispatch< T >::call().