39#include "acl/aclHardware.h"
40#include "acl/DataTypes/aclIndex.h"
41#include "acl/DataTypes/aclConstant.h"
42#include "acl/DataTypes/aclVariable.h"
43#include "acl/DataTypes/aclPrivateVariable.h"
44#include "acl/DataTypes/aclArray.h"
45#include "acl/DataTypes/aclSubvector.h"
46#include "acl/Kernels/aclKernel.h"
47#include "aslUtilities.h"
48#include "utilities/aslTimer.h"
52#include <acl/Kernels/aclKernelConfigurationTemplates.h>
54#define ARRAY_SIZE 10000000
56#define TIME_INTERVAL 5
63template <
typename T>
inline T
testSum(T x1, T x2)
77 return excerpt(x1 + x2, (index * c) % cArraySize);
85 return x1 * (x2 + x2) * x1 + (x2 + x1 * x1) * x2 * x1 * x2 * x1 - x1 / x2 +
86 x1 * (x1 + x2) * x1 + (x2 - x1 * x2) * x2 - x1 * x2 * x1 - x2 / x1 +
87 x1 * (x2 + x1) * x1 - (x2 + x1 * x1) * x2 * x1 * x2 * x1 + x1 / x2 -
88 x1 * (x1 + x2) * x2 + (x2 - x1 * x2) * x2 - x1 * x2 * x1 - x2 / x1 +
89 x1 * (x2 + x1) * x1 - (x2 + x1 * x1) * x2 * x1 * x2 * x1 + x1 / x2;
97 return cos(x1*sin(x2+x2)*x1+
sqrt(x2+x1*x1)*x2*sin(x1)*x1*
sqrt(x2)*x2*x1*
sqrt(x1*x2)-x1/x2);
VectorOfElements sqrt(const VectorOfElements &a)
VectorOfElements excerpt(const VectorOfElements &source, const VectorOfElements &filter)
definitions of mathematical operators and functions for class Element
Advanced Computational Language.
std::shared_ptr< ElementBase > Element