import { type Float16Array } from "https://deno.land/x/float16@v3.8.7/mod.ts";
A typed array of 16-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
Index Signatures
Methods
Returns an array of key, value pairs for every entry in the array
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
Determines whether all the members of an array satisfy the specified test.
Returns the this object after filling the section identified by start and end with value
Returns the elements of an array that meet the condition specified in a callback function.
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Returns the value of the last element in the array where predicate is true, and undefined otherwise.
Returns the index of the last element in the array where predicate is true, and -1 otherwise.
Performs the specified action for each element in an array.
Determines whether an array includes a certain element, returning true or false as appropriate.
Returns the index of the first occurrence of a value in an array.
Adds all the elements of an array separated by the specified separator string.
Returns the index of the last occurrence of a value in an array.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Returns a section of an array.
Determines whether the specified callback function returns true for any element of an array.
Gets a new Float16Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
Copies the array and returns the copy with the elements in reverse order.
Copies and sorts the array.
Copies the array and replaces the element at the given index with the provided value.
Returns the primitive value of the specified object.
import { Float16Array } from "https://deno.land/x/float16@v3.8.7/mod.ts";