@@ -129,8 +129,6 @@ Array type codes
129
129
130
130
Basic Array defining functions
131
131
------------------------------
132
- See also `ulab.linalg.eye ` and `ulab.numerical.linspace ` for other useful
133
- array defining functions.
134
132
135
133
.. method :: ones(shape, \*, dtype=float)
136
134
@@ -158,6 +156,33 @@ array defining functions.
158
156
Return a new square array of size, with the diagonal elements set to 1
159
157
and the other elements set to 0.
160
158
159
+ .. method :: linspace(start, stop, \*, dtype=float, num=50, endpoint=True)
160
+
161
+ .. param: start
162
+
163
+ First value in the array
164
+
165
+ .. param: stop
166
+
167
+ Final value in the array
168
+
169
+ .. param int: num
170
+
171
+ Count of values in the array
172
+
173
+ .. param: dtype
174
+
175
+ Type of values in the array
176
+
177
+ .. param bool: endpoint
178
+
179
+ Whether the ``stop`` value is included. Note that even when
180
+ endpoint=True, the exact ``stop`` value may not be included due to the
181
+ inaccuracy of floating point arithmetic.
182
+
183
+
E7EE
Return a new 1-D array with ``num `` elements ranging from ``start `` to ``stop `` linearly.
184
+
185
+
161
186
162
187
:mod: `ulab.vector ` --- Element-by-element functions
163
188
===================================================
@@ -288,14 +313,6 @@ much more efficient than expressing the same operation as a Python loop.
288
313
289
314
Computes the eigenvalues and eigenvectors of a square matrix
290
315
291
-
292
- .. method :: eye(size, \*, dtype=float)
293
-
294
- :param int: size - The number of rows and columns in the matrix
295
-
296
- Returns a square matrix with all the diagonal elements set to 1 and all
297
- other elements set to 0
298
-
299
316
.. method :: inv(m)
300
317
301
318
:param ~ulab.array m: a square matrix
@@ -387,32 +404,6 @@ operate over the flattened array (None), rows (0), or columns (1).
387
404
Returns a new array that reverses the order of the elements along the
388
405
given axis, or along all axes if axis is None.
389
406
390
- .. method :: linspace(start, stop, \*, dtype=float, num=50, endpoint=True)
391
-
392
- .. param: start
393
-
394
- First value in the array
395
-
396
- .. param: stop
397
-
398
- Final value in the array
399
-
400
- .. param int: num
401
-
402
- Count of values in the array
403
-
404
- .. param: dtype
405
-
406
- Type of values in the array
407
-
408
- .. param bool: endpoint
409
-
410
- Whether the ``stop`` value is included. Note that even when
411
- endpoint=True, the exact ``stop`` value may not be included due to the
412
- inaccuracy of floating point arithmetic.
413
-
414
- Return a new 1-D array with ``num `` elements ranging from ``start `` to ``stop `` linearly.
415
-
416
407
.. method :: max(array, \*, axis=None)
417
408
418
409
Return the maximum element of the 1D array, as an array with 1 element
0 commit comments