@@ -129,8 +129,6 @@ Array type codes
129129
130130Basic Array defining functions
131131------------------------------
132- See also `ulab.linalg.eye ` and `ulab.numerical.linspace ` for other useful
133- array defining functions.
134132
135133.. method :: ones(shape, \*, dtype=float)
136134
@@ -158,6 +156,33 @@ array defining functions.
158156 Return a new square array of size, with the diagonal elements set to 1
159157 and the other elements set to 0.
160158
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+ Return a new 1-D array with ``num `` elements ranging from ``start `` to ``stop `` linearly.
184+
185+
161186
162187:mod: `ulab.vector ` --- Element-by-element functions
163188===================================================
@@ -288,14 +313,6 @@ much more efficient than expressing the same operation as a Python loop.
288313
289314 Computes the eigenvalues and eigenvectors of a square matrix
290315
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-
299316.. method :: inv(m)
300317
301318 :param ~ulab.array m: a square matrix
@@ -387,32 +404,6 @@ operate over the flattened array (None), rows (0), or columns (1).
387404 Returns a new array that reverses the order of the elements along the
388405 given axis, or along all axes if axis is None.
389406
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-
416407.. method :: max(array, \*, axis=None)
417408
418409 Return the maximum element of the 1D array, as an array with 1 element
0 commit comments