#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.
|
#define | max(a, b) ((a) > (b) ? (a) : (b)) |
|
#define | min(a, b) ((a) < (b) ? (a) : (b)) |
|
|
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...
|
|
int | main (int argc, char *argv[]) |
|
#define max |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
#define min |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
int exeiglap3 |
( |
int |
nx, |
|
|
int |
ny, |
|
|
int |
nz, |
|
|
double |
a, |
|
|
double |
b, |
|
|
int * |
m, |
|
|
double ** |
vo |
|
) |
| |
Exact eigenvalues of Laplacean in interval [a b].
- Parameters
-
[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 |
|
) |
| |
int lapgen |
( |
int |
nx, |
|
|
int |
ny, |
|
|
int |
nz, |
|
|
cooMat * |
Acoo |
|
) |
| |
Laplacean Matrix generator.
- Parameters
-
[in] | nx | Number of points in x-direction |
[in] | ny | Number of points in y-direction |
[in] | nz | Number of points in z-direction |
[out] | *Acoo | matrix in coordinate format.
|
Definition at line 17 of file lapl.c.
Referenced by main().
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 16 of file LapPSI.c.
References _polparams::bar, ChebSI(), cooMat_to_csrMat(), _polparams::damping, _polparams::deg, DOUBLE, evsl_timer(), EVSLFinish(), EVSLStart(), exeiglap3(), find_pol(), findarg(), free_coo(), free_csr(), free_pol(), _polparams::gam, INT, kpmdos(), lapgen(), max, NA, rand_double(), set_pol_def(), SetAMatrix(), sort_double(), spslicer(), _polparams::thresh_int, and _polparams::type.