bartlett

bartlett#

Generate a Bartlett window

template<int Dim, typename ShapeType, typename T = float, std::enable_if_t<!std::is_array_v<typename remove_cvref<ShapeType>::type>, bool> = true>
inline auto matx::bartlett(ShapeType &&s)#

Creates a Bartlett window operator of shape s with the window applies along the x, y, z, or w dimension

Returns values for a Bartlett window across the selected dimension.

Template Parameters:
  • T – Data type

  • Dim – Dimension to create window over

  • RANK – The RANK of the shape

Parameters:

s – The shape of the tensor

template<int Dim, int RANK, typename T = float>
inline auto matx::bartlett(const index_t (&s)[RANK])#

Creates a Bartlett window operator of shape s with the window applies along the x, y, z, or w dimension

Returns values for a Bartlett window across the selected dimension.

Template Parameters:
  • T – Data type

  • Dim – Dimension to create window over

  • RANK – The RANK of the shape

Parameters:

s – The C array shape of the tensor

Examples#

// Assign a bartlett window of size `win_size` to `ov`
(ov = bartlett<0>({win_size})).run(exec);