EVSL
1.1.0
EigenValues Slicing Library
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <math.h>
#include "evsl.h"
#include "io.h"
Go to the source code of this file.
Data Structures | |
struct | _lapmv_t |
Macros | |
#define | max(a, b) ((a) > (b) ? (a) : (b)) |
#define | min(a, b) ((a) < (b) ? (a) : (b)) |
Typedefs | |
typedef struct _lapmv_t | lapmv_t |
Functions | |
int | findarg (const char *argname, ARG_TYPE type, void *val, int argc, char **argv) |
int | lapgen (int nx, int ny, int nz, cooMat *Acoo) |
Laplacean Matrix generator. More... | |
int | exeiglap3 (int nx, int ny, int nz, double a, double b, int *m, double **vo) |
Exact eigenvalues of Laplacean in interval [a b]. More... | |
void | Lap2D3DMatvec (double *x, double *y, void *data) |
int | main (int argc, char *argv[]) |
#define max | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
Definition at line 9 of file LapPLanN_MatFree.c.
Referenced by main().
#define min | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
Definition at line 10 of file LapPLanN_MatFree.c.
Referenced by main().
int exeiglap3 | ( | int | nx, |
int | ny, | ||
int | nz, | ||
double | a, | ||
double | b, | ||
int * | m, | ||
double ** | vo | ||
) |
Exact eigenvalues of Laplacean in interval [a b].
[in] | nx | Number of points in x-direction |
[in] | ny | Number of points in y-direction |
[in] | nz | Number of points in z-direction |
[in] | a | Left bound |
[in] | b | Right bound |
[out] | m | number of eigenvalues found |
[out] | **vo | pointer to array of eigenvalues found |
Definition at line 83 of file lapl.c.
Referenced by main().
int findarg | ( | const char * | argname, |
ARG_TYPE | type, | ||
void * | val, | ||
int | argc, | ||
char ** | argv | ||
) |
void Lap2D3DMatvec | ( | double * | x, |
double * | y, | ||
void * | data | ||
) |
Definition at line 243 of file LapPLanN_MatFree.c.
References _lapmv_t::nx, _lapmv_t::ny, _lapmv_t::nz, and _lapmv_t::stencil.
Referenced by main().
int lapgen | ( | int | nx, |
int | ny, | ||
int | nz, | ||
cooMat * | Acoo | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 27 of file LapPLanN_MatFree.c.
References _polparams::bar, ChebLanNr(), _polparams::damping, _polparams::deg, DOUBLE, evsl_timer(), EVSLFinish(), EVSLStart(), exeiglap3(), find_pol(), findarg(), free_pol(), _polparams::gam, INT, kpmdos(), Lap2D3DMatvec(), max, _polparams::max_deg, min, NA, _lapmv_t::nx, _lapmv_t::ny, _lapmv_t::nz, rand_double(), set_pol_def(), SetAMatvec(), sort_double(), spslicer(), _lapmv_t::stencil, _polparams::thresh_ext, _polparams::thresh_int, and _polparams::type.