ergo
lapack_test.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits>
#include <vector>
#include "realtype.h"
#include "template_lapack_common.h"
#include "matInclude.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)
 
static int test_stevr_small (ergo_real tolerance, bool verbose)
 
int main (int argc, char *argv[])
 

Detailed Description

Tests some LAPACK functions such as template_lapack_???() etc to see that they are working properly and that they deliver the expected accuracy.

Function Documentation

◆ get_maxabsdiff()

static ergo_real get_maxabsdiff ( int  n,
const ergo_real x,
const ergo_real y 
)
static

Referenced by test_gesv(), and test_potf2_trtri().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ test_gesv()

static int test_gesv ( ergo_real  tolerance,
bool  verbose 
)
static

References A, get_maxabsdiff(), and template_lapack_gesv().

Referenced by main().

◆ test_potf2_trtri()

static int test_potf2_trtri ( ergo_real  tolerance,
bool  verbose 
)
static

◆ test_stevr_small()

static int test_stevr_small ( ergo_real  tolerance,
bool  verbose 
)
static

References template_lapack_stevr().

Referenced by main().