#include "acl/acl.h"
#include "acl/aclGenerators.h"
#include "acl/aclMath/aclMatrixOfElements.h"
#include "acl/aclMath/aclVectorOfElements.h"
#include "acl/aclMath/aclVectorOfElements.h"
#include "math/aslMatrices.h"
#include "acl/Kernels/aclKernel.h"
#include "acl/DataTypes/aclArray.h"
{
cout <<
"Test of \"Matrix Operations\" function..." <<
flush;
copy(generateVEData<cl_float>(10u,3u),vec0);
copy(generateVEData<cl_float>(10u,1u),vec1);
{
using namespace elementOperators;
}
vector<cl_float> output(10);
bool status(output[1] == 20.5);
return status;
}
{
cout <<
"Test of \"System Solve Cramer's rule\" function..." <<
flush;
copy(generateVEData<cl_float>(10u,2u),vecB);
copy(generateVEData<cl_float>(10u,2u),vecX);
{
using namespace elementOperators;
}
vector<cl_float> output(10);
bool status(output[1] > 0.09 && output[1] < .1);
return status;
}
{
cout <<
"Test of \"System Solve congugate gradient method\" function..." <<
flush;
copy(generateVEData<cl_float>(10u,2u),vecB);
copy(generateVEData<cl_float>(10u,2u),vecX);
{
using namespace elementOperators;
}
vector<cl_float> output(10);
bool status(output[1] > 0.09 && output[1] < .1);
return status;
}
{
bool allTestsPassed(true);
return allTestsPassed ? EXIT_SUCCESS : EXIT_FAILURE;
}