Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented dpnp.fromfunction, dpnp.fromiter and dpnp.loadtxt #1728

Merged
merged 13 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/reference/creation.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.. _routines.creation:

Array Creation Routines
Array creation routines
=======================

.. https://docs.scipy.org/doc/numpy/reference/routines.array-creation.html

Basic creation routines
From shape or value
-----------------------

.. autosummary::
Expand All @@ -24,7 +24,7 @@ Basic creation routines
dpnp.full_like


Creation from other data
From existing data
------------------------

.. autosummary::
Expand All @@ -35,6 +35,7 @@ Creation from other data
dpnp.asarray
dpnp.asanyarray
dpnp.ascontiguousarray
dpnp.astype
dpnp.copy
dpnp.frombuffer
dpnp.from_dlpack
Expand All @@ -61,7 +62,7 @@ Numerical ranges
dpnp.ogrid


Matrix creation
Building matrices
---------------

.. autosummary::
Expand All @@ -82,5 +83,4 @@ The Matrix class
:toctree: generated/
:nosignatures:

dpnp.mat
dpnp.bmat
4 changes: 2 additions & 2 deletions dpnp/dpnp_algo/dpnp_arraycreation.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ class dpnp_nd_grid:
def __init__(
self, sparse=False, device=None, usm_type="device", sycl_queue=None
):
dpu.validate_usm_type(usm_type, allow_none=False)
dpu.validate_usm_type(usm_type, allow_none=True)
self.sparse = sparse
self.usm_type = usm_type
self.usm_type = "device" if usm_type is None else usm_type
self.sycl_queue_normalized = dpnp.get_normalized_queue_device(
sycl_queue=sycl_queue, device=device
)
Expand Down
Loading
Loading