File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/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 { complex64ndarray } from '@stdlib/types/ndarray' ;
24
+ import { Complex64 } from '@stdlib/types/complex' ;
24
25
25
26
/**
26
27
* Computes the sum of all elements in a one-dimensional single-precision complex floating-point ndarray.
@@ -38,7 +39,7 @@ import { complex64ndarray } from '@stdlib/types/ndarray';
38
39
* var v = csum( [ x ] );
39
40
* // returns <Complex64>[ 5.0, 5.0 ]
40
41
*/
41
- declare function csum ( arrays : [ complex64ndarray ] ) : number ;
42
+ declare function csum ( arrays : [ complex64ndarray ] ) : Complex64 ;
42
43
43
44
44
45
// EXPORTS //
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ import csum = 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' : 'complex64'
31
31
} ) ;
32
32
33
- csum ( [ x ] ) ; // $ExpectType number
33
+ csum ( [ x ] ) ; // $ExpectType Complex64
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