UNPKG

@stdlib/ndarray-base-assert-is-mostly-safe-data-type-cast

Version:

Determine if an ndarray data type can be safely cast or, for floating-point data types, downcast to another ndarray data type.

6 lines (5 loc) 422 B
"use strict";var u=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var i=u(function(f,a){ var n=require('@stdlib/ndarray-mostly-safe-casts/dist'),t=require('@stdlib/ndarray-base-dtype-resolve-str/dist'),v=n();function c(e,r){var s;return e=t(e),r=t(r),e===r?!0:(s=v[e],s?s[r]>0:!1)}a.exports=c });var l=i();module.exports=l; /** @license Apache-2.0 */ //# sourceMappingURL=index.js.map