blackman

blackman#

Generate a Blackman 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::blackman(ShapeType &&s)#

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

Returns values for a Blackman 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::blackman(const index_t (&s)[RANK])#

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

Returns values for a Blackman 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

Examples#

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