package gg

  1. Overview
  2. Docs
type t
val dim : int
type m
val comp : int -> t -> float
val zero : t
val infinity : t
val neg_infinity : t
val basis : int -> t
val neg : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val div : t -> t -> t
val smul : float -> t -> t
val half : t -> t
val dot : t -> t -> float
val norm : t -> float
val norm2 : t -> float
val unit : t -> t
val homogene : t -> t
val mix : t -> t -> float -> t
val ltr : m -> t -> t
val (+) : t -> t -> t
val (-) : t -> t -> t
val (*) : float -> t -> t
val (/) : t -> float -> t
val map : (float -> float) -> t -> t
val mapi : (int -> float -> float) -> t -> t
val fold : ('a -> float -> 'a) -> 'a -> t -> 'a
val foldi : ('a -> int -> float -> 'a) -> 'a -> t -> 'a
val iter : (float -> unit) -> t -> unit
val iteri : (int -> float -> unit) -> t -> unit
val for_all : (float -> bool) -> t -> bool
val exists : (float -> bool) -> t -> bool
val equal : t -> t -> bool
val equal_f : (float -> float -> bool) -> t -> t -> bool
val compare : t -> t -> int
val compare_f : (float -> float -> int) -> t -> t -> int
val to_string : t -> string
val pp : Format.formatter -> t -> unit
val pp_f : (Format.formatter -> float -> unit) -> Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.