package js.lib
implements ArrayBufferView
Available on js
The Float64Array
typed array represents an array of 64-bit floating point numbers (corresponding to the C double data type) in the platform byte order. If control over byte order is needed, use DataView
instead. The contents are initialized to 0
. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Documentation Float64Array by Mozilla Contributors, licensed under CC-BY-SA 2.5.
staticfinalread onlyBYTES_PER_ELEMENT:Int
Returns a number value of the element size. 8 in the case of an Float64Array
.
staticfrom(source:{}, ?mapFn:(value:Float, index:Int) ‑> Int, ?thisArg:Any):Float64Array
staticfrom(source:{}, ?mapFn:(value:Float) ‑> Int, ?thisArg:Any):Float64Array
Creates a new Float64Array
from an array-like or iterable object. See also Array.from().
staticof(elements:Rest<Dynamic>):Float64Array
Creates a new Float64Array
with a variable number of arguments. See also Array.of().
new(buffer:ArrayBuffer, ?byteOffset:Int, ?length:Int)
new(length:Int)
new(object:{})
Throws:
null |
DOMError |
---|
finalBYTES_PER_ELEMENT_:Int
Returns a number value of the element size.
finalbuffer:ArrayBuffer
Returns the ArrayBuffer
referenced by the Float64Array
Fixed at construction time and thus read only.
finalbyteLength:Int
Returns the length (in bytes) of the Float64Array
from the start of its ArrayBuffer
. Fixed at construction time and thus read only.
finalbyteOffset:Int
Returns the offset (in bytes) of the Float64Array
from the start of its ArrayBuffer
. Fixed at construction time and thus read only.
finallength:Int
Returns the number of elements hold in the Float64Array
. Fixed at construction time and thus read only.
copyWithin(target:Int, start:Int, ?end:Int):Float64Array
Copies a sequence of array elements within the array. See also Array.prototype.copyWithin().
entries():Iterator<KeyValue<Int, Float>>
Returns a new Array Iterator object that contains the key/value pairs for each index in the array. See also Array.prototype.entries().
every(callback:(currentValue:Float, index:Int, array:Float64Array) ‑> Bool, ?thisArg:Any):Bool
every(callback:(currentValue:Float) ‑> Bool, ?thisArg:Any):Bool
every(callback:(currentValue:Float, index:Int) ‑> Bool, ?thisArg:Any):Bool
Tests whether all elements in the array pass the test provided by a function. See also Array.prototype.every().
fill(value:Float, ?start:Int, ?end:Int):Float64Array
Fills all the elements of an array from a start index to an end index with a static value. See also Array.prototype.fill().
filter(callback:(element:Float, index:Int, array:Float64Array) ‑> Bool, ?thisArg:Any):Float64Array
filter(callback:(element:Float) ‑> Bool, ?thisArg:Any):Float64Array
filter(callback:(element:Float, index:Int) ‑> Bool, ?thisArg:Any):Float64Array
Creates a new array with all of the elements of this array for which the provided filtering function returns true. See also Array.prototype.filter().
find(callback:(element:Float, index:Int, array:Float64Array) ‑> Bool, ?thisArg:Any):Null<Int>
find(callback:(element:Float) ‑> Bool, ?thisArg:Any):Null<Int>
find(callback:(element:Float, index:Int) ‑> Bool, ?thisArg:Any):Null<Int>
Returns the found value in the array, if an element in the array satisfies the provided testing function or undefined if not found. See also Array.prototype.find().
findIndex(callback:(element:Float, index:Int, array:Float64Array) ‑> Bool, ?thisArg:Any):Int
findIndex(callback:(element:Float) ‑> Bool, ?thisArg:Any):Int
findIndex(callback:(element:Float, index:Int) ‑> Bool, ?thisArg:Any):Int
Returns the found index in the array, if an element in the array satisfies the provided testing function or -1 if not found. See also Array.prototype.findIndex().
forEach(callback:(element:Float, index:Int, array:Float64Array) ‑> Void, ?thisArg:Any):Void
forEach(callback:(element:Float) ‑> Void, ?thisArg:Any):Void
forEach(callback:(element:Float, index:Int) ‑> Void, ?thisArg:Any):Void
Calls a function for each element in the array. See also Array.prototype.forEach().
includes(searchElement:Float, ?fromIndex:Int):Bool
Determines whether a typed array includes a certain element, returning true or false as appropriate. See also Array.prototype.includes().
indexOf(searchElement:Float, ?fromIndex:Int):Int
Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.indexOf().
join(?separator:String):String
Joins all elements of an array into a string. See also Array.prototype.join().
keys():Iterator<Int>
Returns a new Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys().
lastIndexOf(searchElement:Float, ?fromIndex:Int):Int
Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found. See also Array.prototype.lastIndexOf().
map(callback:(element:Float, index:Int, array:Float64Array) ‑> Float, ?thisArg:Any):Float64Array
map(callback:(element:Float) ‑> Float, ?thisArg:Any):Float64Array
map(callback:(element:Float, index:Int) ‑> Float, ?thisArg:Any):Float64Array
Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map().
reduce<T>(callback:(previousValue:T, currentValue:Float, index:Int, array:Float64Array) ‑> T, initialValue:T):T
reduce<T>(callback:(previousValue:T, currentValue:Float) ‑> T, initialValue:T):T
reduce<T>(callback:(previousValue:T, currentValue:Float, index:Int) ‑> T, initialValue:T):T
reduce(callbackfn:(previousValue:Float, currentValue:Float) ‑> Int):Float
reduce(callbackfn:(previousValue:Float, currentValue:Float, index:Int) ‑> Int):Float
reduce(callbackfn:(previousValue:Float, currentValue:Float, index:Int, array:Float64Array) ‑> Int):Float
Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce().
reduceRight<T>(callback:(previousValue:T, currentValue:Float, index:Int, array:Float64Array) ‑> T, initialValue:T):T
reduceRight<T>(callback:(previousValue:T, currentValue:Float) ‑> T, initialValue:T):T
reduceRight<T>(callback:(previousValue:T, currentValue:Float, index:Int) ‑> T, initialValue:T):T
reduceRight(callbackfn:(previousValue:Float, currentValue:Float) ‑> Int):Float
reduceRight(callbackfn:(previousValue:Float, currentValue:Float, index:Int) ‑> Int):Float
reduceRight(callbackfn:(previousValue:Float, currentValue:Float, index:Int, array:Float64Array) ‑> Int):Float
Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value. See also Array.prototype.reduceRight().
reverse():Float64Array
Reverses the order of the elements of an array — the first becomes the last, and the last becomes the first. See also Array.prototype.reverse().
set(array:Array<Float>, ?offset:Int):Void
set(array:Int8Array, ?offset:Int):Void
set(array:Uint8Array, ?offset:Int):Void
set(array:Uint8ClampedArray, ?offset:Int):Void
set(array:Int16Array, ?offset:Int):Void
set(array:Uint16Array, ?offset:Int):Void
set(array:Int32Array, ?offset:Int):Void
set(array:Uint32Array, ?offset:Int):Void
set(array:Float32Array, ?offset:Int):Void
set(array:Float64Array, ?offset:Int):Void
set(array:Array<Int>, ?offset:Int):Void
Stores multiple values in the typed array, reading input values from a specified array.
slice(?start:Int, ?end:Int):Float64Array
Extracts a section of an array and returns a new array. See also Array.prototype.slice().
some(callback:(element:Float, index:Int, array:Float64Array) ‑> Bool, ?thisArg:Any):Bool
some(callback:(element:Float) ‑> Bool, ?thisArg:Any):Bool
some(callback:(element:Float, index:Int) ‑> Bool, ?thisArg:Any):Bool
Returns true if at least one element in this array satisfies the provided testing function. See also Array.prototype.some().
sort(?compareFn:(x:Float, y:Float) ‑> Int):Float64Array
Sorts the elements of an array in place and returns the array. See also Array.prototype.sort().
subarray(?begin:Int, ?end:Int):Float64Array
Returns a new TypedArray from the given start and end element index.
toLocaleString(?locales:String, ?options:Null<NumberFormatOptions>):String
Returns a string representing the array and its elements. See also Array.prototype.toString().
toString():String
Returns a string representing the array and its elements. See also Array.prototype.toString().
values():Iterator<Float>
Returns a new Array Iterator object that contains the values for each index in the array. See also Array.prototype.values().
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/Float64Array.html