mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [
git repo
]
Loading...
Searching...
No Matches
templateLapack_test.cpp
1
#include "../../catch2/catch.hpp"
2
3
#include "../../../include/math/templateLapack.hpp"
4
5
SCENARIO(
"getting lamch values"
,
"[templateLapack]"
)
6
{
7
GIVEN(
"a precision"
)
8
{
9
10
WHEN(
"precision is float"
)
11
{
12
// This is just a compilation test.
13
float
ch = mx::math::lamch<float>(
'E'
);
14
REQUIRE( ch > 0 );
15
}
16
WHEN(
"precision is double"
)
17
{
18
// This is just a compilation test.
19
double
ch = mx::math::lamch<double>(
'E'
);
20
REQUIRE( ch > 0 );
21
}
22
}
23
}
tests
include
math
templateLapack_test.cpp
Generated on Wed Jan 1 2025 23:00:43 for mxlib by
1.9.8