MCPcopy Create free account
hub / github.com/activeloopai/deeplake / create_transformed_array

Function create_transformed_array

cpp/nd/impl/transformed_array.hpp:287–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286template <typename F>
287array create_transformed_array(array arr, F f)
288{
289 if constexpr (std::is_same_v<std::invoke_result_t<F, array>, array>) {
290 return array(dynamic_transformed_array<F>(std::move(arr), std::move(f)));
291 } else {
292 return array(transformed_array<F>(std::move(arr), std::move(f)));
293 }
294}
295
296template <typename F>
297array create_transformed_array(array a1, array a2, F f)

Callers 1

transformFunction · 0.85

Calls 1

arrayClass · 0.70

Tested by

no test coverage detected