HΦ
3.2.0
|
wrapper for linear algebra operations using lapack More...
#include "matrixlapack.h"
#include <stdlib.h>
Go to the source code of this file.
Functions | |
int | dgetrf_ (int *m, int *n, double *a, int *lda, int *ipiv, int *info) |
int | dgetri_ (int *n, double *a, int *lda, int *ipiv, double *work, int *lwork, int *info) |
int | dsyev_ (char *jobz, char *uplo, int *n, double *a, int *lda, double *w, double *work, int *lwork, int *info) |
int | M_DSYEV (char *jobz, char *uplo, int *n, double *a, int *lda, double *w, double *work, int *lwork, int *info) |
double | dlamch_ (char *cmach) |
int | zheev_ (char *jobz, char *uplo, int *n, double complex *a, int *lda, double *w, double complex *work, int *lwork, double *rwork, int *info) |
int | dsyevx_ (char *jobz, char *range, char *uplo, int *n, double *a, int *lda, double *vl, double *vu, int *il, int *iu, double *abstol, int *m, double *w, double *z__, int *ldz, double *work, int *lwork, int *iwork, int *ifail, int *info) |
void | to_f (int N, int M, double **A, double *a) |
function for transforming Row-major matrix (C) to Column-major matrix (Fortran) More... | |
int | DSEVvalue (int xNsize, double **A, double *r) |
obtain eigenvalues of real symmetric A More... | |
int | DInv (int xNsize, double **xM, double **xIM) |
obtain eigenvalues of inverse of real matrix xM More... | |
int | DSEVvector (int xNsize, double **A, double *r, double **vec) |
obtain eigenvalues and eigenvectors of real symmetric A More... | |
int | DSEVXU (int xNsize, double **A, double *r, double **X, int xNev) |
obtain eigenvalues A More... | |
int | ZHEEVall (int xNsize, double complex **A, double complex *r, double complex **vec) |
obtain eigenvalues and eigenvectors of Hermite matrix A More... | |
wrapper for linear algebra operations using lapack
Definition in file matrixlapack.c.
int dgetrf_ | ( | int * | m, |
int * | n, | ||
double * | a, | ||
int * | lda, | ||
int * | ipiv, | ||
int * | info | ||
) |
int dgetri_ | ( | int * | n, |
double * | a, | ||
int * | lda, | ||
int * | ipiv, | ||
double * | work, | ||
int * | lwork, | ||
int * | info | ||
) |
int DInv | ( | int | xNsize, |
double ** | xM, | ||
double ** | xIM | ||
) |
obtain eigenvalues of inverse of real matrix xM
[in] | xNsize | matrix size |
[in] | xM | matrix |
[out] | xIM | inverse of xM |
Definition at line 153 of file matrixlapack.c.
References dgetrf_(), and dgetri_().
double dlamch_ | ( | char * | cmach | ) |
int DSEVvalue | ( | int | xNsize, |
double ** | A, | ||
double * | r | ||
) |
obtain eigenvalues of real symmetric A
[in] | xNsize | |
[in] | A | matrix |
[out] | r | eigenvalues |
Definition at line 93 of file matrixlapack.c.
References M_DSYEV(), and to_f().
Referenced by Lanczos_EigenValue().
int DSEVvector | ( | int | xNsize, |
double ** | A, | ||
double * | r, | ||
double ** | vec | ||
) |
obtain eigenvalues and eigenvectors of real symmetric A
xNsize | size of matrix |
A | matrix |
r | eigenvalues |
vec | eignevectos |
Definition at line 209 of file matrixlapack.c.
References dsyev_(), and M_DSYEV().
Referenced by vec12().
int DSEVXU | ( | int | xNsize, |
double ** | A, | ||
double * | r, | ||
double ** | X, | ||
int | xNev | ||
) |
obtain eigenvalues A
xNsize | size of A |
A | matrix |
r | eigenvalues |
X | eigenvectors |
xNev | number of eigenvalues |
Definition at line 290 of file matrixlapack.c.
References dlamch_(), and dsyevx_().
int dsyev_ | ( | char * | jobz, |
char * | uplo, | ||
int * | n, | ||
double * | a, | ||
int * | lda, | ||
double * | w, | ||
double * | work, | ||
int * | lwork, | ||
int * | info | ||
) |
int dsyevx_ | ( | char * | jobz, |
char * | range, | ||
char * | uplo, | ||
int * | n, | ||
double * | a, | ||
int * | lda, | ||
double * | vl, | ||
double * | vu, | ||
int * | il, | ||
int * | iu, | ||
double * | abstol, | ||
int * | m, | ||
double * | w, | ||
double * | z__, | ||
int * | ldz, | ||
double * | work, | ||
int * | lwork, | ||
int * | iwork, | ||
int * | ifail, | ||
int * | info | ||
) |
int M_DSYEV | ( | char * | jobz, |
char * | uplo, | ||
int * | n, | ||
double * | a, | ||
int * | lda, | ||
double * | w, | ||
double * | work, | ||
int * | lwork, | ||
int * | info | ||
) |
void to_f | ( | int | N, |
int | M, | ||
double ** | A, | ||
double * | a | ||
) |
function for transforming Row-major matrix (C) to Column-major matrix (Fortran)
[in] | N | |
[in] | M | |
[in] | A | Row-major matrix |
[out] | a | Column-major matrix |
[in] | N | |
[in] | M | |
[in] | A | |
[out] | a |
Definition at line 66 of file matrixlapack.c.
Referenced by DSEVvalue().
int zheev_ | ( | char * | jobz, |
char * | uplo, | ||
int * | n, | ||
double complex * | a, | ||
int * | lda, | ||
double * | w, | ||
double complex * | work, | ||
int * | lwork, | ||
double * | rwork, | ||
int * | info | ||
) |
int ZHEEVall | ( | int | xNsize, |
double complex ** | A, | ||
double complex * | r, | ||
double complex ** | vec | ||
) |
obtain eigenvalues and eigenvectors of Hermite matrix A
xNsize | size of matrix |
A | matrix |
r | eigenvalues |
vec | eigenvectors |
Definition at line 374 of file matrixlapack.c.
References zheev_(), and zheevd_().
Referenced by lapack_diag().