Float16ArrayConstructor
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:372
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Float16ArrayConstructor(length?): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:374
Parameters
Section titled “Parameters”| Parameter | Type | 
|---|---|
length? | number | 
Returns
Section titled “Returns”Constructor
Section titled “Constructor”new Float16ArrayConstructor(array): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:375
Parameters
Section titled “Parameters”| Parameter | Type | 
|---|---|
array | | Iterable<number, any, any> | ArrayLike<number> | 
Returns
Section titled “Returns”Constructor
Section titled “Constructor”new Float16ArrayConstructor<TArrayBuffer>(   buffer,   byteOffset?,length?): Float16Array<TArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:376
Parameters
Section titled “Parameters”| Parameter | Type | 
|---|---|
buffer | TArrayBuffer | 
byteOffset? | number | 
length? | number | 
Returns
Section titled “Returns”Float16Array<TArrayBuffer>
Constructor
Section titled “Constructor”new Float16ArrayConstructor(   buffer,   byteOffset?,length?): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:377
Parameters
Section titled “Parameters”| Parameter | Type | 
|---|---|
buffer | ArrayBuffer | 
byteOffset? | number | 
length? | number | 
Returns
Section titled “Returns”Constructor
Section titled “Constructor”new Float16ArrayConstructor(array): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:378
Parameters
Section titled “Parameters”| Parameter | Type | 
|---|---|
array | | ArrayBuffer | ArrayLike<number> | 
Returns
Section titled “Returns”Properties
Section titled “Properties”BYTES_PER_ELEMENT
Section titled “BYTES_PER_ELEMENT”readonly BYTES_PER_ELEMENT: number;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:383
The size in bytes of each element in the array.
prototype
Section titled “prototype”readonly prototype: Float16Array<ArrayBufferLike>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:373
Methods
Section titled “Methods”from()
Section titled “from()”Call Signature
Section titled “Call Signature”from(arrayLike): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:395
Creates an array from an array-like or iterable object.
Parameters
Section titled “Parameters”| Parameter | Type | Description | 
|---|---|---|
arrayLike | ArrayLike<number> | An array-like object to convert to an array. | 
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”from<T>(   arrayLike,   mapfn,thisArg?): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:403
Creates an array from an array-like or iterable object.
Type Parameters
Section titled “Type Parameters”| Type Parameter | 
|---|
T | 
Parameters
Section titled “Parameters”| Parameter | Type | Description | 
|---|---|---|
arrayLike | ArrayLike<T> | An array-like object to convert to an array. | 
mapfn | (v, k) => number | A mapping function to call on every element of the array. | 
thisArg? | any | Value of ‘this’ used to invoke the mapfn. | 
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”from(elements): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:409
Creates an array from an array-like or iterable object.
Parameters
Section titled “Parameters”| Parameter | Type | Description | 
|---|---|---|
elements | Iterable<number> | An iterable object to convert to an array. | 
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”from<T>(   elements,   mapfn?,thisArg?): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:417
Creates an array from an array-like or iterable object.
Type Parameters
Section titled “Type Parameters”| Type Parameter | 
|---|
T | 
Parameters
Section titled “Parameters”| Parameter | Type | Description | 
|---|---|---|
elements | Iterable<T> | An iterable object to convert to an array. | 
mapfn? | (v, k) => number | A mapping function to call on every element of the array. | 
thisArg? | any | Value of ‘this’ used to invoke the mapfn. | 
Returns
Section titled “Returns”of(...items): Float16Array<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts:389
Returns a new array from a set of elements.
Parameters
Section titled “Parameters”| Parameter | Type | Description | 
|---|---|---|
…items | number[] | A set of elements to include in the new array object. |