MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / toParam

Function toParam

src/backend/cpu/Param.hpp:142–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140/// \param[in] val The value to convert to Param<T>
141template<typename T>
142Param<T> toParam(Array<T> &val) noexcept {
143 return Param<T>(val.get(), val.dims(), val.strides());
144}
145
146/// \brief Converts Array<T> to Param<T> or CParam<T> based on the constness
147/// of the Array<T> object. If called on anything else, the object is

Callers 1

enqueueMethod · 0.85

Calls 3

getMethod · 0.45
dimsMethod · 0.45
stridesMethod · 0.45

Tested by

no test coverage detected