Skip to content

Commit cf3159e

Browse files
committed
Fixed spelling issues and added 7 new words to known list
1 parent 1c0a881 commit cf3159e

File tree

7 files changed

+55
-46
lines changed

7 files changed

+55
-46
lines changed

doc/known_words.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ dpctl
1313
dpnp
1414
dtype
1515
dtypes
16+
einsum
1617
endian
1718
eps
1819
epsneg
1920
Extrema
2021
finfo
22+
finiteness
2123
Fortran
2224
Frobenius
2325
Hypergeometric
@@ -34,7 +36,9 @@ NaT
3436
ndarray
3537
ndarrays
3638
ndim
39+
normed
3740
oneAPI
41+
orthonormal
3842
Penrose
3943
Polyutils
4044
prepend
@@ -48,13 +52,16 @@ subarray
4852
subarrays
4953
subclasses
5054
subtype
55+
SyclDevice
56+
SyclQueue
5157
th
5258
ufunc
5359
ufuncs
5460
Unary
5561
unicode
5662
usm
5763
Vandermonde
64+
vectorized
5865
von
5966
Weibull
6067
whitespace

dpnp/dpnp_iface_arraycreation.py

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ def geomspace(
21482148
Returns
21492149
-------
21502150
out : dpnp.ndarray
2151-
num samples, equally spaced on a log scale.
2151+
`num` samples, equally spaced on a log scale.
21522152
21532153
See Also
21542154
--------
@@ -2340,8 +2340,8 @@ def linspace(
23402340
The end value of the sequence, in any form that can be converted to
23412341
an array. This includes scalars, lists, lists of tuples, tuples, tuples
23422342
of tuples, tuples of lists, and ndarrays. If `endpoint` is set to
2343-
``False`` the sequence consists of all but the last of num + 1 evenly
2344-
spaced samples, so that `stop` is excluded.
2343+
``False`` the sequence consists of all but the last of ``num + 1``
2344+
evenly spaced samples, so that `stop` is excluded.
23452345
dtype : dtype, optional
23462346
The desired dtype for the array. If not given, a default dtype will be
23472347
used that can represent the values (by considering Promotion Type Rule
@@ -2372,7 +2372,7 @@ def linspace(
23722372
Returns
23732373
-------
23742374
out : dpnp.ndarray
2375-
There are num equally spaced samples in the closed interval
2375+
There are `num` equally spaced samples in the closed interval
23762376
[`start`, `stop`] or the half-open interval [`start`, `stop`)
23772377
(depending on whether `endpoint` is ``True`` or ``False``).
23782378
step : float, optional
@@ -2381,12 +2381,12 @@ def linspace(
23812381
23822382
See Also
23832383
--------
2384-
:obj:`dpnp.arange` : Similar to `linspace`, but uses a step size (instead
2385-
of the number of samples).
2386-
:obj:`dpnp.geomspace` : Similar to `linspace`, but with numbers spaced
2387-
evenly on a log scale (a geometric progression).
2388-
:obj:`dpnp.logspace` : Similar to `geomspace`, but with the end points
2389-
specified as logarithms.
2384+
:obj:`dpnp.arange` : Similar to :obj:`dpnp.linspace`, but uses a step size
2385+
(instead of the number of samples).
2386+
:obj:`dpnp.geomspace` : Similar to :obj:`dpnp.linspace`, but with numbers
2387+
spaced evenly on a log scale (a geometric progression).
2388+
:obj:`dpnp.logspace` : Similar to :obj:`dpnp.geomspace`, but with the end
2389+
points specified as logarithms.
23902390
23912391
Examples
23922392
--------
@@ -2559,7 +2559,7 @@ def logspace(
25592559
Input data, in any form that can be converted to an array. This
25602560
includes scalars, lists, lists of tuples, tuples, tuples of tuples,
25612561
tuples of lists, and ndarrays. `base` ** `stop` is the final value of
2562-
the sequence, unless `endpoint` is ``False``. In that case, num + 1
2562+
the sequence, unless `endpoint` is ``False``. In that case, ``num + 1``
25632563
values are spaced over the interval in log-space, of which all but
25642564
the last (a sequence of length num) are returned.
25652565
num : int, optional
@@ -2585,7 +2585,7 @@ def logspace(
25852585
tuples of lists, and ndarrays. The base of the log space, in any form
25862586
that can be converted to an array.This includes scalars, lists, lists
25872587
of tuples, tuples, tuples of tuples, tuples of lists, and ndarrays.
2588-
The `step` size between the elements in ln(samples) / ln(base)
2588+
The `step` size between the elements in ``ln(samples) / ln(base)``
25892589
(or log_base(samples)) is uniform. Default is 10.0.
25902590
dtype : dtype, optional
25912591
The desired dtype for the array. If not given, a default dtype will be
@@ -2599,18 +2599,17 @@ def logspace(
25992599
Returns
26002600
-------
26012601
out: dpnp.ndarray
2602-
num samples, equally spaced on a log scale.
2602+
`num` samples, equally spaced on a log scale.
26032603
26042604
See Also
26052605
--------
2606-
:obj:`dpnp.arange` : Similar to linspace, with the step size specified
2607-
instead of the number of samples. Note that, when used
2608-
with a float endpoint, the endpoint may or may not be
2609-
included.
2610-
:obj:`dpnp.linspace` : Similar to logspace, but with the samples uniformly
2611-
distributed in linear space, instead of log space.
2612-
:obj:`dpnp.geomspace` : Similar to logspace, but with endpoints specified
2613-
directly.
2606+
:obj:`dpnp.arange` : Similar to :obj:`dpnp.linspace`, with the step size
2607+
specified instead of the number of samples. Note that, when used with
2608+
a float endpoint, the endpoint may or may not be included.
2609+
:obj:`dpnp.linspace` : Similar to :obj:`dpnp.logspace`, but with the
2610+
samples uniformly distributed in linear space, instead of log space.
2611+
:obj:`dpnp.geomspace` : Similar to :obj:`dpnp.logspace`, but with endpoints
2612+
specified directly.
26142613
26152614
Examples
26162615
--------
@@ -2665,7 +2664,7 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
26652664
26662665
Make N-D coordinate arrays for vectorized evaluations of
26672666
N-D scalar/vector fields over N-D grids, given
2668-
one-dimensional coordinate arrays x1, x2,..., xn.
2667+
one-dimensional coordinate arrays ``x1, x2,..., xn``.
26692668
26702669
For full documentation refer to :obj:`numpy.meshgrid`.
26712670
@@ -2674,7 +2673,7 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
26742673
x1, x2,..., xn : {dpnp.ndarray, usm_ndarray}
26752674
1-D arrays representing the coordinates of a grid.
26762675
indexing : {'xy', 'ij'}, optional
2677-
Cartesian ('xy', default) or matrix ('ij') indexing of output.
2676+
Cartesian (``'xy'``, default) or matrix (``'ij'``) indexing of output.
26782677
sparse : bool, optional
26792678
If True the shape of the returned coordinate array for dimension `i`
26802679
is reduced from ``(N1, ..., Ni, ... Nn)`` to
@@ -2686,11 +2685,11 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
26862685
Returns
26872686
-------
26882687
X1, X2,..., XN : tuple of dpnp.ndarrays
2689-
For vectors `x1`, `x2`,..., `xn` with lengths ``Ni=len(xi)``,
2690-
returns ``(N1, N2, N3,..., Nn)`` shaped arrays if indexing='ij'
2691-
or ``(N2, N1, N3,..., Nn)`` shaped arrays if indexing='xy'
2692-
with the elements of `xi` repeated to fill the matrix along
2693-
the first dimension for `x1`, the second for `x2` and so on.
2688+
For vectors `x1`, `x2`,..., `xn` with lengths ``Ni=len(xi)``, returns
2689+
``(N1, N2, N3,..., Nn)`` shaped arrays if ``indexing='ij'`` or
2690+
``(N2, N1, N3,..., Nn)`` shaped arrays if ``indexing='xy'`` with
2691+
the elements of `xi` repeated to fill the matrix along the first
2692+
dimension for `x1`, the second for `x2` and so on.
26942693
26952694
Examples
26962695
--------
@@ -2850,7 +2849,7 @@ class OGridClass:
28502849
out : one dpnp.ndarray or tuple of dpnp.ndarray
28512850
Returns a tuple of arrays,
28522851
with grid[i].shape = (1, ..., 1, dimensions[i], 1, ..., 1)
2853-
with dimensions[i] in the ith place.
2852+
with dimensions[i] in the i-th place.
28542853
28552854
Examples
28562855
--------

dpnp/dpnp_iface_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def indices(
424424
If sparse is ``True``:
425425
Returns a tuple of arrays,
426426
with grid[i].shape = (1, ..., 1, dimensions[i], 1, ..., 1)
427-
with dimensions[i] in the ith place.
427+
with dimensions[i] in the i-th place.
428428
429429
Examples
430430
--------

dpnp/dpnp_iface_nanfunctions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def nancumsum(a, axis=None, dtype=None, out=None):
305305
Input array.
306306
axis : int, optional
307307
Axis along which the cumulative sum is computed. The default (``None``)
308-
is to compute the cumsum over the flattened array.
308+
is to compute the cumulative sum over the flattened array.
309309
dtype : dtype, optional
310310
Type of the returned array and of the accumulator in which the elements
311311
are summed. If `dtype` is not specified, it defaults to the dtype of
@@ -862,7 +862,7 @@ def nanstd(
862862
out : dpnp.ndarray
863863
An array containing the standard deviations. If the standard
864864
deviation was computed over the entire array, a zero-dimensional
865-
array is returned. If ddof is >= the number of non-NaN elements
865+
array is returned. If `ddof` is >= the number of non-NaN elements
866866
in a slice or the slice contains only NaNs, then the result for
867867
that slice is NaN.
868868
@@ -962,7 +962,7 @@ def nanvar(
962962
out : dpnp.ndarray
963963
An array containing the variances. If the variance was computed
964964
over the entire array, a zero-dimensional array is returned.
965-
If ddof is >= the number of non-NaN elements in a slice or the
965+
If `ddof` is >= the number of non-NaN elements in a slice or the
966966
slice contains only NaNs, then the result for that slice is NaN.
967967
968968
Limitations

dpnp/linalg/dpnp_iface_linalg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ def inv(a):
546546
"""
547547
Compute the (multiplicative) inverse of a matrix.
548548
549-
Given a square matrix a, return the matrix ainv
550-
satisfying ``dot(a, ainv) = dot(ainv, a) = eye(a.shape[0])``.
549+
Given a square matrix `a`, return the matrix `ainv` satisfying
550+
``dot(a, ainv) = dot(ainv, a) = eye(a.shape[0])``.
551551
552552
For full documentation refer to :obj:`numpy.linalg.inv`.
553553
@@ -848,7 +848,7 @@ def norm(x, ord=None, axis=None, keepdims=False):
848848
The default is ``None``.
849849
keepdims : bool, optional
850850
If this is set to ``True``, the axes which are normed over are left in
851-
the result as dimensions with size one. With this option the result
851+
the result as dimensions with size one. With this option the result
852852
will broadcast correctly against the original `x`.
853853
854854
Returns

dpnp/random/dpnp_iface_random.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,17 +1474,19 @@ def seed(seed=None, device=None, sycl_queue=None):
14741474
Parameters
14751475
----------
14761476
device : {None, string, SyclDevice, SyclQueue}, optional
1477-
An array API concept of device where an array with generated numbers will be created.
1478-
The `device` can be ``None`` (the default), an OneAPI filter selector string,
1479-
an instance of :class:`dpctl.SyclDevice` corresponding to a non-partitioned SYCL device,
1480-
an instance of :class:`dpctl.SyclQueue`, or a `Device` object returned by
1477+
An array API concept of device where an array with generated numbers
1478+
will be created. The `device` can be ``None`` (the default), an OneAPI
1479+
filter selector string, an instance of :class:`dpctl.SyclDevice`
1480+
corresponding to a non-partitioned SYCL device, an instance of
1481+
:class:`dpctl.SyclQueue`, or a `Device` object returned by
14811482
:obj:`dpnp.dpnp_array.dpnp_array.device` property.
14821483
sycl_queue : {None, SyclQueue}, optional
14831484
A SYCL queue to use for an array with generated numbers.
14841485
14851486
Limitations
14861487
-----------
1487-
Parameter `seed` is supported as either a scalar or an array of maximumum three integer scalars.
1488+
The `seed` parameter is supported as a scalar or an array of at most three
1489+
integer scalars.
14881490
14891491
"""
14901492

dpnp/random/dpnp_random_state.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ class RandomState:
6060
seed : {None, int, array_like}, optional
6161
A random seed to initialize the pseudo-random number generator.
6262
The `seed` can be ``None`` (the default), an integer scalar, or
63-
an array_like of maximumum three integer scalars.
63+
an array of at most three integer scalars.
6464
device : {None, string, SyclDevice, SyclQueue}, optional
6565
An array API concept of device where the output array is created.
66-
The `device` can be ``None`` (the default), an OneAPI filter selector string,
67-
an instance of :class:`dpctl.SyclDevice` corresponding to a non-partitioned SYCL device,
68-
an instance of :class:`dpctl.SyclQueue`, or a `Device` object returned by
66+
The `device` can be ``None`` (the default), an OneAPI filter selector
67+
string, an instance of :class:`dpctl.SyclDevice` corresponding to
68+
a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,
69+
or a `Device` object returned by
6970
:obj:`dpnp.dpnp_array.dpnp_array.device` property.
7071
sycl_queue : {None, SyclQueue}, optional
7172
A SYCL queue to use for output array allocation and copying.
@@ -498,7 +499,7 @@ def random_sample(self, size=None, usm_type="device"):
498499

499500
def standard_normal(self, size=None, usm_type="device"):
500501
"""
501-
Draw samples from a standard Normal distribution (mean=0, stdev=1).
502+
Draw samples from a standard Normal distribution ``(mean=0, stdev=1)``.
502503
503504
For full documentation refer to :obj:`numpy.random.RandomState.standard_normal`.
504505

0 commit comments

Comments
 (0)