OmniSciDB  bf83d84833
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{ExtensionFunctionsArray.hpp} Namespace Reference

Functions

template<typename T >
DEVICE ALWAYS_INLINE Array< T > array_append_impl (const Array< T > in_arr, T val)
 

Function Documentation

template<typename T >
DEVICE ALWAYS_INLINE Array<T> anonymous_namespace{ExtensionFunctionsArray.hpp}::array_append_impl ( const Array< T >  in_arr,
val 
)

Definition at line 13 of file ExtensionFunctionsArray.hpp.

References Array< T >::getSize().

Referenced by array_append(), array_append__(), array_append__1(), array_append__2(), array_append__3(), array_append__4(), and barray_append().

13  {
14  Array<T> out_arr(in_arr.getSize() + 1);
15  for (int64_t i = 0; i < in_arr.getSize(); i++) {
16  out_arr[i] = in_arr(i);
17  }
18  out_arr[in_arr.getSize()] = val;
19  return out_arr;
20 }
DEVICE int64_t getSize() const
Definition: OmniSciTypes.h:58

+ Here is the call graph for this function:

+ Here is the caller graph for this function: