Skip to content

Commit 2bb1e8b

Browse files
authored
implement dpnp.hamming (#2341)
In this PR, `dpnp.hamming` is implemented.
1 parent d57ac14 commit 2bb1e8b

26 files changed

+668
-56
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
* Added implementation of `dpnp.hamming` [#2341](https://github.com/IntelPython/dpnp/pull/2341)
12+
1113
### Changed
1214

1315
### Fixed

doc/reference/routines.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ These functions cover a subset of
2727
set
2828
sort
2929
statistics
30+
window

doc/reference/window.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Window functions
2+
================
3+
4+
.. https://numpy.org/doc/stable/reference/routines.window.html
5+
6+
Various windows
7+
---------------
8+
9+
.. autosummary::
10+
:toctree: generated/
11+
:nosignatures:
12+
13+
dpnp.bartlett
14+
dpnp.blackman
15+
dpnp.hamming
16+
dpnp.hanning
17+
dpnp.kaiser

dpnp/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ endfunction()
5858
add_subdirectory(backend)
5959
add_subdirectory(backend/extensions/blas)
6060
add_subdirectory(backend/extensions/fft)
61+
add_subdirectory(backend/extensions/indexing)
6162
add_subdirectory(backend/extensions/lapack)
62-
add_subdirectory(backend/extensions/vm)
63-
add_subdirectory(backend/extensions/ufunc)
6463
add_subdirectory(backend/extensions/statistics)
65-
add_subdirectory(backend/extensions/indexing)
64+
add_subdirectory(backend/extensions/ufunc)
65+
add_subdirectory(backend/extensions/vm)
66+
add_subdirectory(backend/extensions/window)
67+
6668

6769
add_subdirectory(dpnp_algo)
6870
add_subdirectory(dpnp_utils)

dpnp/backend/extensions/indexing/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# *****************************************************************************
2-
# Copyright (c) 2016-2024, Intel Corporation
2+
# Copyright (c) 2025, Intel Corporation
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

dpnp/backend/extensions/indexing/choose.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//*****************************************************************************
2-
// Copyright (c) 2024, Intel Corporation
2+
// Copyright (c) 2025, Intel Corporation
33
// All rights reserved.
44
//
55
// Redistribution and use in source and binary forms, with or without

dpnp/backend/extensions/indexing/choose.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//*****************************************************************************
2-
// Copyright (c) 2024, Intel Corporation
2+
// Copyright (c) 2025, Intel Corporation
33
// All rights reserved.
44
//
55
// Redistribution and use in source and binary forms, with or without

dpnp/backend/extensions/indexing/choose_kernel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//*****************************************************************************
2-
// Copyright (c) 2024, Intel Corporation
2+
// Copyright (c) 2025, Intel Corporation
33
// All rights reserved.
44
//
55
// Redistribution and use in source and binary forms, with or without

dpnp/backend/extensions/indexing/indexing_py.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//*****************************************************************************
2-
// Copyright (c) 2024, Intel Corporation
2+
// Copyright (c) 2025, Intel Corporation
33
// All rights reserved.
44
//
55
// Redistribution and use in source and binary forms, with or without
@@ -23,12 +23,11 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525
//
26-
// This file defines functions of dpnp.backend._lapack_impl extensions
26+
// This file defines functions of dpnp.backend._indexing_impl extensions
2727
//
2828
//*****************************************************************************
2929

3030
#include <pybind11/pybind11.h>
31-
#include <pybind11/stl.h>
3231

3332
#include "choose.hpp"
3433

dpnp/backend/extensions/statistics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# *****************************************************************************
2-
# Copyright (c) 2016-2025, Intel Corporation
2+
# Copyright (c) 2024-2025, Intel Corporation
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)