OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RuntimeLibTestTableFunctions.hpp File Reference
+ Include dependency graph for RuntimeLibTestTableFunctions.hpp:

Go to the source code of this file.

Functions

template<typename T >
TEMPLATE_NOINLINE int32_t ct_test_runtime_libs_add__cpu_template_ (TableFunctionManager &mgr, const Column< T > &input1, const Column< T > &input2, Column< T > &out)
 
template<typename T >
TEMPLATE_NOINLINE int32_t ct_test_runtime_libs_sub__cpu_template_ (TableFunctionManager &mgr, const Column< T > &input1, const Column< T > &input2, Column< T > &out)
 

Function Documentation

template<typename T >
TEMPLATE_NOINLINE int32_t ct_test_runtime_libs_add__cpu_template_ ( TableFunctionManager mgr,
const Column< T > &  input1,
const Column< T > &  input2,
Column< T > &  out 
)

Definition at line 30 of file RuntimeLibTestTableFunctions.hpp.

References _test_runtime_add(), TableFunctionManager::set_output_row_size(), and Column< T >::size().

33  {
34  int64_t size = input1.size();
35  mgr.set_output_row_size(size);
36  for (int64_t i = 0; i < size; ++i) {
37  out[i] = _test_runtime_add(input1[i], input2[i]);
38  }
39  return size;
40 }
void set_output_row_size(int64_t num_rows)
Definition: heavydbTypes.h:373
DEVICE int64_t size() const
T _test_runtime_add(T x, T y)

+ Here is the call graph for this function:

template<typename T >
TEMPLATE_NOINLINE int32_t ct_test_runtime_libs_sub__cpu_template_ ( TableFunctionManager mgr,
const Column< T > &  input1,
const Column< T > &  input2,
Column< T > &  out 
)

Definition at line 44 of file RuntimeLibTestTableFunctions.hpp.

References _test_runtime_sub(), TableFunctionManager::set_output_row_size(), and Column< T >::size().

47  {
48  int64_t size = input1.size();
49  mgr.set_output_row_size(size);
50  for (int64_t i = 0; i < size; ++i) {
51  out[i] = _test_runtime_sub(input1[i], input2[i]);
52  }
53  return size;
54 }
void set_output_row_size(int64_t num_rows)
Definition: heavydbTypes.h:373
DEVICE int64_t size() const
T _test_runtime_sub(T x, T y)

+ Here is the call graph for this function: