MCPcopy Create free account
hub / github.com/cusplibrary/cusplibrary / temporary_array

Method temporary_array

cusp/detail/temporary_array.h:66–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 temporary_array(thrust::execution_policy<System> &system, size_type n) : super_t(system, n) {};
65
66 TEMP_HOST_DEVICE_DECORATORS
67 temporary_array(thrust::execution_policy<System> &system, size_type n, T init) : super_t(system, n) {
68 super_t::uninitialized_copy(system, thrust::constant_iterator<T>(init), thrust::constant_iterator<T>(init) + n, super_t::begin());
69 };
70
71 // provide a kill-switch to explicitly avoid initialization
72 TEMP_HOST_DEVICE_DECORATORS

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected