Main Page | Namespace List | Class List | File List | Class Members | File Members

MyLapack.h File Reference

#include <iostream>
#include "lapack_wrapper.h"
#include "DMatrix.h"
#include "DVector.h"
#include "SMatrix.h"
#include "SVector.h"

Go to the source code of this file.

Defines

#define MyLapack   "@(#)MyLapack.h $Revision$"

Functions

int DLU_decomp (DMatrix &A, int *ipiv)
int DLU_invert (DMatrix &A, int *ipiv, double *work, int &lwork)
double DLU_det (DMatrix &A, int *ipiv)
int DLU_solve (DMatrix &M, int *ipiv, DVector &b)
int DSYEV (char jobz, char uplo, DMatrix &M, DVector &V, double *work, int &lwork)
int SLU_decomp (SMatrix &A, int *ipiv)
int SLU_invert (SMatrix &A, int *ipiv, float *work, int &lwork)
float SLU_det (SMatrix &A, int *ipiv)
int SLU_solve (SMatrix &M, int *ipiv, DVector &b)
int SSYEV (char jobz, char uplo, SMatrix &M, SVector &V, float *work, int &lwork)


Define Documentation

#define MyLapack   "@(#)MyLapack.h $Revision$"
 

Definition at line 23 of file MyLapack.h.


Function Documentation

int DLU_decomp DMatrix A,
int *  ipiv
 

LU decomposition for a dense matrix.

Parameters:
A a $N \times N$ matrix which is destroyed during the operation. The resulting LU decompositon is placed here.
ipiv a $N$ dimensional array which records the row permutation from partial pivoting.
Returns:
returns false if the calculation is singular and true otherwise

Definition at line 41 of file MyLapack.cpp.

References DMatrix::array(), DMatrix::dim1(), F77_FUNC, info, and n.

double DLU_det DMatrix A,
int *  ipiv
 

Calculates th determinant of a matrix using its LU decomposed matrix

Definition at line 27 of file MyLapack.cpp.

References DMatrix::dim1().

int DLU_invert DMatrix A,
int *  ipiv,
double *  work,
int &  lwork
 

Calculates the inverse and determinant of a matrix using a dense LU solver. This method scales as $O(1 N^3)$ .

Definition at line 49 of file MyLapack.cpp.

References DMatrix::array(), DMatrix::dim1(), DMatrix::dim2(), F77_FUNC, info, lda, and n.

int DLU_solve DMatrix M,
int *  ipiv,
DVector b
 

Solves a system of linear equations using a dense LU solver. this method scales as $O(\frac{1}{3} N^3)$ .

Definition at line 68 of file MyLapack.cpp.

References DVector::array(), DMatrix::array(), DMatrix::dim1(), F77_FUNC, info, and n.

int DSYEV char  jobz,
char  uplo,
DMatrix M,
DVector V,
double *  work,
int &  lwork
 

Calculate Eigenvalues and also Eigenvector of a symmetric matrix

Definition at line 59 of file MyLapack.cpp.

References DVector::array(), DMatrix::array(), DMatrix::dim1(), DMatrix::dim2(), DSYEV(), F77_FUNC, info, lda, and n.

Referenced by DSYEV(), and main().

int SLU_decomp SMatrix A,
int *  ipiv
 

Single Precision

Definition at line 93 of file MyLapack.cpp.

References SMatrix::array(), SMatrix::dim1(), F77_FUNC, info, and n.

float SLU_det SMatrix A,
int *  ipiv
 

Definition at line 79 of file MyLapack.cpp.

References SMatrix::dim1().

int SLU_invert SMatrix A,
int *  ipiv,
float *  work,
int &  lwork
 

Definition at line 101 of file MyLapack.cpp.

References SMatrix::array(), SMatrix::dim1(), SMatrix::dim2(), F77_FUNC, info, lda, and n.

int SLU_solve SMatrix M,
int *  ipiv,
DVector b
 

int SSYEV char  jobz,
char  uplo,
SMatrix M,
SVector V,
float *  work,
int &  lwork
 

Definition at line 111 of file MyLapack.cpp.

References SVector::array(), SMatrix::array(), SMatrix::dim1(), SMatrix::dim2(), F77_FUNC, info, lda, n, and SSYEV().

Referenced by main(), and SSYEV().


Generated on Wed Aug 16 19:03:50 2006 for MyLapack by  doxygen 1.4.4