package gg

  1. Overview
  2. Docs
type t
val dim : int
type v
val el : int -> int -> t -> float
val row : int -> t -> v
val col : int -> t -> v
val zero : t
val id : t
val neg : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val emul : t -> t -> t
val ediv : t -> t -> t
val smul : float -> t -> t
val transpose : t -> t
val trace : t -> float
val det : t -> float
val inv : t -> t
val map : (float -> float) -> t -> t
val mapi : (int -> int -> float -> float) -> t -> t
val fold : ('a -> float -> 'a) -> 'a -> t -> 'a
val foldi : ('a -> int -> int -> float -> 'a) -> 'a -> t -> 'a
val iter : (float -> unit) -> t -> unit
val iteri : (int -> 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.