ergo
basicmath_test.cc File Reference

Tests some basic math functions such as template_blas_sqrt() template_blas_log() etc to see that they are working properly and that they deliver the expected accuracy. More...

#include <stdio.h>
#include <stdlib.h>
#include <limits>
#include "realtype.h"
#include "template_blas_common.h"
#include "matInclude.h"

Functions

static ergo_real find_approx_smallest_number ()
 
static ergo_real find_approx_largest_number ()
 
static void verify_within_bounds (ergo_real x, ergo_real xmin, ergo_real xmax)
 
int main (int argc, char *argv[])
 

Detailed Description

Tests some basic math functions such as template_blas_sqrt() template_blas_log() etc to see that they are working properly and that they deliver the expected accuracy.

Function Documentation

◆ find_approx_largest_number()

static ergo_real find_approx_largest_number ( )
static

Referenced by main().

◆ find_approx_smallest_number()

static ergo_real find_approx_smallest_number ( )
static

Referenced by main().

◆ main()

◆ verify_within_bounds()

static void verify_within_bounds ( ergo_real  x,
ergo_real  xmin,
ergo_real  xmax 
)
static

Referenced by main().