|
22 | 22 |
|
23 | 23 | import csum = require( '@stdlib/blas-ext-base-ndarray-csum' ); |
24 | 24 | import csumkbn = require( '@stdlib/blas-ext-base-ndarray-csumkbn' ); |
| 25 | +import czeroTo = require( '@stdlib/blas-ext-base-ndarray-czero-to' ); |
25 | 26 | import dcircshift = require( '@stdlib/blas-ext-base-ndarray-dcircshift' ); |
26 | 27 | import dcusum = require( '@stdlib/blas-ext-base-ndarray-dcusum' ); |
27 | 28 | import dcusumkbn = require( '@stdlib/blas-ext-base-ndarray-dcusumkbn' ); |
@@ -93,6 +94,7 @@ import ssumpw = require( '@stdlib/blas-ext-base-ndarray-ssumpw' ); |
93 | 94 | import szeroTo = require( '@stdlib/blas-ext-base-ndarray-szero-to' ); |
94 | 95 | import zsum = require( '@stdlib/blas-ext-base-ndarray-zsum' ); |
95 | 96 | import zsumkbn = require( '@stdlib/blas-ext-base-ndarray-zsumkbn' ); |
| 97 | +import zzeroTo = require( '@stdlib/blas-ext-base-ndarray-zzero-to' ); |
96 | 98 |
|
97 | 99 | /** |
98 | 100 | * Interface describing the `ndarray` namespace. |
@@ -134,6 +136,24 @@ interface Namespace { |
134 | 136 | */ |
135 | 137 | csumkbn: typeof csumkbn; |
136 | 138 |
|
| 139 | + /** |
| 140 | + * Fills a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from zero. |
| 141 | + * |
| 142 | + * @param arrays - array-like object containing a one-dimensional input ndarray |
| 143 | + * @returns input ndarray |
| 144 | + * |
| 145 | + * @example |
| 146 | + * var Complex64Array = require( '@stdlib/array-complex64' ); |
| 147 | + * var ndarray = require( '@stdlib/ndarray-base-ctor' ); |
| 148 | + * |
| 149 | + * var xbuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); |
| 150 | + * var x = new ndarray( 'complex64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); |
| 151 | + * |
| 152 | + * var out = ns.czeroTo( [ x ] ); |
| 153 | + * // returns <ndarray>[ <Complex64>[ 0.0, 0.0 ], <Complex64>[ 1.0, 0.0 ], <Complex64>[ 2.0, 0.0 ], <Complex64>[ 3.0, 0.0 ] ] |
| 154 | + */ |
| 155 | + czeroTo: typeof czeroTo; |
| 156 | + |
137 | 157 | /** |
138 | 158 | * Circularly shifts the elements of a one-dimensional double-precision floating-point ndarray by a specified number of positions. |
139 | 159 | * |
@@ -1803,6 +1823,24 @@ interface Namespace { |
1803 | 1823 | * // returns <Complex128>[ 5.0, 5.0 ] |
1804 | 1824 | */ |
1805 | 1825 | zsumkbn: typeof zsumkbn; |
| 1826 | + |
| 1827 | + /** |
| 1828 | + * Fills a one-dimensional double-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from zero. |
| 1829 | + * |
| 1830 | + * @param arrays - array-like object containing a one-dimensional input ndarray |
| 1831 | + * @returns input ndarray |
| 1832 | + * |
| 1833 | + * @example |
| 1834 | + * var Complex128Array = require( '@stdlib/array-complex128' ); |
| 1835 | + * var ndarray = require( '@stdlib/ndarray-base-ctor' ); |
| 1836 | + * |
| 1837 | + * var xbuf = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); |
| 1838 | + * var x = new ndarray( 'complex128', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); |
| 1839 | + * |
| 1840 | + * var out = ns.zzeroTo( [ x ] ); |
| 1841 | + * // returns <ndarray>[ <Complex128>[ 0.0, 0.0 ], <Complex128>[ 1.0, 0.0 ], <Complex128>[ 2.0, 0.0 ], <Complex128>[ 3.0, 0.0 ] ] |
| 1842 | + */ |
| 1843 | + zzeroTo: typeof zzeroTo; |
1806 | 1844 | } |
1807 | 1845 |
|
1808 | 1846 | /** |
|
0 commit comments