File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/docs/types Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 21
21
/// <reference types="@stdlib/types"/>
22
22
23
23
import { complex128ndarray } from '@stdlib/types/ndarray' ;
24
+ import { Complex128 } from '@stdlib/types/complex' ;
24
25
25
26
/**
26
27
* Computes the sum of all elements in a one-dimensional double-precision complex floating-point ndarray.
@@ -38,7 +39,7 @@ import { complex128ndarray } from '@stdlib/types/ndarray';
38
39
* var v = zsum( [ x ] );
39
40
* // returns <Complex128>[ 5.0, 5.0 ]
40
41
*/
41
- declare function zsum ( arrays : [ complex128ndarray ] ) : number ;
42
+ declare function zsum ( arrays : [ complex128ndarray ] ) : Complex128 ;
42
43
43
44
44
45
// EXPORTS //
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ import zsum = require( './index' );
24
24
25
25
// TESTS //
26
26
27
- // The function returns a number...
27
+ // The function returns a complex number...
28
28
{
29
29
const x = zeros ( [ 10 ] , {
30
30
'dtype' : 'complex128'
31
31
} ) ;
32
32
33
- zsum ( [ x ] ) ; // $ExpectType number
33
+ zsum ( [ x ] ) ; // $ExpectType Complex128
34
34
}
35
35
36
36
// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays...
You can’t perform that action at this time.
0 commit comments