casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
LUdecomp< T > Class Template Reference

On suns, at least, this needs to link with: lapack.a blas.a Since this links fortran libraries, check also whether "underscores" are needed for FORTRAN on your machine, and whether a FORTRAN MAIN is needed to initialize the fortran libraries (as it is on suns). More...

#include <LUdecomp.h>

List of all members.

Public Member Functions

 LUdecomp ()
 LUdecomp (Matrix< T > &)
 LUdecomp (const LUdecomp< T > &)
Matrix< T > getUpper () const
 The copy constructor uses reference semantics.
Matrix< T > getLower () const
Matrix< T > getPerm () const
Matrix< T > getLU () const
Block< Int > getPivot () const

Private Attributes

Matrix< T > LU
Block< Int > thePivot

Detailed Description

template<class T>
class LUdecomp< T >

On suns, at least, this needs to link with: lapack.a blas.a Since this links fortran libraries, check also whether "underscores" are needed for FORTRAN on your machine, and whether a FORTRAN MAIN is needed to initialize the fortran libraries (as it is on suns).

This is needed on Sun machines, likely not on IBM. Should be set in makedefs.

LUdecomp objects are a 2-D template matrix of numeric type which contains (in packed form) a Lower Triangular (L) and Upper Triangular (U) factorization of some numeric type matrix (A) and a block of integer type which contains (in packed form) the Permutation Matrix (P), i.e. A=PLU. The data members are filled by the LUdecomp constructors calling LAPACK's Fortran xGETRF subroutine.

Definition at line 53 of file LUdecomp.h.


Constructor & Destructor Documentation

template<class T>
LUdecomp< T >::LUdecomp ( )
template<class T>
LUdecomp< T >::LUdecomp ( Matrix< T > &  )
template<class T>
LUdecomp< T >::LUdecomp ( const LUdecomp< T > &  )

Member Function Documentation

template<class T>
Matrix<T> LUdecomp< T >::getLower ( ) const
template<class T>
Matrix<T> LUdecomp< T >::getLU ( ) const [inline]

Definition at line 65 of file LUdecomp.h.

References LUdecomp< T >::LU.

template<class T>
Matrix<T> LUdecomp< T >::getPerm ( ) const
template<class T>
Block<Int> LUdecomp< T >::getPivot ( ) const [inline]

Definition at line 66 of file LUdecomp.h.

References LUdecomp< T >::thePivot.

template<class T>
Matrix<T> LUdecomp< T >::getUpper ( ) const

The copy constructor uses reference semantics.


Member Data Documentation

template<class T>
Matrix<T> LUdecomp< T >::LU [private]

Definition at line 69 of file LUdecomp.h.

Referenced by LUdecomp< T >::getLU().

template<class T>
Block<Int> LUdecomp< T >::thePivot [private]

Definition at line 70 of file LUdecomp.h.

Referenced by LUdecomp< T >::getPivot().


The documentation for this class was generated from the following file: