You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns an object mapping supported data type strings to enumeration constants.
1201
+
*
1202
+
* ## Notes
1203
+
*
1204
+
* - Downstream consumers of this mapping should **not** rely on specific integer values (e.g., `INT8 == 0`). Instead, the object should be used in an opaque manner.
1205
+
* - The main purpose of this function is JavaScript and C inter-operation of ndarray objects.
1206
+
*
1207
+
* @returns object mapping supported data type strings to enumeration constants
1208
+
*
1209
+
* @example
1210
+
* var o = ns.dtypeEnums();
1211
+
* // returns {...}
1212
+
*/
1213
+
dtypeEnums: typeofdtypeEnums;
1214
+
1215
+
/**
1216
+
* Returns an object mapping supported data type strings to data type objects.
1217
+
*
1218
+
* @returns object mapping supported data type strings to data type objects
1219
+
*
1220
+
* @example
1221
+
* var o = ns.dtypeObjects();
1222
+
* // returns {...}
1223
+
*/
1224
+
dtypeObjects: typeofdtypeObjects;
1225
+
1196
1226
/**
1197
1227
* Returns the enumeration constant associated with an ndarray data type value.
1198
1228
*
@@ -1239,6 +1269,22 @@ interface Namespace {
1239
1269
*/
1240
1270
dtypeStr2Enum: typeofdtypeStr2Enum;
1241
1271
1272
+
/**
1273
+
* Returns a list of ndarray data type strings.
1274
+
*
1275
+
* @param kind - data type kind
1276
+
* @returns list of ndarray data type strings
1277
+
*
1278
+
* @example
1279
+
* var list = ns.dtypeStrings();
1280
+
* // returns [...]
1281
+
*
1282
+
* @example
1283
+
* var list = ns.dtypeStrings( 'floating_point' );
1284
+
* // returns [...]
1285
+
*/
1286
+
dtypeStrings: typeofdtypeStrings;
1287
+
1242
1288
/**
1243
1289
* Returns the C data type associated with a provided data type value.
0 commit comments