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
var float64ToFloat16 = require( '@stdlib/number/float64/base/to-float16' );
190
+
var f16 = require( '@stdlib/number/float64/base/to-float16' );
191
191
var toWord = require( '@stdlib/number/float16/base/to-word' );
192
192
193
193
194
194
// MAIN //
195
195
196
196
/**
197
-
* Fills an output array with "unsigned 16-bit integer corresponding to the IEEE 754 binary representation of a half-precision floating-point number" values.
197
+
* Fills an output array with unsigned 16-bit integers corresponding to the IEEE 754 binary representation of respective half-precision floating-point numbers.
throw new TypeError( format( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.', arg ) );
5303
5295
}
5304
-
buf = fromIterator( buf );
5305
-
if ( buf instanceof Error ) <spanclass="branch-0 cbranch-no" title="branch not covered" >{</span>
5306
-
<spanclass="cstat-no" title="statement not covered" > throw buf;</span>
5307
-
<spanclass="cstat-no" title="statement not covered" > }</span>
5308
-
buf = new Uint16Array( buf );
5296
+
buf = new Uint16Array( fromIterator( buf ) );
5309
5297
} else {
5310
5298
throw new TypeError( format( 'invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.', arg ) );
0 commit comments