package hardcaml_circuits

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Reference implementation of the CORDIC algorithm using Float.t.

module System : sig ... end

Determines the cordic update equations

module Mode : sig ... end

iteration mode

val iter : iterations:Base.int -> init:'a -> f:(i:Base.int -> ih:Base.int -> 'a -> 'a) -> 'a
val gain : iterations:Base.int -> Base.float
val gainh : iterations:Base.int -> Base.float
val cordic : ?c:Base.float -> Base.unit -> system:System.t -> mode:Mode.t -> iterations:Base.int -> x:Base.float -> y:Base.float -> z:Base.float -> Base.float * Base.float * Base.float
val cos_sin : iterations:Base.int -> Base.float -> Base.float * Base.float
val polar_to_rect : iterations:Base.int -> Base.float -> Base.float -> Base.float * Base.float
val rotate_vector : iterations:Base.int -> Base.float -> Base.float -> Base.float -> Base.float * Base.float
val atan : iterations:Base.int -> Base.float -> Base.float
val atan2 : iterations:Base.int -> Base.float -> Base.float -> Base.float
val rect_to_polar : iterations:Base.int -> Base.float -> Base.float -> Base.float * Base.float
val asin : iterations:Base.int -> Base.float -> Base.float
val mul : iterations:Base.int -> Base.float -> Base.float -> Base.float
val div : iterations:Base.int -> Base.float -> Base.float -> Base.float
val cosh_sinh : iterations:Base.int -> Base.float -> Base.float * Base.float
val atanh : iterations:Base.int -> Base.float -> Base.float
OCaml

Innovation. Community. Security.