Module TypedArray2.Float32Array

type elt = float
type 'a typed_array
type t = elt typed_array
val unsafe_get : t -> int -> elt
val unsafe_set : t -> int -> elt -> unit
val buffer : t -> array_buffer
val byteLength : t -> int
val byteOffset : t -> int
val setArray : t -> elt array -> unit
val setArrayOffset : t -> elt array -> int -> unit
val length : t -> int
val copyWithin : t -> to_:int -> t
val copyWithinFrom : t -> to_:int -> from:int -> t
val copyWithinFromRange : t -> to_:int -> start:int -> end_:int -> t
val fillInPlace : t -> elt -> t
val fillFromInPlace : t -> elt -> from:int -> t
val fillRangeInPlace : t -> elt -> start:int -> end_:int -> t
val reverseInPlace : t -> t
val sortInPlace : t -> t
val sortInPlaceWith : t -> (elt -> elt -> int) Js__.Js_internal.Fn.arity2 -> t
val includes : t -> elt -> bool
val indexOf : t -> elt -> int
val indexOfFrom : t -> elt -> from:int -> int
val join : t -> string
val joinWith : t -> string -> string
val lastIndexOf : t -> elt -> int
val lastIndexOfFrom : t -> elt -> from:int -> int
val slice : t -> start:int -> end_:int -> t

start is inclusive, end_ exclusive

val copy : t -> t
val sliceFrom : t -> int -> t
val subarray : t -> start:int -> end_:int -> t

start is inclusive, end_ exclusive

val subarrayFrom : t -> int -> t
val toString : t -> string
val toLocaleString : t -> string
val every : t -> (elt -> bool) Js__.Js_internal.Fn.arity1 -> bool
val everyi : t -> (elt -> int -> bool) Js__.Js_internal.Fn.arity2 -> bool
val filter : t -> (elt -> bool) Js__.Js_internal.Fn.arity1 -> t
val filteri : t -> (elt -> int -> bool) Js__.Js_internal.Fn.arity2 -> t
val find : t -> (elt -> bool) Js__.Js_internal.Fn.arity1 -> elt Js__.Js_internal.undefined
val findi : t -> (elt -> int -> bool) Js__.Js_internal.Fn.arity2 -> elt Js__.Js_internal.undefined
val findIndex : t -> (elt -> bool) Js__.Js_internal.Fn.arity1 -> int
val findIndexi : t -> (elt -> int -> bool) Js__.Js_internal.Fn.arity2 -> int
val forEach : t -> (elt -> unit) Js__.Js_internal.Fn.arity1 -> unit
val forEachi : t -> (elt -> int -> unit) Js__.Js_internal.Fn.arity2 -> unit
val map : t -> (elt -> 'b) Js__.Js_internal.Fn.arity1 -> 'b typed_array
val mapi : t -> (elt -> int -> 'b) Js__.Js_internal.Fn.arity2 -> 'b typed_array
val reduce : t -> ('b -> elt -> 'b) Js__.Js_internal.Fn.arity2 -> 'b -> 'b
val reducei : t -> ('b -> elt -> int -> 'b) Js__.Js_internal.Fn.arity3 -> 'b -> 'b
val reduceRight : t -> ('b -> elt -> 'b) Js__.Js_internal.Fn.arity2 -> 'b -> 'b
val reduceRighti : t -> ('b -> elt -> int -> 'b) Js__.Js_internal.Fn.arity3 -> 'b -> 'b
val some : t -> (elt -> bool) Js__.Js_internal.Fn.arity1 -> bool
val somei : t -> (elt -> int -> bool) Js__.Js_internal.Fn.arity2 -> bool
val _BYTES_PER_ELEMENT : int
val make : elt array -> t
val fromBuffer : array_buffer -> t

can throw

val fromBufferOffset : array_buffer -> int -> t
  • parameter offset

    is in bytes

val fromBufferRange : array_buffer -> offset:int -> length:int -> t
  • parameter offset

    is in bytes, length in elements

val fromLength : int -> t
val from : elt array_like -> t