ndarray data type value
ndarray data type value
promotion rule(s) or null
var dt = promotionRules( 'float32', 'uint32' );
// returns 'float64'
var dt = promotionRules( 'binary', 'generic' );
// returns -1
var dt = promotionRules( 'float32', 'foo' );
// returns null
Returns a type promotion table displaying the ndarray data types with the smallest size and closest "kind" to which ndarray data types can be safely cast.
promotion rule table
var table = promotionRules();
// returns {...}
Returns the ndarray data type with the smallest size and closest "kind" to which ndarray data types can be safely cast.