package owl-base

  1. Overview
  2. Docs
OCaml Scientific and Engineering Computing - Base

Install

Dune Dependency

Authors

Maintainers

Sources

owl-1.0.2.tbz
sha256=38d210ce6c1c2f09631fd59951430e4f364b5ae036c71ed1b32ce559b2a29263
sha512=c468100556445384b9c6adad9c37b5a9b8c27db8be35f61979e65fafa88c60221b8bda0a9c06cfbbc8d4e216a1ed08a315dfefb45bb4f5f15aa82d4358f57567

doc/owl-base/Owl_pretty/index.html

Module Owl_pretty

Pretty print the n-dimensional array

Ndarray pretty printer
val pp_dsnda : Format.formatter -> ('a, 'b, 'c) Bigarray.Genarray.t -> unit

``pp_dsnda`` is the pretty printer for n-dimensional arrays.

val dsnda_to_string : ?header:bool -> ?max_row:int -> ?max_col:int -> ?elt_to_str_fun:('a -> string) -> ('a, 'b, Bigarray.c_layout) Bigarray.Genarray.t -> string

``dsnda_to_string x`` converts ``x`` into a string for pretty printing

val print_dsnda : ?header:bool -> ?max_row:int -> ?max_col:int -> ?elt_to_str_fun:('a -> string) -> ?formatter:Format.formatter -> ('a, 'b, Bigarray.c_layout) Bigarray.Genarray.t -> unit

``print_dsnda`` provides the better control of pretty printing function of owl's n-dimensional array. max_row and max_col specify the maximum number of rows and columns to display. header specifies whether or not to print out the headers. fmt is the function to format every element into string.

Dataframe pretty printer
val pp_dataframe : Format.formatter -> Owl_dataframe.t -> unit

``pp_dataframe`` is the pretty printer for dataframe.

val dataframe_to_string : ?header:bool -> ?names:string array -> ?max_row:int -> ?max_col:int -> ?elt_to_str_fun:(Owl_dataframe.elt -> string) -> Owl_dataframe.t -> string

``dataframe_to_string x`` converts ``x`` into a string for pretty printing

val print_dataframe : ?header:bool -> ?names:string array -> ?max_row:int -> ?max_col:int -> ?elt_to_str_fun:(Owl_dataframe.elt -> string) -> Format.formatter -> Owl_dataframe.t -> unit

``print_dataframe x`` converts ``x`` into a string for pretty printing

OCaml

Innovation. Community. Security.