package core_bench

  1. Overview
  2. Docs

Vectors

type t = float array
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0.Sexp.t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val copy : t -> t

Copy a vector

val create0 : int -> t

create0 len sreate a vector of 0s of length len.

val sumsq : t -> float

The sum of squares of entries in a vector

val norm : t -> float

The Euclidean length of a vector

val almost_equal : tol:float -> t -> t -> bool

Comparison up to a tolerance for testing purposes.