File tree Expand file tree Collapse file tree 5 files changed +35
-1
lines changed
lib/node_modules/@stdlib/ndarray/dtypes Expand file tree Collapse file tree 5 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ The function supports the following data type kinds:
80
80
- ` integral ` : integer data types.
81
81
- ` signed_integer ` : signed integer data types.
82
82
- ` unsigned_integer ` : unsigned integer data types.
83
+ - ` real ` : real-valued data types.
83
84
- ` numeric ` : numeric data types.
84
85
- ` all ` : all data types.
85
86
Original file line number Diff line number Diff line change 27
27
- integral: integer data types.
28
28
- signed_integer: signed integer data types.
29
29
- unsigned_integer: unsigned integer data types.
30
+ - real: real-valued data types.
30
31
- numeric: numeric data types.
31
32
- all: all data types.
32
33
Original file line number Diff line number Diff line change 21
21
/**
22
22
* Data type kind.
23
23
*/
24
- type Kind = 'all' | 'numeric' | 'floating_point' | 'real_floating_point' | 'complex_floating_point' | 'integral' | 'signed_integer' | 'unsigned_integer' ; // tslint-disable-line max-line-length
24
+ type Kind = 'all' | 'numeric' | 'real' | ' floating_point' | 'real_floating_point' | 'complex_floating_point' | 'integral' | 'signed_integer' | 'unsigned_integer' ; // tslint-disable-line max-line-length
25
25
26
26
/**
27
27
* Returns a list of ndarray data types.
Original file line number Diff line number Diff line change 48
48
" uint8" ,
49
49
" uint8c"
50
50
],
51
+ "real" : [
52
+ " float32" ,
53
+ " float64" ,
54
+ " int16" ,
55
+ " int32" ,
56
+ " int8" ,
57
+ " uint16" ,
58
+ " uint32" ,
59
+ " uint8" ,
60
+ " uint8c"
61
+ ],
51
62
"numeric" : [
52
63
" complex64" ,
53
64
" complex128" ,
Original file line number Diff line number Diff line change @@ -199,6 +199,27 @@ tape( 'the function supports returning a list of unsigned integer ndarray data t
199
199
t . end ( ) ;
200
200
} ) ;
201
201
202
+ tape ( 'the function supports returning a list of real-valued ndarray data types' , function test ( t ) {
203
+ var expected ;
204
+ var actual ;
205
+
206
+ expected = [
207
+ 'float32' ,
208
+ 'float64' ,
209
+ 'int16' ,
210
+ 'int32' ,
211
+ 'int8' ,
212
+ 'uint16' ,
213
+ 'uint32' ,
214
+ 'uint8' ,
215
+ 'uint8c'
216
+ ] ;
217
+ actual = dtypes ( 'real' ) ;
218
+
219
+ t . deepEqual ( actual , expected , 'returns expected value' ) ;
220
+ t . end ( ) ;
221
+ } ) ;
222
+
202
223
tape ( 'the function supports returning a list of numeric ndarray data types' , function test ( t ) {
203
224
var expected ;
204
225
var actual ;
You can’t perform that action at this time.
0 commit comments