Template Function librapid::zeros#

Function Documentation#

template<typename Scalar = double, typename Backend = backend::CPU, typename T = size_t, size_t N = 32>
Array<Scalar, Backend> librapid::zeros(const Shape<T, N> &shape)#

Create an Array filled with zeros.

Create an array with a specified shape, scalar type and Backend, and fill it with zeros.

Template Parameters
  • Scalar – Scalar type of the Array

  • Backend – Backend type of the Array

  • T – Scalar type of the Shape

  • N – Maximum number of dimensions of the Shape

Parameters

shapeShape of the Array

Returns

Array filled with zeros