Tests some LAPACK functions such as template_lapack_???() etc to see that they are working properly and that they deliver the expected accuracy. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits>
#include <vector>
#include "realtype.h"
#include "template_lapack_common.h"
Functions | |
static ergo_real | get_maxabsdiff (int n, const ergo_real *x, const ergo_real *y) |
static int | test_gesv (ergo_real tolerance, bool verbose) |
static int | test_potf2_trtri (ergo_real tolerance, bool verbose) |
int | main (int argc, char *argv[]) |
Tests some LAPACK functions such as template_lapack_???() etc to see that they are working properly and that they deliver the expected accuracy.
Referenced by test_gesv(), and test_potf2_trtri().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References test_gesv(), and test_potf2_trtri().
static int test_gesv | ( | ergo_real | tolerance, | |
bool | verbose | |||
) | [static] |
References get_maxabsdiff(), and template_lapack_gesv().
Referenced by main().
static int test_potf2_trtri | ( | ergo_real | tolerance, | |
bool | verbose | |||
) | [static] |
References B, get_maxabsdiff(), template_lapack_potf2(), and template_lapack_trtri().
Referenced by main().