@stdlib/ndarray-base-dtype-objects
v0.1.1
Published
Return an object mapping supported data type strings to data type objects.
Readme
Data Type Objects
Return an object mapping supported data type strings to data type objects.
Installation
npm install @stdlib/ndarray-base-dtype-objectsUsage
var dtypeObjects = require( '@stdlib/ndarray-base-dtype-objects' );dtypeObjects()
Returns an object mapping supported data type strings to data type objects.
var out = dtypeObjects();
// {...}Examples
var dtypeStrings = require( '@stdlib/ndarray-base-dtype-strings' );
var dtypeObjects = require( '@stdlib/ndarray-base-dtype-objects' );
var dt = dtypeStrings();
// returns [...]
var o = dtypeObjects();
// returns {...}
var i;
for ( i = 0; i < dt.length; i++ ) {
console.log( '%s => %s', dt[ i ], o[ dt[ i ] ].description );
}Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
