OmniSciDB  2e3a973ef4
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

◆ array_append_impl()

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

Definition at line 8 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().

8  {
9  Array<T> out_arr(in_arr.getSize() + 1);
10  for (int64_t i = 0; i < in_arr.getSize(); i++) {
11  out_arr[i] = in_arr(i);
12  }
13  out_arr[in_arr.getSize()] = val;
14  return out_arr;
15 }
DEVICE int64_t getSize() const
Definition: OmniSciTypes.h:56
+ Here is the call graph for this function:
+ Here is the caller graph for this function: