1#include "../../catch2/catch.hpp"
3#include "../../../include/math/templateBLAS.hpp"
5SCENARIO(
"testing scal",
"[templateBLAS]" )
10 WHEN(
"precision is float" )
14 float x[] = { 1., 2. };
17 REQUIRE_THAT( x[0], Catch::Matchers::WithinAbs( 2.0, 1e-6 ) );
18 REQUIRE_THAT( x[1], Catch::Matchers::WithinAbs( 4.0, 1e-6 ) );
21 WHEN(
"precision is double" )
25 double x[] = { 1., 2. };
28 REQUIRE_THAT( x[0], Catch::Matchers::WithinAbs( 2.0, 1e-12 ) );
29 REQUIRE_THAT( x[1], Catch::Matchers::WithinAbs( 4.0, 1e-12 ) );
SCENARIO("Loading aoAtmosphere config settings", "[ao::analysis::aoAtmosphere]")
void scal(const int N, const dataT &alpha, dataT *X, const int incX)
Template wrapper for cblas xSCAL.