#define ROOT_MATH_ARCH MathSYCL
#include <sycl/sycl.hpp>
#include <vector>
int ok = 0;
int compare(
double v1,
double v2,
double scale = 1.0)
{
double eps =
scale * std::numeric_limits<double>::epsilon();
if (delta < 0)
delta = -delta;
if (
v1 == 0 ||
v2 == 0) {
if (delta > eps) {
}
}
else {
if (delta /
d > eps && delta > eps)
}
}
template <class Transform>
bool IsEqual(
const Transform &
t1,
const Transform &
t2,
unsigned int size)
{
t1.GetComponents(
x1.begin(),
x1.end());
t2.GetComponents(
x2.begin(),
x2.end());
unsigned int i = 0;
std::abs(
x1[i] -
x2[i]) < std::numeric_limits<double>::epsilon() * (std::abs(
x1[i]) + std::abs(
x2[i]));
i++;
}
}
{
std::cout << "\n************************************************************************\n " << " Vector 3D Test"
<< "\n************************************************************************\n";
sycl::buffer<int, 1>
ok_buf(&ok, sycl::range<1>(1));
{
queue.submit([&](sycl::handler &
cgh) {
});
});
}
if (ok == 0)
std::cout << "\t\t OK " << std::endl;
return ok;
}
{
std::cout << "\n************************************************************************\n " << " Point 3D Tests"
<< "\n************************************************************************\n";
sycl::buffer<int, 1>
ok_buf(&ok, sycl::range<1>(1));
{
queue.submit([&](sycl::handler &
cgh) {
});
});
}
if (ok == 0)
std::cout << "\t OK " << std::endl;
return ok;
}
{
std::cout << "\n************************************************************************\n "
<< " Lorentz Vector Tests"
<< "\n************************************************************************\n";
ok += compare(
v1.DeltaR(
v2), 4.60575f);
if (ok == 0)
std::cout << "\t OK " << std::endl;
return ok;
}
{
std::cout <<
"\n\nNumber of tests " <<
ntest <<
" failed = " <<
nfail << std::endl;
}
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Tag for identifying vectors based on a global coordinate system.
Tag for identifying vectors based on a local coordinate system.
Global Helper functions for generic Vector classes.
DisplacementVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZVector
3D Vector based on the cartesian coordinates x,y,z in double precision
bool areEqual(const RULE *r1, const RULE *r2, bool moduloNameOrPattern=false)