casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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 <MatrixMath.h>

Public Member Functions

 LUdecomp ()
 
 LUdecomp (casacore::Matrix< T > &)
 
 LUdecomp (const LUdecomp< T > &)
 
casacore::Matrix< T > getUpper () const
 The copy constructor uses reference semantics. More...
 
casacore::Matrix< T > getLower () const
 
casacore::Matrix< T > getPerm () const
 
casacore::Matrix< T > getLU () const
 
casacore::Block< casacore::IntgetPivot () const
 

Private Attributes

casacore::Matrix< T > LU
 
casacore::Block< casacore::IntthePivot
 

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 casacore::Matrix (P), i.e. A=PLU. The data members are filled by the LUdecomp constructors calling LAPACK's Fortran xGETRF subroutine.

Definition at line 36 of file MatrixMath.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 65 of file LUdecomp.h.

References LUdecomp< T >::LU.

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

Definition at line 66 of file LUdecomp.h.

References LUdecomp< T >::thePivot.

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

The copy constructor uses reference semantics.

Member Data Documentation

template<class T>
casacore::Matrix<T> LUdecomp< T >::LU
private

Definition at line 69 of file LUdecomp.h.

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

template<class T>
casacore::Block<casacore::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 files: