Template Function librapid::ones#
Defined in File pseudoConstructors.hpp
Function Documentation#
-
template<typename Scalar = double, typename Backend = backend::CPU, typename ShapeType = Shape, typename std::enable_if_t<typetraits::IsSizeType<ShapeType>::value, int> = 0>
Array<Scalar, Backend> librapid::ones(const ShapeType &shape)# Create an Array filled with ones.
Create an array with a specified shape, scalar type and Backend, and fill it with ones.