hamming#
Generate a Hamming 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::hamming(ShapeType &&s)# Creates a Hamming window operator of shape s with the window applies along the specified dimension
Returns values for a Hamming window across the selected dimension.
- Template Parameters:
T – Data type
Dim – Dimension to create window over
RANK – The RANK of the shape, can be deduced from shape
- Parameters:
s – The shape of the tensor
-
template<int Dim, int RANK, typename T = float>
inline auto matx::hamming(const index_t (&s)[RANK])# Creates a Hamming window operator of C-array shape s with the window applies along the specified dimension
Returns values for a Hamming window across the selected dimension.
- Template Parameters:
T – Data type
Dim – Dimension to create window over
RANK – The RANK of the shape, can be deduced from shape
- Parameters:
s – C array representing shape of the tensor
Examples#
// Assign a Hamming window of size `win_size` to `ov`
(ov = hamming<0>({win_size})).run(exec);